@wildo-ai/dev-companion 1.1.8 → 1.1.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (325) hide show
  1. package/bin/companion-supervisor.d.mts +33 -0
  2. package/bin/companion-supervisor.mjs +174 -0
  3. package/bin/wildo-dev-companion-supervised.mjs +16 -0
  4. package/dist/esm/brand/models/logo-generation.actors-system.definitions.d.ts.map +1 -1
  5. package/dist/esm/brand/models/logo-generation.actors-system.definitions.js +8 -2
  6. package/dist/esm/brand/models/logo-generation.actors-system.definitions.js.map +1 -1
  7. package/dist/esm/brand/models/logo-judge.actors-system.definitions.d.ts.map +1 -1
  8. package/dist/esm/brand/models/logo-judge.actors-system.definitions.js +8 -2
  9. package/dist/esm/brand/models/logo-judge.actors-system.definitions.js.map +1 -1
  10. package/dist/esm/brand/services/brand-accept.companion.service.d.ts +1 -1
  11. package/dist/esm/brand/services/brand-accept.companion.service.d.ts.map +1 -1
  12. package/dist/esm/brand/services/brand-accept.companion.service.js +9 -11
  13. package/dist/esm/brand/services/brand-accept.companion.service.js.map +1 -1
  14. package/dist/esm/claude-cli/models/application-coding-run-checkpoint.models.d.ts +21 -0
  15. package/dist/esm/claude-cli/models/application-coding-run-checkpoint.models.d.ts.map +1 -1
  16. package/dist/esm/claude-cli/models/application-coding-run-checkpoint.models.js +33 -1
  17. package/dist/esm/claude-cli/models/application-coding-run-checkpoint.models.js.map +1 -1
  18. package/dist/esm/claude-cli/models/coding-agent-dispatch.models.d.ts +41 -2
  19. package/dist/esm/claude-cli/models/coding-agent-dispatch.models.d.ts.map +1 -1
  20. package/dist/esm/claude-cli/models/coding-agent-dispatch.models.js +43 -1
  21. package/dist/esm/claude-cli/models/coding-agent-dispatch.models.js.map +1 -1
  22. package/dist/esm/claude-cli/services/accepted-change-commit.companion.service.d.ts +57 -1
  23. package/dist/esm/claude-cli/services/accepted-change-commit.companion.service.d.ts.map +1 -1
  24. package/dist/esm/claude-cli/services/accepted-change-commit.companion.service.js +75 -1
  25. package/dist/esm/claude-cli/services/accepted-change-commit.companion.service.js.map +1 -1
  26. package/dist/esm/claude-cli/services/coding-agent-dispatch.companion.service.d.ts +90 -5
  27. package/dist/esm/claude-cli/services/coding-agent-dispatch.companion.service.d.ts.map +1 -1
  28. package/dist/esm/claude-cli/services/coding-agent-dispatch.companion.service.js +242 -22
  29. package/dist/esm/claude-cli/services/coding-agent-dispatch.companion.service.js.map +1 -1
  30. package/dist/esm/companion-api/companion-api.schemas.d.ts +23 -2
  31. package/dist/esm/companion-api/companion-api.schemas.d.ts.map +1 -1
  32. package/dist/esm/companion-api/companion-api.schemas.js +13 -2
  33. package/dist/esm/companion-api/companion-api.schemas.js.map +1 -1
  34. package/dist/esm/companion-api/controllers/companion.controller.d.ts +63 -7
  35. package/dist/esm/companion-api/controllers/companion.controller.d.ts.map +1 -1
  36. package/dist/esm/companion-api/controllers/companion.controller.js +315 -39
  37. package/dist/esm/companion-api/controllers/companion.controller.js.map +1 -1
  38. package/dist/esm/core/config/primary-language.companion.utils.d.ts +5 -4
  39. package/dist/esm/core/config/primary-language.companion.utils.d.ts.map +1 -1
  40. package/dist/esm/core/config/primary-language.companion.utils.js +5 -4
  41. package/dist/esm/core/config/primary-language.companion.utils.js.map +1 -1
  42. package/dist/esm/core/context/application-module-generations.companion.d.ts +103 -0
  43. package/dist/esm/core/context/application-module-generations.companion.d.ts.map +1 -0
  44. package/dist/esm/core/context/application-module-generations.companion.js +313 -0
  45. package/dist/esm/core/context/application-module-generations.companion.js.map +1 -0
  46. package/dist/esm/core/context/companion-package-loaders.companion.d.ts +19 -19
  47. package/dist/esm/core/context/companion-package-loaders.companion.d.ts.map +1 -1
  48. package/dist/esm/core/context/companion-package-loaders.companion.js +52 -40
  49. package/dist/esm/core/context/companion-package-loaders.companion.js.map +1 -1
  50. package/dist/esm/core/inject/models/container.d.ts.map +1 -1
  51. package/dist/esm/core/inject/models/container.js +4 -0
  52. package/dist/esm/core/inject/models/container.js.map +1 -1
  53. package/dist/esm/core/inject/models/service-types.d.ts +4 -0
  54. package/dist/esm/core/inject/models/service-types.d.ts.map +1 -1
  55. package/dist/esm/core/inject/models/service-types.js +4 -0
  56. package/dist/esm/core/inject/models/service-types.js.map +1 -1
  57. package/dist/esm/core/introspection/resources/creation-console-answer.companion.d.ts +15 -1
  58. package/dist/esm/core/introspection/resources/creation-console-answer.companion.d.ts.map +1 -1
  59. package/dist/esm/core/introspection/resources/creation-console-answer.companion.js +38 -3
  60. package/dist/esm/core/introspection/resources/creation-console-answer.companion.js.map +1 -1
  61. package/dist/esm/core/introspection/resources/creation-console-projection.companion.d.ts +21 -0
  62. package/dist/esm/core/introspection/resources/creation-console-projection.companion.d.ts.map +1 -1
  63. package/dist/esm/core/introspection/resources/creation-console-projection.companion.js +64 -25
  64. package/dist/esm/core/introspection/resources/creation-console-projection.companion.js.map +1 -1
  65. package/dist/esm/core/introspection/resources/creation-home-projection.companion.d.ts.map +1 -1
  66. package/dist/esm/core/introspection/resources/creation-home-projection.companion.js +2 -0
  67. package/dist/esm/core/introspection/resources/creation-home-projection.companion.js.map +1 -1
  68. package/dist/esm/core/introspection/resources/creation-plane-dispatch.custom-impl.companion.service.d.ts +0 -28
  69. package/dist/esm/core/introspection/resources/creation-plane-dispatch.custom-impl.companion.service.d.ts.map +1 -1
  70. package/dist/esm/core/introspection/resources/creation-plane-dispatch.custom-impl.companion.service.js +192 -19
  71. package/dist/esm/core/introspection/resources/creation-plane-dispatch.custom-impl.companion.service.js.map +1 -1
  72. package/dist/esm/core/introspection/resources/creation-plane-projection.companion.service.d.ts.map +1 -1
  73. package/dist/esm/core/introspection/resources/creation-plane-projection.companion.service.js +27 -5
  74. package/dist/esm/core/introspection/resources/creation-plane-projection.companion.service.js.map +1 -1
  75. package/dist/esm/core/introspection/resources/launch-blockers.companion.d.ts +47 -0
  76. package/dist/esm/core/introspection/resources/launch-blockers.companion.d.ts.map +1 -0
  77. package/dist/esm/core/introspection/resources/launch-blockers.companion.js +98 -0
  78. package/dist/esm/core/introspection/resources/launch-blockers.companion.js.map +1 -0
  79. package/dist/esm/core/introspection/services/companion-introspection.companion.service.d.ts +6 -1
  80. package/dist/esm/core/introspection/services/companion-introspection.companion.service.d.ts.map +1 -1
  81. package/dist/esm/core/introspection/services/companion-introspection.companion.service.js +20 -1
  82. package/dist/esm/core/introspection/services/companion-introspection.companion.service.js.map +1 -1
  83. package/dist/esm/core/introspection/services/introspection-derivation-state.companion.service.d.ts +34 -8
  84. package/dist/esm/core/introspection/services/introspection-derivation-state.companion.service.d.ts.map +1 -1
  85. package/dist/esm/core/introspection/services/introspection-derivation-state.companion.service.js +61 -12
  86. package/dist/esm/core/introspection/services/introspection-derivation-state.companion.service.js.map +1 -1
  87. package/dist/esm/core/introspection/services/introspection-input-closure.companion.d.ts +44 -0
  88. package/dist/esm/core/introspection/services/introspection-input-closure.companion.d.ts.map +1 -0
  89. package/dist/esm/core/introspection/services/introspection-input-closure.companion.js +104 -0
  90. package/dist/esm/core/introspection/services/introspection-input-closure.companion.js.map +1 -0
  91. package/dist/esm/core/introspection/services/introspection-source-state.companion.service.d.ts +41 -22
  92. package/dist/esm/core/introspection/services/introspection-source-state.companion.service.d.ts.map +1 -1
  93. package/dist/esm/core/introspection/services/introspection-source-state.companion.service.js +64 -47
  94. package/dist/esm/core/introspection/services/introspection-source-state.companion.service.js.map +1 -1
  95. package/dist/esm/core/introspection/subprocess/expert-persona-brief.renderer.d.ts +7 -1
  96. package/dist/esm/core/introspection/subprocess/expert-persona-brief.renderer.d.ts.map +1 -1
  97. package/dist/esm/core/introspection/subprocess/expert-persona-brief.renderer.js +13 -4
  98. package/dist/esm/core/introspection/subprocess/expert-persona-brief.renderer.js.map +1 -1
  99. package/dist/esm/core/introspection/subprocess/specification-artifacts.behavior.d.ts.map +1 -1
  100. package/dist/esm/core/introspection/subprocess/specification-artifacts.behavior.js +7 -0
  101. package/dist/esm/core/introspection/subprocess/specification-artifacts.behavior.js.map +1 -1
  102. package/dist/esm/core/lock/wildo-saas-lock.schemas.d.ts +4 -4
  103. package/dist/esm/core/runtime/companion-env-file.d.ts +39 -9
  104. package/dist/esm/core/runtime/companion-env-file.d.ts.map +1 -1
  105. package/dist/esm/core/runtime/companion-env-file.js +75 -16
  106. package/dist/esm/core/runtime/companion-env-file.js.map +1 -1
  107. package/dist/esm/core/runtime/services/start-companion-application.service.d.ts +7 -3
  108. package/dist/esm/core/runtime/services/start-companion-application.service.d.ts.map +1 -1
  109. package/dist/esm/core/runtime/services/start-companion-application.service.js +29 -11
  110. package/dist/esm/core/runtime/services/start-companion-application.service.js.map +1 -1
  111. package/dist/esm/core/utils/bounded-concurrency.utils.d.ts +17 -0
  112. package/dist/esm/core/utils/bounded-concurrency.utils.d.ts.map +1 -0
  113. package/dist/esm/core/utils/bounded-concurrency.utils.js +37 -0
  114. package/dist/esm/core/utils/bounded-concurrency.utils.js.map +1 -0
  115. package/dist/esm/core/utils/derived-input-signature.companion.utils.d.ts +10 -1
  116. package/dist/esm/core/utils/derived-input-signature.companion.utils.d.ts.map +1 -1
  117. package/dist/esm/core/utils/derived-input-signature.companion.utils.js +9 -2
  118. package/dist/esm/core/utils/derived-input-signature.companion.utils.js.map +1 -1
  119. package/dist/esm/creation-conversation/creation-conversation.actors-system.definitions.d.ts.map +1 -1
  120. package/dist/esm/creation-conversation/creation-conversation.actors-system.definitions.js +2 -0
  121. package/dist/esm/creation-conversation/creation-conversation.actors-system.definitions.js.map +1 -1
  122. package/dist/esm/creation-conversation/creation-conversation.function-tools.d.ts.map +1 -1
  123. package/dist/esm/creation-conversation/creation-conversation.function-tools.js +66 -6
  124. package/dist/esm/creation-conversation/creation-conversation.function-tools.js.map +1 -1
  125. package/dist/esm/deliberations/models/deliberation-agents.actors-system.definitions.d.ts +0 -17
  126. package/dist/esm/deliberations/models/deliberation-agents.actors-system.definitions.d.ts.map +1 -1
  127. package/dist/esm/deliberations/models/deliberation-agents.actors-system.definitions.js +10 -4
  128. package/dist/esm/deliberations/models/deliberation-agents.actors-system.definitions.js.map +1 -1
  129. package/dist/esm/email/services/email-template.companion.service.d.ts +6 -1
  130. package/dist/esm/email/services/email-template.companion.service.d.ts.map +1 -1
  131. package/dist/esm/email/services/email-template.companion.service.js +4 -1
  132. package/dist/esm/email/services/email-template.companion.service.js.map +1 -1
  133. package/dist/esm/expert-personas/models/expert-persona-critique.actors-system.definitions.d.ts.map +1 -1
  134. package/dist/esm/expert-personas/models/expert-persona-critique.actors-system.definitions.js +8 -2
  135. package/dist/esm/expert-personas/models/expert-persona-critique.actors-system.definitions.js.map +1 -1
  136. package/dist/esm/expert-personas/models/expert-persona-derivation.actors-system.definitions.d.ts.map +1 -1
  137. package/dist/esm/expert-personas/models/expert-persona-derivation.actors-system.definitions.js +8 -2
  138. package/dist/esm/expert-personas/models/expert-persona-derivation.actors-system.definitions.js.map +1 -1
  139. package/dist/esm/expert-personas/services/expert-persona.companion.service.d.ts.map +1 -1
  140. package/dist/esm/expert-personas/services/expert-persona.companion.service.js +7 -7
  141. package/dist/esm/expert-personas/services/expert-persona.companion.service.js.map +1 -1
  142. package/dist/esm/i18n/composite_views/app.creation-conversation.en.d.ts.map +1 -1
  143. package/dist/esm/i18n/composite_views/app.creation-conversation.en.js +41 -1
  144. package/dist/esm/i18n/composite_views/app.creation-conversation.en.js.map +1 -1
  145. package/dist/esm/i18n/resources/workbenchAspects.en.d.ts.map +1 -1
  146. package/dist/esm/i18n/resources/workbenchAspects.en.js +7 -0
  147. package/dist/esm/i18n/resources/workbenchAspects.en.js.map +1 -1
  148. package/dist/esm/i18n/resources/workbenchBuildDispatchPlan.en.d.ts +5 -0
  149. package/dist/esm/i18n/resources/workbenchBuildDispatchPlan.en.d.ts.map +1 -1
  150. package/dist/esm/i18n/resources/workbenchBuildDispatchPlan.en.js +5 -0
  151. package/dist/esm/i18n/resources/workbenchBuildDispatchPlan.en.js.map +1 -1
  152. package/dist/esm/i18n/resources/workbenchBuildPlanTasks.en.d.ts +1 -1
  153. package/dist/esm/i18n/resources/workbenchBuildPlanTasks.en.d.ts.map +1 -1
  154. package/dist/esm/i18n/resources/workbenchBuildPlanTasks.en.js +2 -1
  155. package/dist/esm/i18n/resources/workbenchBuildPlanTasks.en.js.map +1 -1
  156. package/dist/esm/i18n/resources/workbenchDossierEntries.en.d.ts +46 -0
  157. package/dist/esm/i18n/resources/workbenchDossierEntries.en.d.ts.map +1 -1
  158. package/dist/esm/i18n/resources/workbenchDossierEntries.en.js +12 -0
  159. package/dist/esm/i18n/resources/workbenchDossierEntries.en.js.map +1 -1
  160. package/dist/esm/i18n/resources/workbenchSpecificationArtifacts.en.d.ts +266 -0
  161. package/dist/esm/i18n/resources/workbenchSpecificationArtifacts.en.d.ts.map +1 -1
  162. package/dist/esm/i18n/resources/workbenchSpecificationArtifacts.en.js +91 -5
  163. package/dist/esm/i18n/resources/workbenchSpecificationArtifacts.en.js.map +1 -1
  164. package/dist/esm/i18n/system_enums/application-creation.en.d.ts +41 -0
  165. package/dist/esm/i18n/system_enums/application-creation.en.d.ts.map +1 -1
  166. package/dist/esm/i18n/system_enums/application-creation.en.js +45 -1
  167. package/dist/esm/i18n/system_enums/application-creation.en.js.map +1 -1
  168. package/dist/esm/i18n/system_enums/localization.en.d.ts +82 -0
  169. package/dist/esm/i18n/system_enums/localization.en.d.ts.map +1 -0
  170. package/dist/esm/i18n/system_enums/localization.en.js +82 -0
  171. package/dist/esm/i18n/system_enums/localization.en.js.map +1 -0
  172. package/dist/esm/i18n/system_enums/risk-register.en.d.ts +1 -0
  173. package/dist/esm/i18n/system_enums/risk-register.en.d.ts.map +1 -1
  174. package/dist/esm/i18n/system_enums/risk-register.en.js +1 -0
  175. package/dist/esm/i18n/system_enums/risk-register.en.js.map +1 -1
  176. package/dist/esm/i18n/system_enums/workbench-dossier.en.d.ts +10 -0
  177. package/dist/esm/i18n/system_enums/workbench-dossier.en.d.ts.map +1 -1
  178. package/dist/esm/i18n/system_enums/workbench-dossier.en.js +13 -0
  179. package/dist/esm/i18n/system_enums/workbench-dossier.en.js.map +1 -1
  180. package/dist/esm/i18n-labelling/models/labelling-progress.models.d.ts +43 -0
  181. package/dist/esm/i18n-labelling/models/labelling-progress.models.d.ts.map +1 -0
  182. package/dist/esm/i18n-labelling/models/labelling-progress.models.js +34 -0
  183. package/dist/esm/i18n-labelling/models/labelling-progress.models.js.map +1 -0
  184. package/dist/esm/i18n-labelling/services/labellize-orchestrator.companion.service.d.ts +8 -0
  185. package/dist/esm/i18n-labelling/services/labellize-orchestrator.companion.service.d.ts.map +1 -1
  186. package/dist/esm/i18n-labelling/services/labellize-orchestrator.companion.service.js +97 -56
  187. package/dist/esm/i18n-labelling/services/labellize-orchestrator.companion.service.js.map +1 -1
  188. package/dist/esm/i18n-labelling/services/translate-orchestrator.companion.service.d.ts +18 -0
  189. package/dist/esm/i18n-labelling/services/translate-orchestrator.companion.service.d.ts.map +1 -1
  190. package/dist/esm/i18n-labelling/services/translate-orchestrator.companion.service.js +269 -153
  191. package/dist/esm/i18n-labelling/services/translate-orchestrator.companion.service.js.map +1 -1
  192. package/dist/esm/i18n-labelling/utils/labelling-concurrency.utils.d.ts +41 -0
  193. package/dist/esm/i18n-labelling/utils/labelling-concurrency.utils.d.ts.map +1 -0
  194. package/dist/esm/i18n-labelling/utils/labelling-concurrency.utils.js +47 -0
  195. package/dist/esm/i18n-labelling/utils/labelling-concurrency.utils.js.map +1 -0
  196. package/dist/esm/i18n-labelling/utils/per-unit-file.utils.d.ts +12 -0
  197. package/dist/esm/i18n-labelling/utils/per-unit-file.utils.d.ts.map +1 -1
  198. package/dist/esm/i18n-labelling/utils/per-unit-file.utils.js +10 -2
  199. package/dist/esm/i18n-labelling/utils/per-unit-file.utils.js.map +1 -1
  200. package/dist/esm/i18n-labelling/utils/staged-label-file-writer.utils.d.ts +89 -0
  201. package/dist/esm/i18n-labelling/utils/staged-label-file-writer.utils.d.ts.map +1 -0
  202. package/dist/esm/i18n-labelling/utils/staged-label-file-writer.utils.js +229 -0
  203. package/dist/esm/i18n-labelling/utils/staged-label-file-writer.utils.js.map +1 -0
  204. package/dist/esm/meta-workflows/models/build-task-rearm.models.d.ts +67 -1
  205. package/dist/esm/meta-workflows/models/build-task-rearm.models.d.ts.map +1 -1
  206. package/dist/esm/meta-workflows/models/build-task-rearm.models.js +64 -0
  207. package/dist/esm/meta-workflows/models/build-task-rearm.models.js.map +1 -1
  208. package/dist/esm/meta-workflows/models/creation-intervention.models.d.ts +308 -0
  209. package/dist/esm/meta-workflows/models/creation-intervention.models.d.ts.map +1 -0
  210. package/dist/esm/meta-workflows/models/creation-intervention.models.js +365 -0
  211. package/dist/esm/meta-workflows/models/creation-intervention.models.js.map +1 -0
  212. package/dist/esm/meta-workflows/models/generation-step-progress.models.d.ts +61 -0
  213. package/dist/esm/meta-workflows/models/generation-step-progress.models.d.ts.map +1 -0
  214. package/dist/esm/meta-workflows/models/generation-step-progress.models.js +58 -0
  215. package/dist/esm/meta-workflows/models/generation-step-progress.models.js.map +1 -0
  216. package/dist/esm/meta-workflows/models/meta-workflows-lane.models.d.ts +10 -6
  217. package/dist/esm/meta-workflows/models/meta-workflows-lane.models.d.ts.map +1 -1
  218. package/dist/esm/meta-workflows/models/meta-workflows-lane.models.js +11 -6
  219. package/dist/esm/meta-workflows/models/meta-workflows-lane.models.js.map +1 -1
  220. package/dist/esm/meta-workflows/models/playbook-run-checkpoint.models.d.ts +3 -0
  221. package/dist/esm/meta-workflows/models/playbook-run-checkpoint.models.d.ts.map +1 -1
  222. package/dist/esm/meta-workflows/models/playbook-run-checkpoint.models.js +8 -1
  223. package/dist/esm/meta-workflows/models/playbook-run-checkpoint.models.js.map +1 -1
  224. package/dist/esm/meta-workflows/models/playbook-run-record.models.d.ts +26 -0
  225. package/dist/esm/meta-workflows/models/playbook-run-record.models.d.ts.map +1 -1
  226. package/dist/esm/meta-workflows/models/playbook-run-record.models.js +66 -10
  227. package/dist/esm/meta-workflows/models/playbook-run-record.models.js.map +1 -1
  228. package/dist/esm/meta-workflows/services/application-assembly-checks.companion.utils.d.ts +13 -0
  229. package/dist/esm/meta-workflows/services/application-assembly-checks.companion.utils.d.ts.map +1 -0
  230. package/dist/esm/meta-workflows/services/application-assembly-checks.companion.utils.js +33 -0
  231. package/dist/esm/meta-workflows/services/application-assembly-checks.companion.utils.js.map +1 -0
  232. package/dist/esm/meta-workflows/services/application-assembly-repair.companion.utils.d.ts +145 -0
  233. package/dist/esm/meta-workflows/services/application-assembly-repair.companion.utils.d.ts.map +1 -0
  234. package/dist/esm/meta-workflows/services/application-assembly-repair.companion.utils.js +179 -0
  235. package/dist/esm/meta-workflows/services/application-assembly-repair.companion.utils.js.map +1 -0
  236. package/dist/esm/meta-workflows/services/application-build-dispatch.companion.service.d.ts +376 -17
  237. package/dist/esm/meta-workflows/services/application-build-dispatch.companion.service.d.ts.map +1 -1
  238. package/dist/esm/meta-workflows/services/application-build-dispatch.companion.service.js +805 -39
  239. package/dist/esm/meta-workflows/services/application-build-dispatch.companion.service.js.map +1 -1
  240. package/dist/esm/meta-workflows/services/application-build-generation-step.companion.service.d.ts +93 -7
  241. package/dist/esm/meta-workflows/services/application-build-generation-step.companion.service.d.ts.map +1 -1
  242. package/dist/esm/meta-workflows/services/application-build-generation-step.companion.service.js +142 -25
  243. package/dist/esm/meta-workflows/services/application-build-generation-step.companion.service.js.map +1 -1
  244. package/dist/esm/meta-workflows/services/application-build-task-coding-policy.companion.service.d.ts +120 -3
  245. package/dist/esm/meta-workflows/services/application-build-task-coding-policy.companion.service.d.ts.map +1 -1
  246. package/dist/esm/meta-workflows/services/application-build-task-coding-policy.companion.service.js +325 -16
  247. package/dist/esm/meta-workflows/services/application-build-task-coding-policy.companion.service.js.map +1 -1
  248. package/dist/esm/meta-workflows/services/application-build-website-context.companion.service.d.ts.map +1 -1
  249. package/dist/esm/meta-workflows/services/application-build-website-context.companion.service.js +15 -6
  250. package/dist/esm/meta-workflows/services/application-build-website-context.companion.service.js.map +1 -1
  251. package/dist/esm/meta-workflows/services/application-maturity-executor.companion.service.d.ts.map +1 -1
  252. package/dist/esm/meta-workflows/services/application-maturity-executor.companion.service.js +10 -11
  253. package/dist/esm/meta-workflows/services/application-maturity-executor.companion.service.js.map +1 -1
  254. package/dist/esm/meta-workflows/services/capability-composition-executor.companion.service.d.ts.map +1 -1
  255. package/dist/esm/meta-workflows/services/capability-composition-executor.companion.service.js +10 -11
  256. package/dist/esm/meta-workflows/services/capability-composition-executor.companion.service.js.map +1 -1
  257. package/dist/esm/meta-workflows/services/creation-intervention-ledger.companion.service.d.ts +82 -0
  258. package/dist/esm/meta-workflows/services/creation-intervention-ledger.companion.service.d.ts.map +1 -0
  259. package/dist/esm/meta-workflows/services/creation-intervention-ledger.companion.service.js +291 -0
  260. package/dist/esm/meta-workflows/services/creation-intervention-ledger.companion.service.js.map +1 -0
  261. package/dist/esm/meta-workflows/services/creation-lane-preflight.companion.service.d.ts +60 -0
  262. package/dist/esm/meta-workflows/services/creation-lane-preflight.companion.service.d.ts.map +1 -0
  263. package/dist/esm/meta-workflows/services/creation-lane-preflight.companion.service.js +66 -0
  264. package/dist/esm/meta-workflows/services/creation-lane-preflight.companion.service.js.map +1 -0
  265. package/dist/esm/meta-workflows/services/creation-run-report.companion.service.d.ts +53 -0
  266. package/dist/esm/meta-workflows/services/creation-run-report.companion.service.d.ts.map +1 -0
  267. package/dist/esm/meta-workflows/services/creation-run-report.companion.service.js +164 -0
  268. package/dist/esm/meta-workflows/services/creation-run-report.companion.service.js.map +1 -0
  269. package/dist/esm/meta-workflows/services/dossier-write-queue.companion.utils.d.ts +37 -0
  270. package/dist/esm/meta-workflows/services/dossier-write-queue.companion.utils.d.ts.map +1 -0
  271. package/dist/esm/meta-workflows/services/dossier-write-queue.companion.utils.js +52 -0
  272. package/dist/esm/meta-workflows/services/dossier-write-queue.companion.utils.js.map +1 -0
  273. package/dist/esm/meta-workflows/services/dossier.companion.service.d.ts +74 -14
  274. package/dist/esm/meta-workflows/services/dossier.companion.service.d.ts.map +1 -1
  275. package/dist/esm/meta-workflows/services/dossier.companion.service.js +180 -28
  276. package/dist/esm/meta-workflows/services/dossier.companion.service.js.map +1 -1
  277. package/dist/esm/meta-workflows/services/foundation-executor.companion.service.d.ts +2 -3
  278. package/dist/esm/meta-workflows/services/foundation-executor.companion.service.d.ts.map +1 -1
  279. package/dist/esm/meta-workflows/services/foundation-executor.companion.service.js +2 -8
  280. package/dist/esm/meta-workflows/services/foundation-executor.companion.service.js.map +1 -1
  281. package/dist/esm/meta-workflows/services/interview-answer-proposal.companion.d.ts +67 -0
  282. package/dist/esm/meta-workflows/services/interview-answer-proposal.companion.d.ts.map +1 -0
  283. package/dist/esm/meta-workflows/services/interview-answer-proposal.companion.js +64 -0
  284. package/dist/esm/meta-workflows/services/interview-answer-proposal.companion.js.map +1 -0
  285. package/dist/esm/meta-workflows/services/playbook-instance.companion.service.d.ts.map +1 -1
  286. package/dist/esm/meta-workflows/services/playbook-instance.companion.service.js +11 -3
  287. package/dist/esm/meta-workflows/services/playbook-instance.companion.service.js.map +1 -1
  288. package/dist/esm/meta-workflows/services/playbook-run-write-register.companion.service.d.ts +92 -4
  289. package/dist/esm/meta-workflows/services/playbook-run-write-register.companion.service.d.ts.map +1 -1
  290. package/dist/esm/meta-workflows/services/playbook-run-write-register.companion.service.js +328 -7
  291. package/dist/esm/meta-workflows/services/playbook-run-write-register.companion.service.js.map +1 -1
  292. package/dist/esm/meta-workflows/services/playbook-run.companion.service.d.ts +105 -6
  293. package/dist/esm/meta-workflows/services/playbook-run.companion.service.d.ts.map +1 -1
  294. package/dist/esm/meta-workflows/services/playbook-run.companion.service.js +309 -39
  295. package/dist/esm/meta-workflows/services/playbook-run.companion.service.js.map +1 -1
  296. package/dist/esm/meta-workflows/services/playbook-spend-meter.companion.service.d.ts +62 -1
  297. package/dist/esm/meta-workflows/services/playbook-spend-meter.companion.service.d.ts.map +1 -1
  298. package/dist/esm/meta-workflows/services/playbook-spend-meter.companion.service.js +152 -2
  299. package/dist/esm/meta-workflows/services/playbook-spend-meter.companion.service.js.map +1 -1
  300. package/package.json +22 -18
  301. package/dist/esm/.tsbuildinfo +0 -1
  302. package/dist/esm/__tests__/asset-noop.d.ts +0 -3
  303. package/dist/esm/__tests__/asset-noop.d.ts.map +0 -1
  304. package/dist/esm/__tests__/asset-noop.js +0 -2
  305. package/dist/esm/__tests__/asset-noop.js.map +0 -1
  306. package/dist/esm/__tests__/chdir-dogfood-app.setup.d.ts +0 -2
  307. package/dist/esm/__tests__/chdir-dogfood-app.setup.d.ts.map +0 -1
  308. package/dist/esm/__tests__/chdir-dogfood-app.setup.js +0 -44
  309. package/dist/esm/__tests__/chdir-dogfood-app.setup.js.map +0 -1
  310. package/dist/esm/__tests__/internal-test-view.d.ts +0 -39
  311. package/dist/esm/__tests__/internal-test-view.d.ts.map +0 -1
  312. package/dist/esm/__tests__/internal-test-view.js +0 -2
  313. package/dist/esm/__tests__/internal-test-view.js.map +0 -1
  314. package/dist/esm/claude-cli/services/__tests__/support/in-memory-coding-actor-plane.d.ts +0 -50
  315. package/dist/esm/claude-cli/services/__tests__/support/in-memory-coding-actor-plane.d.ts.map +0 -1
  316. package/dist/esm/claude-cli/services/__tests__/support/in-memory-coding-actor-plane.js +0 -157
  317. package/dist/esm/claude-cli/services/__tests__/support/in-memory-coding-actor-plane.js.map +0 -1
  318. package/dist/esm/meta-workflows/services/__tests__/application-build-task-coding.companion.test-fixtures.d.ts +0 -8
  319. package/dist/esm/meta-workflows/services/__tests__/application-build-task-coding.companion.test-fixtures.d.ts.map +0 -1
  320. package/dist/esm/meta-workflows/services/__tests__/application-build-task-coding.companion.test-fixtures.js +0 -43
  321. package/dist/esm/meta-workflows/services/__tests__/application-build-task-coding.companion.test-fixtures.js.map +0 -1
  322. package/dist/esm/meta-workflows/services/__tests__/support/in-memory-actor-plane.d.ts +0 -79
  323. package/dist/esm/meta-workflows/services/__tests__/support/in-memory-actor-plane.d.ts.map +0 -1
  324. package/dist/esm/meta-workflows/services/__tests__/support/in-memory-actor-plane.js +0 -193
  325. package/dist/esm/meta-workflows/services/__tests__/support/in-memory-actor-plane.js.map +0 -1
@@ -1,5 +1,5 @@
1
1
  import { Workbench_BuildDispatchPhase, Workbench_BuildTaskStuckReason, WorkbenchBuildPlanTaskStatus } from '@wildo-ai/platform-core-shared';
2
- import { type BuildTaskContextSource } from '@wildo-ai/application-creation-runtime';
2
+ import { type BuildTaskContextSource, type PlaybookSpend } from '@wildo-ai/application-creation-runtime';
3
3
  import type { ActorsSystemBackendService, LoggerService } from '@wildo-ai/saas-backend-lib';
4
4
  import { FlowsActors_Status } from '@wildo-ai/saas-models';
5
5
  import { type BuildPlanTaskProduct, PlacementSurface, type PlacementPlan, type BuildPlanTask } from '@wildo-ai/saas-specifications/application-creation';
@@ -9,19 +9,29 @@ import { CodingRunConcurrency } from '../../claude-cli/models/concurrent-coding-
9
9
  import { CodingAgentDispatchCompanionService, type ApplicationCodingTaskSettledOutcome } from '../../claude-cli/services/coding-agent-dispatch.companion.service';
10
10
  import { CodingRunFailureAttribution, type ApplicationCodingTaskRunAdmission } from '../../claude-cli/models/coding-agent-dispatch.models';
11
11
  import { GitChangeSetCompanionService } from '../../claude-cli/services/git-change-set.companion.service';
12
+ import type { AcceptedChangeCommitCompanionService } from '../../claude-cli/services/accepted-change-commit.companion.service';
12
13
  import type { CompanionExecutionSessionContext } from '../../core/traceability/companion-traceability.models';
13
14
  import { CompanionExecutionsCompanionService } from '../../executions/services/companion-executions.companion.service';
14
15
  import { type UnavailableApplicationRuntime } from '../../core/runtime/application-runtime-liveness.companion';
15
16
  import type { CarriedVerificationDiagnosis } from '../models/carried-verification-failure.models';
16
- import { type BuildTaskRearm, type BuildTaskRearmReason } from '../models/build-task-rearm.models';
17
+ import type { GenerationStepProgress } from '../models/generation-step-progress.models';
18
+ import { BuildTaskRearmReason, type BuildTaskInterference, type BuildTaskLandedOverride, type BuildTaskRearm } from '../models/build-task-rearm.models';
17
19
  import { ApplicationBuildGenerationStepCompanionService, type ApplicationBuildGenerationStepRunResult, SchemaPlanSyncState } from './application-build-generation-step.companion.service';
18
20
  import { type BuildPlanTaskLandedProbe } from './application-build-task-coding-policy.companion.service';
21
+ import { type AssemblyRepairWithheldReason } from './application-assembly-repair.companion.utils';
19
22
  /** No build plan, or nothing left to do. Named so the transport can say which. */
20
23
  export declare class ApplicationBuildPlanUnavailableError extends Error {
21
24
  }
22
25
  export declare class ApplicationBuildPlanExhaustedError extends Error {
23
26
  readonly taskCount: number;
24
27
  readonly landedCount: number;
28
+ /** WHICH tasks landed — so a finished plan can still say which of them no run of their own produced (#2217). */
29
+ readonly landedTaskRefs: readonly string[];
30
+ /**
31
+ * Whether the application the finished plan built ASSEMBLES (#2222) — set by a dispatch door, which is where
32
+ * "the build is finished" is claimed; absent from the cheap read door, which never runs a compiler.
33
+ */
34
+ readonly assembly?: ApplicationAssemblyVerdict | undefined;
25
35
  /**
26
36
  * The counts, carried STRUCTURALLY rather than only inside the sentence.
27
37
  *
@@ -29,7 +39,46 @@ export declare class ApplicationBuildPlanExhaustedError extends Error {
29
39
  * fields the only copy lived in prose the reader would have had to parse. A board that parses
30
40
  * another component's error message is a board that breaks when somebody improves the wording.
31
41
  */
32
- constructor(message: string, taskCount: number, landedCount: number);
42
+ constructor(message: string, taskCount: number, landedCount: number,
43
+ /** WHICH tasks landed — so a finished plan can still say which of them no run of their own produced (#2217). */
44
+ landedTaskRefs?: readonly string[],
45
+ /**
46
+ * Whether the application the finished plan built ASSEMBLES (#2222) — set by a dispatch door, which is where
47
+ * "the build is finished" is claimed; absent from the cheap read door, which never runs a compiler.
48
+ */
49
+ assembly?: ApplicationAssemblyVerdict | undefined);
50
+ }
51
+ /**
52
+ * The answer to "does the application this plan built assemble?" (#2222), from the checks every package owes.
53
+ *
54
+ * A finished plan used to be the end of the question: in `app-creation-test-004` the build would have read 92 of 92
55
+ * with a website that did not compile, because each task typechecks only the package it wrote and a file can reach
56
+ * git without its task's checks (a wave's reconciliation commit). MARKED, never a refusal of anything that already
57
+ * landed — `application-creation-directive.md`: what the operator does next is fix the package, so the verdict says
58
+ * which package and what the compiler said, and leaves the landed work alone.
59
+ */
60
+ export interface ApplicationAssemblyVerdict {
61
+ readonly passed: boolean;
62
+ readonly checkRefs: readonly string[];
63
+ /**
64
+ * `output` is an EXCERPT of what the check printed: the first lines of the captured stdout (where `tsc` writes its
65
+ * diagnostics), else of stderr. The capture is a bounded tail, so on a very long run these are the first lines
66
+ * of that tail, not necessarily the compiler's first error.
67
+ */
68
+ readonly failed: ReadonlyArray<{
69
+ readonly checkRef: string;
70
+ readonly output: string;
71
+ }>;
72
+ /** A check that could not be RUN (no compiler, no built registry): not a verdict about the application. */
73
+ readonly couldNotRun?: string;
74
+ /**
75
+ * The failing checks no repair was dispatched for, and why (#2283): their repairs this round are spent, or the
76
+ * last one was given this same failure. Absent when nothing was withheld.
77
+ */
78
+ readonly repairsWithheld?: readonly {
79
+ readonly checkRef: string;
80
+ readonly reason: AssemblyRepairWithheldReason;
81
+ }[];
33
82
  }
34
83
  /**
35
84
  * Why a read door cannot ANSWER with an exception.
@@ -81,11 +130,20 @@ export interface ApplicationBuildDispatchDescription {
81
130
  readonly stuckQueue?: ApplicationBuildStuckQueue;
82
131
  /** Every ready task dispatch passed over, and why. Empty when nothing was skipped. */
83
132
  readonly stuckTasks: readonly ApplicationBuildStuckTask[];
133
+ /**
134
+ * The landed tasks no run of their own ever started (#2217): the probe found the product before anything ran.
135
+ * Beside every answer — a next task, a stuck queue, a finished plan — because "92 of 92 landed" is precisely the
136
+ * sentence it must qualify. ABSENT — not empty — when the run history was truncated at the page cap, because a
137
+ * partial history cannot say a task never ran; and absent from a caller older than the field.
138
+ */
139
+ readonly landedBeforeAnyRunTaskRefs?: readonly string[];
84
140
  }
85
141
  /** The ref of the `database-migrations` step the dispatch host derives when a plan owes it and omits it (#1027). */
86
142
  export declare const HOST_DERIVED_DATABASE_MIGRATIONS_TASK_REF = "build-task-database-migrations";
87
143
  /** The ref of the `documentation-publication` step the host derives for a plan that authors chapters (#1273). */
88
144
  export declare const HOST_DERIVED_DOCUMENTATION_PUBLICATION_TASK_REF = "build-task-documentation-publication";
145
+ /** The ref of the `i18n-translations` step the host derives after a plan's labels step, for a multi-locale application (#2204). */
146
+ export declare const HOST_DERIVED_I18N_TRANSLATIONS_TASK_REF = "build-task-i18n-translations";
89
147
  /**
90
148
  * One dispatch, newest first in {@link ApplicationBuildDispatchCompanionService.readDetachedDispatches}.
91
149
  * A PROJECTION of the dispatch's actor-system execution since #1359, not a record anything keeps.
@@ -103,6 +161,20 @@ export interface ApplicationBuildDetachedDispatchRecord {
103
161
  /** The conversation the dispatch was started from, when it was (#1454, Step 7). */
104
162
  readonly conversationId?: string;
105
163
  }
164
+ /** A coding run's reported tokens, per dimension (#2232). Read off `CodingAgent_Usage` on the run's row. */
165
+ export interface CodingRunReportedTokens {
166
+ readonly inputTokens?: number;
167
+ readonly outputTokens?: number;
168
+ readonly cacheReadTokens?: number;
169
+ readonly cacheWriteTokens?: number;
170
+ /** As reported; when the agent reported none, the sum of the dimensions it did report. */
171
+ readonly totalTokens?: number;
172
+ }
173
+ /**
174
+ * The tokens a run's recorded usage carries, or `undefined` when it carries none. Read by SHAPE: the row
175
+ * crossed a JSON boundary, and `CodingAgent_Usage` makes every field optional.
176
+ */
177
+ export declare function readCodingRunReportedTokens(usage: unknown): CodingRunReportedTokens | undefined;
106
178
  /**
107
179
  * One ATTEMPT at a build task — one actor execution, read from its own durable row (#1521).
108
180
  *
@@ -113,6 +185,21 @@ export interface ApplicationBuildDetachedDispatchRecord {
113
185
  export interface ApplicationBuildTaskAttempt {
114
186
  /** The execution's own task id — the row an operator opens to read the full outcome. */
115
187
  readonly runTaskId: string;
188
+ /**
189
+ * A companion GENERATION step (labels, migrations, translations) rather than a coding run (#2232 review).
190
+ * Both are attempts at a build task, but a generation step is no agent run: it has no agent-reported tokens or
191
+ * cost, so counting it among the coding runs listed it as "cost not reported by the agent" and made every
192
+ * coding-run total a false floor. Its own model calls' spend is {@link generationStepSpend}. Absent for a coding run.
193
+ */
194
+ readonly generationStep?: true;
195
+ /**
196
+ * What a GENERATION STEP's model calls spent, as its row records it (#2232). A labels or translations pass is
197
+ * model calls priced by the provider, not an agent's reported cost, so it is a {@link PlaybookSpend}, the same
198
+ * reading a playbook run's figure is. Absent on a coding run, and on a step whose row predates the field.
199
+ */
200
+ readonly generationStepSpend?: PlaybookSpend;
201
+ /** This run was started past a landing the operator said was wrong, and why (#2217). */
202
+ readonly landedOverride?: BuildTaskLandedOverride;
116
203
  readonly startedAt: string;
117
204
  readonly settledAt?: string;
118
205
  /** The execution's status, from the actor plane's own vocabulary. */
@@ -126,11 +213,20 @@ export interface ApplicationBuildTaskAttempt {
126
213
  readonly carriedFailures?: readonly CarriedVerificationDiagnosis[];
127
214
  /** Checks this run ran GREEN — what tells a repair that a carried red has since been cleared. */
128
215
  readonly passedCheckRefs?: readonly string[];
129
- /** What the run cost, as the agent reported it. */
216
+ /**
217
+ * What the run cost, as the agent reported it: its session's cumulative total, so a whole run's cost
218
+ * however many turns it took (#2232). Absent when the agent reported none — never read as zero.
219
+ */
130
220
  readonly cost?: {
131
221
  readonly amount: number;
132
222
  readonly currency: string;
133
223
  };
224
+ /**
225
+ * The tokens the run reported (#2232), each dimension present only when reported. A coding run's total
226
+ * is mostly prompt-cache reads (on app-creation-test-004, 1.1M of a 1.2M-token run), so the cache read
227
+ * is kept apart: it is what a total that looks enormous is made of.
228
+ */
229
+ readonly tokens?: CodingRunReportedTokens;
134
230
  /** Checks the run FAILED, as this run's own (a carried red is in `carriedFailures`, not here). */
135
231
  readonly failedCheckRefs?: readonly string[];
136
232
  /** Why the agent's turn ended — `max_tokens` or `refusal` leave a change set that reads as complete and is not. */
@@ -148,6 +244,11 @@ export interface ApplicationBuildTaskAttempt {
148
244
  };
149
245
  /** It failed while other runs were editing the tree, so the failure may be theirs; the budget forgives a bounded number. */
150
246
  readonly interferenceSuspected?: true;
247
+ /**
248
+ * It COMPLETED, and a sibling of its wave overwrote its declared product (#2210): which runs, which files,
249
+ * and whether the wave re-ran the task for it. Absent for a run nobody interfered with.
250
+ */
251
+ readonly interference?: BuildTaskInterference;
151
252
  /**
152
253
  * The run ended without ever starting, by the HOST's act: refused at admission, or left selected by
153
254
  * a stopped process (#1581). Shown in the history, because it explains why nothing ran, and counted
@@ -222,12 +323,28 @@ export interface ApplicationBuildTaskRecord {
222
323
  readonly waitingOn?: readonly string[];
223
324
  /** LANDED with no product to prove — RAN-not-PROVEN (`application-creation-directive.md`). */
224
325
  readonly unverifiable?: boolean;
326
+ /**
327
+ * LANDED, and no run of this task ever started (#2217): the probe found the product before anything ran. It may
328
+ * be true — a sibling task's run wrote it, or a person did — or the probe may be reading something that is not
329
+ * the product (#2216 read a comment). The board must not show it as a bare `landed`, which reads as "built by its
330
+ * own run". `probedPaths` is where the probe found it; `wildo build run <task> --despite-landed` runs it anyway.
331
+ */
332
+ readonly landedBeforeAnyRun?: {
333
+ readonly probedPaths: readonly string[];
334
+ };
335
+ /**
336
+ * A generation step running in this companion right now: how far it has got (#2215). Without it a
337
+ * step that runs for hours reads "running" the whole time, and slow cannot be told from stuck.
338
+ */
339
+ readonly progress?: GenerationStepProgress;
225
340
  }
226
341
  export interface ApplicationBuildTaskRecords {
227
342
  readonly tasks: readonly ApplicationBuildTaskRecord[];
228
343
  readonly summary: {
229
344
  readonly taskCount: number;
230
345
  readonly landed: number;
346
+ /** Of `landed`, the tasks no run of their own ever started (#2217) — see {@link ApplicationBuildTaskRecord.landedBeforeAnyRun}. */
347
+ readonly landedBeforeAnyRun: number;
231
348
  readonly blocked: number;
232
349
  /** READY and no run ever STARTED — the work simply not reached yet. A refused dispatch starts nothing (#1581). */
233
350
  readonly readyNeverAttempted: number;
@@ -255,6 +372,8 @@ export interface ApplicationBuildTaskRecords {
255
372
  readonly degree: number;
256
373
  readonly overlappingAttempts: number;
257
374
  readonly interferenceSuspectedAttempts: number;
375
+ /** Completed attempts whose product a sibling overwrote (#2210). */
376
+ readonly interferedCompletedAttempts: number;
258
377
  readonly contendedPaths: readonly string[];
259
378
  };
260
379
  };
@@ -290,12 +409,32 @@ export declare const MAXIMUM_ATTRIBUTABLE_FAILED_ATTEMPTS = 3;
290
409
  * report none, and those attempts are not in the totals — which are then a floor, and say so, rather
291
410
  * than quietly reading an unpriced attempt as free. An attempt still running has no cost yet and is not
292
411
  * counted.
412
+ *
413
+ * `totalTokens` / `cacheReadTokens` (#2232) sum what the runs REPORTED, present only when at least one did.
414
+ * Generation steps are left out of every figure here: they are no agent runs and report neither.
415
+ * Tokens are reported where a cost may not be (an agent priced by subscription, a provider that prices
416
+ * nothing), so they are the figure that says a run worked when its cost is unknown.
293
417
  */
294
418
  export declare function deriveBuildSpend(records: readonly Pick<ApplicationBuildTaskRecord, 'status' | 'attempts'>[]): {
295
419
  readonly total: Readonly<Record<string, number>>;
296
420
  readonly onTasksNotLanded: Readonly<Record<string, number>>;
297
421
  readonly attemptsWithoutReportedCost: number;
422
+ readonly totalTokens?: number;
423
+ readonly cacheReadTokens?: number;
424
+ /** The generation steps' own spend (#2232), apart from the coding runs. Absent when no step ran. */
425
+ readonly generationSteps?: ApplicationBuildGenerationStepSpend;
298
426
  };
427
+ /**
428
+ * What the build's generation steps spent (#2232): how many settled, how many have no recorded spend (a row
429
+ * from before #2232), and their merged spend. The merged spend's own `measurement` says whether any call
430
+ * reported no usage; a step with no recorded spend is counted apart, never as free.
431
+ */
432
+ export interface ApplicationBuildGenerationStepSpend {
433
+ readonly steps: number;
434
+ readonly stepsWithoutRecordedSpend: number;
435
+ /** The steps' recorded spend, merged. Absent when no step recorded one. */
436
+ readonly spend?: PlaybookSpend;
437
+ }
299
438
  /**
300
439
  * The reds owed a repair, from every attempt's record (#1529). Pure over the attempts, so what counts as
301
440
  * "still owed" is pinned rather than implied: a check is cleared once any attempt that started AFTER the
@@ -381,7 +520,45 @@ export interface ApplicationBuildWaveResult {
381
520
  readonly committedPaths: number;
382
521
  readonly error?: string;
383
522
  }[];
523
+ /**
524
+ * The runs that completed and lost their product to a sibling, found once the wave's tree was reconciled,
525
+ * and what was done about each (#2210). Empty for a single-flight wave, which has no sibling.
526
+ */
527
+ readonly interferenceRepairs: readonly ApplicationBuildInterferenceRepair[];
384
528
  readonly stoppedFillingBecause: ApplicationBuildWaveStop;
529
+ /**
530
+ * Present when the wave ended because the PLAN is exhausted — every task landed — and says whether the application
531
+ * those tasks built assembles (#2222). A parallel build ends here rather than at a single dispatch door, so this
532
+ * is where "the build is finished" is claimed for it.
533
+ */
534
+ readonly assembly?: ApplicationAssemblyVerdict;
535
+ /**
536
+ * The repairs the wave's end ran because the finished plan did not assemble (#2283), in order: which check each
537
+ * repaired and how its run settled (`null` when the row could not be classified). `assembly` is the verdict after
538
+ * the last of them.
539
+ */
540
+ readonly assemblyRepairs?: readonly {
541
+ readonly checkRef: string;
542
+ readonly taskRef: string;
543
+ readonly outcome: ApplicationCodingTaskSettledOutcome | null;
544
+ }[];
545
+ }
546
+ /**
547
+ * One completed run whose declared product a concurrent sibling overwrote (#2210), and its repair: the task
548
+ * is re-armed and run again ALONE, so nothing can overwrite the second attempt. `rerun` is absent when the
549
+ * bound was already spent (`interference.requeued` is then false and the task waits for a person).
550
+ */
551
+ export interface ApplicationBuildInterferenceRepair {
552
+ readonly taskRef: string;
553
+ /** The completed run that lost its product. */
554
+ readonly runTaskId: string;
555
+ readonly interference: BuildTaskInterference;
556
+ readonly rerun?: {
557
+ readonly dispatch?: ApplicationBuildDispatchResult;
558
+ readonly outcome?: ApplicationCodingTaskSettledOutcome | null;
559
+ /** The re-run could not be dispatched; the task stays re-armed, so the next dispatch offers it. */
560
+ readonly error?: string;
561
+ };
385
562
  }
386
563
  /**
387
564
  * One dispatched build task's outcome — exactly one of the two executor results is present, matching the
@@ -432,6 +609,18 @@ export interface ApplicationBuildDispatchResult {
432
609
  * terminal state. Conflating them would let an operator read a money-burning loop as "the build is
433
610
  * finished".
434
611
  */
612
+ /**
613
+ * A build wave was asked for while one is already running in this companion (#2208 review M1).
614
+ *
615
+ * A second wave would double the width the person set, and it would break the first wave's end: that wave
616
+ * commits what its runs left and re-runs interfered tasks ALONE "now that nothing is writing", which is false
617
+ * while a second wave's runs are live. Refused as a CONFLICT — nothing is wrong with the request, the
618
+ * companion's state forbids it — and the remedy is to wait for the running wave, whose feed line ends it.
619
+ */
620
+ export declare class ApplicationBuildWaveInFlightError extends Error {
621
+ readonly startedAt: string;
622
+ constructor(startedAt: string);
623
+ }
435
624
  export declare class ApplicationBuildTaskCompletedButUnlandedError extends Error {
436
625
  readonly taskRef: string;
437
626
  readonly priorTaskId: string;
@@ -465,6 +654,13 @@ export declare class ApplicationBuildTaskNotReadyError extends Error {
465
654
  /** Where a dispatch was started from, carried onto the run's row so the conversation shows it (#1454, Step 7). */
466
655
  export interface ApplicationBuildDispatchOrigin {
467
656
  readonly conversationId?: string;
657
+ /** An operator ran a task the landing probe calls landed, and why (#2217). */
658
+ readonly landedOverride?: BuildTaskLandedOverride;
659
+ }
660
+ /** A NAMED selection, and — for a task that reads landed — the operator's override of that landing (#2217). */
661
+ export interface ApplicationBuildTaskSelection {
662
+ readonly taskRef: string;
663
+ readonly despiteLanded?: BuildTaskLandedOverride;
468
664
  }
469
665
  /**
470
666
  * Why a READY task cannot make progress is `Workbench_BuildTaskStuckReason` in
@@ -549,7 +745,27 @@ export declare class ApplicationBuildDispatchCompanionService {
549
745
  private readonly actorsSystem;
550
746
  private readonly executions;
551
747
  private readonly logDebug;
552
- constructor(logger: LoggerService, companionContext: CompanionContext, dispatch: CodingAgentDispatchCompanionService, git: GitChangeSetCompanionService, generationSteps: ApplicationBuildGenerationStepCompanionService, introspection: CompanionIntrospectionService, actorsSystem: ActorsSystemBackendService, executions: CompanionExecutionsCompanionService);
748
+ /**
749
+ * When the wave running in this companion started; `undefined` when none is (#2208 review M1). One process
750
+ * owns every wave — the console, a lane child and an explicit playbook run all reach {@link dispatchBuildWave}
751
+ * here — so an in-process marker is the whole population, and a restart (which ends every run) clears it.
752
+ */
753
+ private liveWaveStartedAt;
754
+ constructor(logger: LoggerService, companionContext: CompanionContext, dispatch: CodingAgentDispatchCompanionService, git: GitChangeSetCompanionService, generationSteps: ApplicationBuildGenerationStepCompanionService, introspection: CompanionIntrospectionService, actorsSystem: ActorsSystemBackendService, executions: CompanionExecutionsCompanionService, acceptedChangeCommit?: AcceptedChangeCommitCompanionService);
755
+ /**
756
+ * Of the paths a concurrent run is about to commit under its task's name, the ones a landing probe of that
757
+ * task names and that do NOT carry the task's declared product (#2209) — read from the tree AS THE COMMIT
758
+ * WOULD LEAVE IT, by the very predicate landing uses ({@link isLandedProbeSatisfied}), so the accept and the
759
+ * landing check cannot disagree about whether the commit holds the product.
760
+ *
761
+ * Only probes naming one of the paths are asked: a probe about another file says nothing about this
762
+ * commit. SHELL probes are not asked here: the shell they read is composed from many files and resolved
763
+ * from the live tree by introspection, so it cannot be read "as this commit leaves it", and a shell-placement
764
+ * run's own files are its configuration rather than a list several runs append to. A task the plan no
765
+ * longer holds declares nothing to check. A plan that cannot be read throws: the accept then commits
766
+ * nothing under the run's name, and the wave reconciliation takes the files as writer unknown.
767
+ */
768
+ private pathsLackingOwnProduct;
553
769
  /**
554
770
  * The application workspace's top-level entries — the raw material of a coding run's mutation
555
771
  * scope since #1268.
@@ -584,6 +800,14 @@ export declare class ApplicationBuildDispatchCompanionService {
584
800
  * second can be answered by "there is none".
585
801
  */
586
802
  describeNextBuildTask(): Promise<ApplicationBuildDispatchPlan>;
803
+ /**
804
+ * The same read for a caller that is about to RUN the build (#2208): the one a build wave asks before it
805
+ * is submitted. It refuses exactly as the one-task door refuses — including an exhausted plan's assembly
806
+ * verdict (#2222), which {@link describeNextBuildTask} leaves out because a dry run has nothing to check.
807
+ * Without it, `wildo build run` at a parallelism above one answered "every task landed" with no word on
808
+ * whether the application builds, which is the claim #2222 exists to qualify.
809
+ */
810
+ describeNextBuildTaskBeforeRunning(): Promise<ApplicationBuildDispatchPlan>;
587
811
  /**
588
812
  * The same read, for a caller that must be able to render "there is nothing left".
589
813
  *
@@ -594,6 +818,13 @@ export declare class ApplicationBuildDispatchCompanionService {
594
818
  * read can tell.
595
819
  */
596
820
  describeNextBuildTaskOrExhaustion(): Promise<ApplicationBuildDispatchDescription>;
821
+ /**
822
+ * Every build task with at least one run that STARTED — the population a landing can be "its own" against. A
823
+ * dispatch refused before it started is not one (#1581). Read from the same actor rows and the same page cap as
824
+ * the build record, so the two surfaces cannot disagree about which tasks ran.
825
+ */
826
+ private listBuildTaskRefsWithAStartedRun;
827
+ private describeNextBuildTaskOrExhaustionUnqualified;
597
828
  /**
598
829
  * The last few dispatches, newest first — read from the ACTOR PLANE since #1359.
599
830
  *
@@ -643,9 +874,7 @@ export declare class ApplicationBuildDispatchCompanionService {
643
874
  * readiness applies: a task that is not ready is refused before anything opens, exactly as
644
875
  * {@link dispatchBuildTask} refuses it.
645
876
  */
646
- selection?: {
647
- readonly taskRef: string;
648
- }): Promise<ApplicationBuildDispatchPlan>;
877
+ selection?: ApplicationBuildTaskSelection): Promise<ApplicationBuildDispatchPlan>;
649
878
  /**
650
879
  * Run the next ready build-plan task, routed by its own `target.kind`: a coding task goes to the coding
651
880
  * agent (bounded by its scope, locked, captured and verified); a companion generation step runs the
@@ -655,6 +884,45 @@ export declare class ApplicationBuildDispatchCompanionService {
655
884
  * the same rows, because the record is a property of a DISPATCH and not of the door that asked.
656
885
  */
657
886
  dispatchNextBuildTask(session?: CompanionExecutionSessionContext): Promise<ApplicationBuildDispatchResult>;
887
+ /**
888
+ * {@link prepareNextBuildTask} for a DISPATCH door (#2222): when nothing is left to run, the refusal says whether
889
+ * the application those tasks built assembles. The dispatch doors are where "the build is finished" is claimed —
890
+ * `wildo build run` with nothing ready, the loop's next step — so that is where the claim is checked. The read
891
+ * door (`describeNextBuildTaskOrExhaustion`) stays a read: it runs on every board poll and never spawns a compiler.
892
+ *
893
+ * And when it does NOT assemble, the next work is a REPAIR of the first failing check (#2283), within the bounds
894
+ * {@link selectAssemblyRepair} keeps, rather than a refusal a person has to act on. Only for the NEXT-task door: a
895
+ * caller that named a task asked about that task, and is refused with the verdict as before. While a repair runs,
896
+ * the door refuses rather than asking the checks again under it: the repair is writing the tree they read.
897
+ */
898
+ private prepareNextBuildTaskOrQualifyExhaustion;
899
+ private qualifyExhaustion;
900
+ /**
901
+ * Ask every assembly check (#2222). `failed[].detail` is the longer tail a repair is given (#2283); the verdict
902
+ * keeps the five-line excerpt it always showed.
903
+ */
904
+ private assessAssembly;
905
+ private exhaustedWithAssembly;
906
+ private toAssemblyVerdict;
907
+ /** The taskRef of a live assembly repair, or `undefined`. A plane that cannot be read answers `undefined`: the admission still refuses a second run. */
908
+ private findLiveAssemblyRepair;
909
+ /**
910
+ * The repair the failing checks are owed now, prepared exactly as a coding task is (#2283), or the checks it is
911
+ * withheld from. See `application-assembly-repair.companion.utils.ts` for the bounds, and
912
+ * `composeAssemblyRepairCodingContract` for why a repair is not a build-plan task.
913
+ *
914
+ * The run history that bounds it is the build's own execution rows, where each repair records the check and the
915
+ * failure it was given (`assemblyRepair` on the row input). If they cannot be read, nothing is repaired: a bound that
916
+ * cannot be measured is not spent on a guess, and the refusal still names the failing checks.
917
+ *
918
+ * A repair's context is the failure and its previous failed attempt, nothing else. It gets no skill and no live-query
919
+ * menu, unlike a build task: a build task's skills come from what it builds, and a repair builds nothing new, it
920
+ * makes a named check pass, and the check's own output is the most specific brief there is. Revisit if repairs are
921
+ * measured failing for want of knowledge they would have had.
922
+ */
923
+ private prepareAssemblyRepair;
924
+ /** The build's dispatch rows, coding runs and generation steps, as {@link assemblyRepairAttemptsThisRound} reads them. */
925
+ private listBuildDispatchRuns;
658
926
  /**
659
927
  * Run THIS task (#1454, Step 7). Admitted only when it is READY: the same selection as
660
928
  * `dispatchNextBuildTask`, narrowed to one candidate, so every stuck-task rule still applies and a
@@ -698,18 +966,63 @@ export declare class ApplicationBuildDispatchCompanionService {
698
966
  * parallel Claude Code sessions do every day. What is prevented is only a task being built twice at
699
967
  * once (the per-task subject and the IN_FLIGHT skip). What is REPAIRED is at the end: once every run
700
968
  * has settled, {@link CodingAgentDispatchCompanionService.reconcileWaveAcceptance} commits what the
701
- * runs' own accepts left, as one change naming every run whose writes it may carry (#1805). What is
702
- * OBSERVED is on each run's row
703
- * (`concurrency`, `interferenceSuspected`).
969
+ * runs' own accepts left, as one change naming every run whose writes it may carry (#1805); then
970
+ * {@link repairInterferedTasks} re-runs, ALONE, each task whose completed run lost its product to a
971
+ * sibling (#2210). What is OBSERVED is on each run's row (`concurrency`, `interferenceSuspected`, and the
972
+ * `interference` memory entry).
704
973
  *
705
974
  * Bounded per call: at most {@link WAVE_DISPATCHES_PER_DEGREE} dispatches per slot, and a generation
706
975
  * step at most once — a step whose landing stays unmet would otherwise be re-selected forever. The
707
- * next call continues from wherever the build stands.
976
+ * interference re-runs are outside that cap, bounded per task by `MAXIMUM_INTERFERENCE_REARMS` and at most
977
+ * one per completed run of this wave. The next call continues from wherever the build stands.
708
978
  *
709
979
  * With a degree of 1 this is one single-flight dispatch awaited to its outcome: exactly the lane as
710
980
  * it was.
711
981
  */
712
982
  dispatchBuildWave(session?: CompanionExecutionSessionContext): Promise<ApplicationBuildWaveResult>;
983
+ /**
984
+ * Refuse while a build wave runs in this companion (#2208 review M1) — the check a caller makes BEFORE it
985
+ * submits a detached wave, so the refusal reaches it now rather than as a failed run in the feed. The marker
986
+ * spans the whole wave, including its end-of-wave commit and repair, when no coding run may be live.
987
+ */
988
+ assertNoBuildWaveInFlight(): void;
989
+ private runBuildWave;
990
+ /**
991
+ * The assembly verdict when no task is ready because every one landed; absent when work remains or is stuck.
992
+ *
993
+ * When the finished plan does not assemble, the wave REPAIRS it here (#2283): it asks the next-task door, which
994
+ * answers with a repair of the first failing check while one is owed, runs that repair ALONE, waits for it, and
995
+ * asks again, until the door answers with a verdict. The door's per-check bounds end the loop; the ceiling below
996
+ * only guards against a repair that never counts, one the host keeps refusing before it starts.
997
+ */
998
+ private assemblyIfPlanExhausted;
999
+ /**
1000
+ * DETECT and REPAIR a product a sibling overwrote (#2210) — the half of the parallel wave's
1001
+ * detect-and-repair decision (Paul, 2026-09-24, recorded in `concurrent-coding-runs.models.ts`) that only
1002
+ * covered FAILED runs until then. A run that succeeded and then lost its write was reported
1003
+ * `completed_unlanded` ("fix what it declares, or the work") and waited for a person, although nothing in
1004
+ * the task was wrong. Measured on `app-creation-test-004` (2026-10-01, degree 5): two of five chapters were
1005
+ * lost from one chapters index, and both landed only when a person re-ran each task alone.
1006
+ *
1007
+ * A completed run counts as interfered when, all three:
1008
+ * - its task has not landed, and its declared product is missing from the WORKING tree too (present there
1009
+ * it was merely left uncommitted, which re-running would not fix);
1010
+ * - another run of the wave overlapped it in time (`describeCodingRunOverlap`, computed now that every
1011
+ * window is closed);
1012
+ * - one of the files read by the task's UNMET probes (the missing product's files, never a satisfied
1013
+ * product's) was changed by that overlapping run too.
1014
+ * Suspected, never proven, like `interferenceSuspected` on a failed run: the wave sees that a sibling wrote
1015
+ * the product's file during the run, not which line it replaced.
1016
+ *
1017
+ * The repair re-arms the task with `INTERFERED_BY_CONCURRENT_RUN` and runs it again SINGLE-FLIGHT, at once:
1018
+ * the concurrent runs have all settled, so the re-run edits the file as it now stands and nothing can
1019
+ * overwrite it. It is not prevention — the wave still runs every task concurrently, as decided — it is the
1020
+ * repair, made where the evidence is. Bounded by {@link MAXIMUM_INTERFERENCE_REARMS} per task. Sequential,
1021
+ * because the re-runs are single-flight.
1022
+ */
1023
+ private repairInterferedTasks;
1024
+ /** One run of {@link repairInterferedTasks}: `undefined` when it was not interfered with. */
1025
+ private repairIfInterfered;
713
1026
  /**
714
1027
  * Wait for one admitted coding run to SETTLE, then report what it actually did.
715
1028
  *
@@ -840,6 +1153,12 @@ export declare class ApplicationBuildDispatchCompanionService {
840
1153
  readonly rearmedRunTaskIds: readonly string[];
841
1154
  readonly rearm: BuildTaskRearm;
842
1155
  }>;
1156
+ /**
1157
+ * Where a task's landing was found: its probes' paths, or a generation step's evidence paths. Empty for a probe
1158
+ * that names no fixed file (a shell surface, a schema-plan state) — the record then says "found" without a place
1159
+ * rather than inventing one.
1160
+ */
1161
+ private resolveLandedEvidencePaths;
843
1162
  describeBuildTaskRecords(session?: CompanionExecutionSessionContext): Promise<ApplicationBuildTaskRecords | undefined>;
844
1163
  /**
845
1164
  * Every build-plan task in the DISPATCH view — the creation board's `workbenchBuildPlanTasks`
@@ -886,6 +1205,12 @@ export declare class ApplicationBuildDispatchCompanionService {
886
1205
  private resolveProducedButUncommittedPaths;
887
1206
  /** The working tree behind the same reader shape: a path "is committed" here when it exists on disk. Never throws. */
888
1207
  private createWorktreeReader;
1208
+ /**
1209
+ * The tree as a pathspec commit of `committing` would leave it (#2209): those paths as they stand on disk
1210
+ * (`commitPaths` takes each whole working file), every other path as HEAD has it. Behind the reader shape
1211
+ * landing asks, so the accept asks exactly landing's question of the commit it is about to make.
1212
+ */
1213
+ private createProspectiveCommitReader;
889
1214
  /** A fresh {@link CommittedTreeReader} for one landing resolution; never shared across resolutions. */
890
1215
  private createCommittedTreeReader;
891
1216
  /**
@@ -897,11 +1222,13 @@ export declare class ApplicationBuildDispatchCompanionService {
897
1222
  *
898
1223
  * A declaration is matched as a WHOLE WORD, not as a substring. `deal.schemas.ts` carries prose
899
1224
  * naming its own build tasks, so a bare `includes` would find `pipelineStageId` inside a comment
900
- * that merely mentions it and report a task landed on its own documentation. Whole-word matching
901
- * still counts a mention in a comment — an AST question is the sound version and needs the
902
- * introspection subprocess — so this errs toward LANDED only for a file that names the symbol
903
- * without declaring it, and never for the scaffold shapes that produced #597, where the symbol is
904
- * absent entirely.
1225
+ * that merely mentions it and report a task landed on its own documentation. A TypeScript or
1226
+ * JavaScript file is read with its comments blanked first (#2216), because whole-word matching alone
1227
+ * counted a mention in a comment: a page task wrote every section ref of its plan into its sections
1228
+ * file's header, and 18 section tasks of `app-creation-test-004` read landed with no section written.
1229
+ * A STRING mention still counts — an AST question is the sound version and needs the introspection
1230
+ * subprocess — so this errs toward LANDED only for a file that names the symbol in code without
1231
+ * declaring it, and never for the scaffold shapes that produced #597, where the symbol is absent.
905
1232
  */
906
1233
  /** A once-per-reader memo of {@link resolveShellWitness}, so a landing resolution introspects at most once. */
907
1234
  private memoizedShellWitness;
@@ -988,6 +1315,28 @@ export declare class ApplicationBuildDispatchCompanionService {
988
1315
  * clean plan generates nothing" — true of a clean plan, false of an unanswerable one, where offering
989
1316
  * it first made every dispatch fail and stopped the whole plan (review, 2026-09-13).
990
1317
  */
1318
+ /**
1319
+ * A plan that generates labels, for an application that enables more than one locale, owes a step
1320
+ * that TRANSLATES them (#2204).
1321
+ *
1322
+ * Translation used to be the second half of `i18n-labels`, so the graph had no node for "the labels
1323
+ * exist" separate from "every locale is translated", and every step that needed only the first
1324
+ * waited for the second. Measured on app-creation-test-004 (2026-10-01): the primary-locale labels
1325
+ * existed within minutes, translation into four locales ran for hours, and the documentation portal
1326
+ * — which reads primary-locale labels only — stayed dark the whole time.
1327
+ *
1328
+ * Derived rather than authored, for the reason {@link withHostDerivedMigrationStep} is: the
1329
+ * obligation follows from what the application declares (a second enabled locale) and from the plan
1330
+ * carrying a labels step, not from a decision the plan makes. A plan that authors its own
1331
+ * `i18n-translations` step gets none derived.
1332
+ *
1333
+ * - **Its only prerequisite is the labels step**, since translation reads the primary-locale files.
1334
+ * - **Nothing is made to depend on it.** The website and the application read their label files at
1335
+ * run time, so a translation landing needs no republish, and the portal is single-locale (#1993).
1336
+ * - **A one-locale application gets nothing**: the step would have no evidence paths, and an empty
1337
+ * list never lands, so it would sit at the head of the queue forever.
1338
+ */
1339
+ private withHostDerivedTranslationStep;
991
1340
  /**
992
1341
  * A plan that authors documentation CHAPTERS owes a step that PUBLISHES them.
993
1342
  *
@@ -1016,6 +1365,11 @@ export declare class ApplicationBuildDispatchCompanionService {
1016
1365
  *
1017
1366
  * Both are read off the graph, so a plan with no labels step simply contributes no such edge
1018
1367
  * rather than acquiring a dangling one.
1368
+ *
1369
+ * `i18n-labels` means the PRIMARY locale only. Translation is the separate `i18n-translations` step
1370
+ * ({@link withHostDerivedTranslationStep}), and publication deliberately has no edge to it: the
1371
+ * portal reads primary-locale labels and nothing else, so waiting on translation only kept it dark
1372
+ * for hours (#2204).
1019
1373
  */
1020
1374
  private withHostDerivedDocumentationPublicationStep;
1021
1375
  private withHostDerivedMigrationStep;
@@ -1081,6 +1435,11 @@ export declare function previousAttemptContextSource(run: {
1081
1435
  readonly memory: unknown;
1082
1436
  readonly output: Record<string, unknown>;
1083
1437
  }): BuildTaskContextSource;
1438
+ /**
1439
+ * The previous COMPLETED attempt lost its product to a concurrent run (#2210). Pure, so what the re-run is
1440
+ * told can be pinned without composing a dispatch.
1441
+ */
1442
+ export declare function interferedAttemptContextSource(runTaskId: string, interference: BuildTaskInterference): BuildTaskContextSource;
1084
1443
  /**
1085
1444
  * The task's own DETERMINISTIC self-description — no introspection, no LLM.
1086
1445
  *