@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
@@ -126,10 +126,14 @@ import { ApplicationCodingTaskDisposition, CodingRunFailureAttribution, CodingRu
126
126
  import { CodingSessionFrameRetention } from '../models/coding-session-frame-retention.js';
127
127
  import { isInfrastructureShapedAgentFailure, isProviderAccountAgentFailure } from '../../core/runtime/dev-compile-quiet.companion.js';
128
128
  import { diagnoseCarriedVerificationFailure } from '../../meta-workflows/models/carried-verification-failure.models.js';
129
- import { NothingToRearmError, readBuildTaskRearm, withBuildTaskRearm, } from '../../meta-workflows/models/build-task-rearm.models.js';
130
- import { APPLICATION_CODING_RUN_CHECKPOINT_KIND, ApplicationCodingRunCheckpointSchema, isParkedCodingRunAnswerable, } from '../models/application-coding-run-checkpoint.models.js';
129
+ import { deriveRequiredCheckRefs } from '../../meta-workflows/services/application-build-task-coding-policy.companion.service.js';
130
+ import { assemblyRepairRunInputField } from '../../meta-workflows/services/application-assembly-repair.companion.utils.js';
131
+ import { NothingToRearmError, readBuildTaskInterference, readBuildTaskRearm, withBuildTaskInterference, withBuildTaskRearm, } from '../../meta-workflows/models/build-task-rearm.models.js';
132
+ import { APPLICATION_CODING_RUN_CHECKPOINT_KIND, ApplicationCodingRunCheckpointSchema, isParkedCodingRunAnswerable, mergeResumedLegUsage, } from '../models/application-coding-run-checkpoint.models.js';
131
133
  /** Fixed, non-overridable limits for the verification hook subprocess. */
132
134
  const VERIFICATION_TIMEOUT_MS = 10 * 60_000;
135
+ /** How long the running backend has to answer `/health/ready` (#2228). Readiness is a cheap probe; a backend slower than this is not serving. */
136
+ const BACKEND_READY_TIMEOUT_MS = 10_000;
133
137
  const VERIFICATION_MAX_CAPTURED_BYTES = 10 * 1024 * 1024;
134
138
  /** Tail size persisted on the task row; full streams go to traceability artifacts. */
135
139
  const OUTPUT_TAIL_CHARS = 16_000;
@@ -464,6 +468,22 @@ function matchesApplicationRelativePrefix(path, prefix) {
464
468
  }
465
469
  /** How long one read of the coding agent's login serves the polled status route (#1637). */
466
470
  const CODING_AGENT_LOGIN_CACHE_MS = 60_000;
471
+ /**
472
+ * What a generation step that SHARED the working tree with concurrent coding runs may claim as its own (#2240):
473
+ * the captured paths under the directories only it writes. Its capture also holds its siblings' writes, so a
474
+ * path outside those directories is not its to be named for, and the wave reconciliation commits it, writer
475
+ * unknown.
476
+ *
477
+ * The directories are the dispatch plan's writable roots for the step, derived from its evidence paths (the
478
+ * label unit trees, the brand module's directory, the published documentation index, the migrations
479
+ * directory), never a second hand-kept list. A coding run that edited a file under one of them anyway would
480
+ * have it committed under the step's name; that is the step's tree, and the coding policy keeps the generated
481
+ * documentation prefix out of a coding run's scope for exactly that reason.
482
+ */
483
+ export function claimGenerationStepOwnedPaths(capturedPaths, ownedPathPrefixes) {
484
+ const prefixes = ownedPathPrefixes.filter((prefix) => prefix.length > 0 && prefix !== '/').map((prefix) => (prefix.endsWith('/') ? prefix : `${prefix}/`));
485
+ return capturedPaths.filter((capturedPath) => prefixes.some((prefix) => capturedPath.startsWith(prefix)));
486
+ }
467
487
  let CodingAgentDispatchCompanionService = class CodingAgentDispatchCompanionService {
468
488
  logger;
469
489
  errorBuilder;
@@ -1355,7 +1375,11 @@ let CodingAgentDispatchCompanionService = class CodingAgentDispatchCompanionServ
1355
1375
  }
1356
1376
  /**
1357
1377
  * Persist only replayable task identity and guard evidence, never
1358
- * prompt/context bytes.
1378
+ * prompt/context bytes, with ONE named exception: an assembly repair's row keeps
1379
+ * the failure tail it was handed (`assemblyRepair.comparedFailureTail`, #2283),
1380
+ * because the bound on repairs must compare a later failure with it and the
1381
+ * directive forbids keeping a digest instead. It is a check's output, at most the
1382
+ * captured tail, never the prompt.
1359
1383
  *
1360
1384
  * CORRELATION BACK TO THE EPISODE runs through `input.candidateRef`, which is
1361
1385
  * the assessment episode's working-subject identity for the iteration that
@@ -1622,7 +1646,16 @@ let CodingAgentDispatchCompanionService = class CodingAgentDispatchCompanionServ
1622
1646
  if (taskIds.length === 0)
1623
1647
  return [];
1624
1648
  try {
1625
- const outcome = await this.acceptedChangeCommit.acceptSharedTreeRunsTogether({ taskIds, origin });
1649
+ const outcome = await this.acceptedChangeCommit.acceptSharedTreeRunsTogether({
1650
+ taskIds,
1651
+ origin,
1652
+ /*
1653
+ * #2222: the wave's reconciliation carries files no run's own accept judged, so the checks covering them
1654
+ * run here and their verdict goes in the commit body. Not on a restart's recovery, which runs while the
1655
+ * companion boots: spawning compilers there would hold the boot under the worktree lock.
1656
+ */
1657
+ ...(origin === AcceptOrigin.WAVE_RECONCILIATION ? { describeChecksOver: (paths) => this.describeChecksOverPaths(paths) } : {}),
1658
+ });
1626
1659
  this.warnOfFilesNoRunLeft(outcome.refusedPaths, taskIds);
1627
1660
  const contributed = new Set(outcome.taskIds);
1628
1661
  const committedPaths = outcome.alreadyCommitted ? 0 : outcome.committedPaths.length;
@@ -1636,6 +1669,32 @@ let CodingAgentDispatchCompanionService = class CodingAgentDispatchCompanionServ
1636
1669
  }
1637
1670
  }, lock);
1638
1671
  }
1672
+ /**
1673
+ * The verdict of every check whose coverage reaches `paths` (#2222), one line per check, for a commit body. The
1674
+ * checks are derived from the paths exactly as a task's are (`deriveRequiredCheckRefs`), so a file is judged by
1675
+ * the same checks whichever door commits it. A check that could not RUN says so and is never read as a pass.
1676
+ */
1677
+ async describeChecksOverPaths(paths) {
1678
+ const checkRefs = deriveRequiredCheckRefs(paths);
1679
+ if (checkRefs.length === 0)
1680
+ return [];
1681
+ try {
1682
+ const { verification, unrunCheckRefs } = await this.executeVerificationPlans(resolveApplicationCodingTaskVerificationPlans(checkRefs));
1683
+ const unrun = new Set(unrunCheckRefs);
1684
+ return verification.map(({ checkRef, outcome }) => {
1685
+ if (unrun.has(checkRef))
1686
+ return `- ${checkRef}: could not run — ${outcome.message}`;
1687
+ if (outcome.success)
1688
+ return `- ${checkRef}: passed`;
1689
+ // tsc reports on stdout, so stdout first; stderr when a crash left nothing there.
1690
+ const first = [outcome.stdoutTail, outcome.stderrTail].map((tail) => tail.trim()).find((tail) => tail.length > 0)?.split('\n')[0];
1691
+ return `- ${checkRef}: FAILED — ${first ?? outcome.message}`;
1692
+ });
1693
+ }
1694
+ catch (error) {
1695
+ return [`- the checks could not run: ${describeCaughtError(error)}`];
1696
+ }
1697
+ }
1639
1698
  /**
1640
1699
  * A file whose current state no run left — edited after every capture, by a person or a watcher — stays
1641
1700
  * uncommitted, which is right (#1805 review F6). But it stays dirty at every later run's baseline, and a
@@ -1737,7 +1796,8 @@ let CodingAgentDispatchCompanionService = class CodingAgentDispatchCompanionServ
1737
1796
  }
1738
1797
  /**
1739
1798
  * The task row's INPUT — replayable task identity and guard evidence, never prompt/context bytes
1740
- * (see the contract above `openApplicationCodingExecution`). `baseline` is `null` between
1799
+ * except the assembly-repair failure tail named there (see the contract above
1800
+ * `openApplicationCodingExecution`). `baseline` is `null` between
1741
1801
  * selection and admission, and says so rather than being absent: a reader can tell a run that has
1742
1802
  * not captured one from a row that forgot to record it.
1743
1803
  */
@@ -1746,6 +1806,10 @@ let CodingAgentDispatchCompanionService = class CodingAgentDispatchCompanionServ
1746
1806
  taskRef: task.taskRef,
1747
1807
  // Read back by the dispatch projection, so the row says which conversation started it.
1748
1808
  ...(origin?.conversationId ? { conversationId: origin.conversationId } : {}),
1809
+ // An operator ran a task the probe called landed (#2217): the run carries why, and the build record reads it back.
1810
+ ...(origin?.landedOverride ? { landedOverride: origin.landedOverride } : {}),
1811
+ // A repair of a failing assembly check records which check and what it printed (#2283): the bound on repairs reads it.
1812
+ ...assemblyRepairRunInputField(task),
1749
1813
  objectiveRef: task.objectiveRef,
1750
1814
  candidateRef: task.candidateRef,
1751
1815
  mutationScope: task.mutationScope,
@@ -1939,21 +2003,29 @@ let CodingAgentDispatchCompanionService = class CodingAgentDispatchCompanionServ
1939
2003
  this.markSharingEpisodeStarted(baseline.capturedAt);
1940
2004
  const result = await input.execute();
1941
2005
  let shared = concurrentAtStart;
2006
+ let claimedPaths = [];
1942
2007
  try {
1943
2008
  const changeSet = await this.gitChangeSetService.captureChangeSet(baseline);
1944
2009
  /*
1945
2010
  * A step holds the workspace lock, but a CONCURRENT coding run takes that lock only to commit, so
1946
2011
  * a wave's runs keep writing while the step runs inline (#1805 review N2). Its capture then holds
1947
2012
  * their writes too. So when concurrent runs were live at either end of its window, or one recorded
1948
- * writes during it, the step is recorded as a sharing run with no claims and does not accept
1949
- * alone: the wave's end commits it with its siblings, writer unknown.
2013
+ * writes during it, the step is recorded as a sharing run and claims only what lies under the
2014
+ * directories it alone writes (#2240), which it accepts under its own name. Everything else in its
2015
+ * capture is left for the wave's end, which commits it with its siblings, writer unknown.
2016
+ *
2017
+ * Before #2240 a shared step claimed nothing, so on app-creation-test-004 the labels, the logo and
2018
+ * the published documentation of a wave all landed in "writer unknown" commits, and a reader of the
2019
+ * history could not find the step that produced them.
1950
2020
  */
1951
2021
  const concurrentAtEnd = await this.concurrentCodingRunsLive(input.sessionContext);
1952
2022
  if (concurrentAtEnd)
1953
2023
  this.markSharingEpisodeStarted(baseline.capturedAt);
1954
2024
  shared = shared || concurrentAtEnd
1955
2025
  || (await this.codingRunWriteRegister.list()).some((record) => record.concurrent === true && record.at >= baseline.capturedAt);
1956
- await this.codingRunWriteRegister.record({ taskId: input.taskId, taskRef: input.taskRef, changeSet, ...(shared ? { claimedPaths: [] } : {}) });
2026
+ if (shared)
2027
+ claimedPaths = claimGenerationStepOwnedPaths(changeSet.files.map((file) => file.path), input.ownedPathPrefixes ?? []);
2028
+ await this.codingRunWriteRegister.record({ taskId: input.taskId, taskRef: input.taskRef, changeSet, ...(shared ? { claimedPaths } : {}) });
1957
2029
  }
1958
2030
  catch (error) {
1959
2031
  this.logger.warn('Could not register a generation step\'s writes; it stays unlanded until they are committed', {
@@ -1961,9 +2033,10 @@ let CodingAgentDispatchCompanionService = class CodingAgentDispatchCompanionServ
1961
2033
  });
1962
2034
  return result;
1963
2035
  }
1964
- if (!shared)
2036
+ // A shared step with claims commits them under its own name first; the reconciliation below then finds only the rest.
2037
+ if (!shared || claimedPaths.length > 0)
1965
2038
  await this.acceptUnderAutonomyPosture(input.taskRef, input.taskId);
1966
- else if (!this.concurrentRunLiveInProcess()) {
2039
+ if (shared && !this.concurrentRunLiveInProcess()) {
1967
2040
  /*
1968
2041
  * Shared, and nothing of this process is writing any more — the concurrent run finished during the
1969
2042
  * step: no episode will end after this, so the step and the runs recorded in its window are
@@ -2153,7 +2226,8 @@ let CodingAgentDispatchCompanionService = class CodingAgentDispatchCompanionServ
2153
2226
  });
2154
2227
  const codingOutput = response.output;
2155
2228
  // The agent runtime publishes provider-learned facts on `executionContext`.
2156
- codingUsage = response.executionContext?.usage;
2229
+ // A resume's leg reports its own tokens and the session's cumulative cost: the run is every leg together (#2232).
2230
+ codingUsage = mergeResumedLegUsage(resume?.priorLegsUsage, response.executionContext?.usage);
2157
2231
  codingDeniedPermissionCount = codingOutput?.deniedPermissionCount;
2158
2232
  codingPermissionDecisions = codingOutput?.permissionDecisions;
2159
2233
  codingReportedFileLocations = codingOutput?.reportedFileLocations;
@@ -2673,6 +2747,8 @@ let CodingAgentDispatchCompanionService = class CodingAgentDispatchCompanionServ
2673
2747
  baseline,
2674
2748
  suspension,
2675
2749
  parkedAt,
2750
+ // Every leg so far, so the resume's row keeps their tokens (`mergeResumedLegUsage`).
2751
+ ...(params.usage ? { priorLegsUsage: params.usage } : {}),
2676
2752
  };
2677
2753
  return {
2678
2754
  kind: CodingRunEnding.PARKED,
@@ -2832,6 +2908,16 @@ let CodingAgentDispatchCompanionService = class CodingAgentDispatchCompanionServ
2832
2908
  * hold a task.
2833
2909
  */
2834
2910
  async listCountingCompletedRunsForBuildTask(buildTaskRef, sessionContext) {
2911
+ return (await this.listCompletedRunsForBuildTask(buildTaskRef, sessionContext)).filter((run) => readBuildTaskRearm(run.memory) === undefined);
2912
+ }
2913
+ /**
2914
+ * Every COMPLETED coding run of one build task, re-armed ones included, in the order the actor plane lists
2915
+ * them (a caller that needs the latest sorts by `completedAt`), each with the interference the build wave
2916
+ * recorded on it (#2210). The wave reads it twice: to count how many interference re-arms the task has
2917
+ * already had (`MAXIMUM_INTERFERENCE_REARMS`), and to tell the next attempt that its previous one lost its
2918
+ * product to a sibling.
2919
+ */
2920
+ async listCompletedRunsForBuildTask(buildTaskRef, sessionContext) {
2835
2921
  /*
2836
2922
  * Scoped to the CODING actors before the list is trimmed (#1359). This used to read the 200 most
2837
2923
  * recently updated `COMPLETED` tasks of EVERY actor, so a busy judge or labelling lane could push
@@ -2844,7 +2930,7 @@ let CodingAgentDispatchCompanionService = class CodingAgentDispatchCompanionServ
2844
2930
  actorRefs: [...APPLICATION_CODING_AGENT_REFS],
2845
2931
  limit: 200,
2846
2932
  }), sessionContext);
2847
- const counting = [];
2933
+ const runs = [];
2848
2934
  for (const task of completed) {
2849
2935
  const row = task;
2850
2936
  // MEMBERSHIP, not equality with one constant — the same reason
@@ -2854,11 +2940,42 @@ let CodingAgentDispatchCompanionService = class CodingAgentDispatchCompanionServ
2854
2940
  continue;
2855
2941
  if (!isRecordValue(row.input) || row.input.taskRef !== buildTaskRef)
2856
2942
  continue;
2857
- if (readBuildTaskRearm(row.memory) !== undefined)
2858
- continue;
2859
- counting.push({ taskId: String(row._id), completedAt: row.completedAt, memory: row.memory });
2943
+ const interference = readBuildTaskInterference(row.memory);
2944
+ runs.push({ taskId: String(row._id), completedAt: row.completedAt, memory: row.memory, ...(interference ? { interference } : {}) });
2945
+ }
2946
+ return runs;
2947
+ }
2948
+ /**
2949
+ * Record on a COMPLETED run that the build wave found its product lost to a sibling (#2210). Appended to the
2950
+ * run's long-term memory beside any re-arm, so the run still reads as the run it was, and now also as one a
2951
+ * sibling interfered with. Refuses a run that is not a completed run of this task, because the record would
2952
+ * otherwise describe a run it was never measured on.
2953
+ */
2954
+ async recordBuildTaskInterference(buildTaskRef, runTaskId, interference, sessionContext) {
2955
+ const run = (await this.listCompletedRunsForBuildTask(buildTaskRef, sessionContext)).find((candidate) => candidate.taskId === runTaskId);
2956
+ if (!run)
2957
+ throw new Error(`Run ${runTaskId} is not a completed coding run of build task "${buildTaskRef}"; no interference is recorded on it.`);
2958
+ try {
2959
+ await this.executionsService.updateActorTask(runTaskId, { memory: withBuildTaskInterference(run.memory, interference) }, sessionContext);
2960
+ }
2961
+ finally {
2962
+ // The build record shows it; a board that read the run before must read it again.
2963
+ this.announceRunStateChanged();
2860
2964
  }
2861
- return counting;
2965
+ }
2966
+ /**
2967
+ * Which runs shared the tree with this one, and which paths both changed, computed NOW from every window
2968
+ * this process holds (#2210). `closeCodingRunWindow` answers the same question at the run's own settle,
2969
+ * when a sibling still running has not reported its paths yet; at the end of a wave every window is
2970
+ * closed, so this one sees every sibling. `null` for a run this process holds no window for, or one that
2971
+ * overlapped nothing.
2972
+ */
2973
+ describeCodingRunOverlap(taskId) {
2974
+ const window = this.codingRunWindows.find((candidate) => candidate.taskId === taskId);
2975
+ if (!window || window.endedAtMs === undefined)
2976
+ return null;
2977
+ const record = describeRunConcurrency(this.codingRunWindows, { taskId, startedAtMs: window.startedAtMs, endedAtMs: window.endedAtMs }, window.changedPaths ?? []);
2978
+ return record.overlappingTaskRefs.length > 0 ? record : null;
2862
2979
  }
2863
2980
  /**
2864
2981
  * A run for this build task that is PARKED on an unanswered question.
@@ -3252,7 +3369,7 @@ let CodingAgentDispatchCompanionService = class CodingAgentDispatchCompanionServ
3252
3369
  * resumed nothing is never recorded as one that did (#1581, seventh review F5).
3253
3370
  */
3254
3371
  await this.recordCodingQuestionAnswer(task.taskRef, checkpoint.suspension.question, input.answer, input.answerSource);
3255
- return capture(await this.executeApplicationCodingTask(task, renderApplicationCodingTaskAgentPrompt(task), input.verificationPlans, opened, baseline, trace, { continuationOfSessionId: checkpoint.suspension.sessionId, answerPrompt: input.answer }));
3372
+ return capture(await this.executeApplicationCodingTask(task, renderApplicationCodingTaskAgentPrompt(task), input.verificationPlans, opened, baseline, trace, { continuationOfSessionId: checkpoint.suspension.sessionId, answerPrompt: input.answer, ...(checkpoint.priorLegsUsage ? { priorLegsUsage: checkpoint.priorLegsUsage } : {}) }));
3256
3373
  }, trace.runSession, {
3257
3374
  ...this.codingRunOptions,
3258
3375
  expectedSuspensionRef: input.suspensionRef,
@@ -3474,6 +3591,17 @@ let CodingAgentDispatchCompanionService = class CodingAgentDispatchCompanionServ
3474
3591
  cwd: packageDir,
3475
3592
  };
3476
3593
  }
3594
+ // PACKAGE_BUILD — the package's own build script, in the package (#2228).
3595
+ if (kind === VerificationKind.PACKAGE_BUILD) {
3596
+ const sanitizedPackage = this.sanitizeRelativePath(requestedPath ?? '');
3597
+ return {
3598
+ kind,
3599
+ path: sanitizedPackage,
3600
+ command: 'pnpm',
3601
+ args: ['run', 'build'],
3602
+ cwd: join(this.companionContext.saasRoot, sanitizedPackage),
3603
+ };
3604
+ }
3477
3605
  // TYPECHECK — optional path points at a workspace package directory.
3478
3606
  const sanitized = requestedPath ? this.sanitizeRelativePath(requestedPath) : null;
3479
3607
  return {
@@ -3600,7 +3728,7 @@ let CodingAgentDispatchCompanionService = class CodingAgentDispatchCompanionServ
3600
3728
  * ## Why the check is worth having at all
3601
3729
  *
3602
3730
  * It is the only check in the catalog that can see a missing table. A resource whose
3603
- * migration was never generated typechecks green in all four packages and then refuses
3731
+ * migration was never generated typechecks green in every package and then refuses
3604
3732
  * to boot with `postgresql_table_schema_mismatch` — measured 2026-09-07, when an engine
3605
3733
  * resource landed with migrations for two of the three PostgreSQL-backed applications
3606
3734
  * and the third crash-looped until a human read the log.
@@ -3683,6 +3811,91 @@ let CodingAgentDispatchCompanionService = class CodingAgentDispatchCompanionServ
3683
3811
  }
3684
3812
  return outcome;
3685
3813
  }
3814
+ /**
3815
+ * `wildo config validate` at the application root (#2228): the checks the backend runs at startup, asked without
3816
+ * starting it. Errors fail the check (the backend would refuse to boot); warnings do not.
3817
+ *
3818
+ * The CLI is a global install and is not linked into an application's `node_modules/.bin`, so a missing binary is
3819
+ * thrown as "we could not ask" — exactly as the schema-plan drift check does — never reported as a configuration
3820
+ * that fails.
3821
+ */
3822
+ async runConfigValidateVerification() {
3823
+ const outcome = await this.runVerification({
3824
+ kind: VerificationKind.CONFIG_VALIDATE,
3825
+ path: null,
3826
+ command: 'wildo',
3827
+ args: ['config', 'validate'],
3828
+ cwd: this.companionContext.saasRoot,
3829
+ });
3830
+ // ENOENT only: a configuration error can itself say "not found" (a referenced file, a provider), and that is a
3831
+ // failing configuration, not an absent tool.
3832
+ if (!outcome.success && /\bENOENT\b/.test(outcome.message)) {
3833
+ throw new Error(`Cannot validate the application configuration: the \`wildo\` CLI could not be executed (${outcome.message}).`);
3834
+ }
3835
+ return outcome;
3836
+ }
3837
+ /**
3838
+ * Ask the RUNNING backend whether it is ready (#2228), at the address the frontend uses (`VITE_API_BASE_URL` in
3839
+ * `frontend/.env`, written by config sync). Bounded by {@link BACKEND_READY_TIMEOUT_MS}: an outbound request with no
3840
+ * deadline waits for a peer that never answers.
3841
+ *
3842
+ * No address, or no answer, THROWS — "we could not ask", reported apart from a failing check: from here a backend
3843
+ * that was never started and one crash-looping at boot are the same closed port, and neither may read as a pass.
3844
+ */
3845
+ async runBackendReadyVerification() {
3846
+ const envPath = join(this.companionContext.saasRoot, 'frontend', '.env');
3847
+ const apiBase = existsSync(envPath) ? /^VITE_API_BASE_URL=(.*)$/mu.exec(readFileSync(envPath, 'utf8'))?.[1]?.trim() : undefined;
3848
+ if (apiBase === undefined || apiBase === '') {
3849
+ throw new Error(`Cannot ask whether the backend is ready: ${envPath} declares no VITE_API_BASE_URL. Run \`wildo config sync\`.`);
3850
+ }
3851
+ const url = `${apiBase.replace(/\/+$/u, '')}/health/ready`;
3852
+ let response;
3853
+ try {
3854
+ response = await fetch(url, { signal: AbortSignal.timeout(BACKEND_READY_TIMEOUT_MS) });
3855
+ }
3856
+ catch (error) {
3857
+ throw new Error(`Cannot ask whether the backend is ready: ${url} did not answer (${describeCaughtError(error)}). It is not running, or it is crash-looping at boot; its log says which.`);
3858
+ }
3859
+ const body = (await response.text().catch(() => '')).slice(-OUTPUT_TAIL_CHARS);
3860
+ return {
3861
+ kind: VerificationKind.BACKEND_READY,
3862
+ path: null,
3863
+ success: response.status === 200,
3864
+ message: response.status === 200 ? `${url} answered 200` : `${url} answered ${response.status}: the backend is up and refuses readiness`,
3865
+ stdoutTail: body,
3866
+ stderrTail: '',
3867
+ };
3868
+ }
3869
+ /**
3870
+ * `wildo local smoke --json` (#2228): the CLI drives a browser through the running application and prints one JSON
3871
+ * verdict. PASSED passes, FAILED fails with the CLI's summary and the broken pages; COULD_NOT_ASK, a verdict that
3872
+ * cannot be read, or a CLI that cannot be executed THROWS — "we could not ask", reported apart from a failing check,
3873
+ * because the application was never seen.
3874
+ */
3875
+ async runBrowserSmokeVerification() {
3876
+ const outcome = await this.runVerification({
3877
+ kind: VerificationKind.BROWSER_SMOKE,
3878
+ path: null,
3879
+ command: 'wildo',
3880
+ args: ['local', 'smoke', '--json'],
3881
+ cwd: this.companionContext.saasRoot,
3882
+ });
3883
+ if (!outcome.success && /\bENOENT\b/.test(outcome.message)) {
3884
+ throw new Error(`Cannot run the browser smoke: the \`wildo\` CLI could not be executed (${outcome.message}).`);
3885
+ }
3886
+ const lastLine = outcome.stdoutTail.trim().split('\n').pop() ?? '';
3887
+ let verdict;
3888
+ try {
3889
+ verdict = JSON.parse(lastLine);
3890
+ }
3891
+ catch {
3892
+ throw new Error(`Cannot read the browser smoke's verdict: \`wildo local smoke --json\` printed no JSON (${outcome.message}).`);
3893
+ }
3894
+ if (verdict.outcome === 'COULD_NOT_ASK' || (verdict.outcome !== 'PASSED' && verdict.outcome !== 'FAILED')) {
3895
+ throw new Error(`The browser smoke could not ask: ${verdict.summary ?? 'no summary'}`);
3896
+ }
3897
+ return { ...outcome, success: verdict.outcome === 'PASSED', message: `browser smoke ${verdict.outcome}: ${verdict.summary ?? ''}` };
3898
+ }
3686
3899
  /**
3687
3900
  * Run a resolved verification plan set and return one outcome per check.
3688
3901
  *
@@ -3713,8 +3926,14 @@ let CodingAgentDispatchCompanionService = class CodingAgentDispatchCompanionServ
3713
3926
  ? await this.runSettingsPlacementContentVerification()
3714
3927
  : plan.kind === VerificationKind.SCHEMA_PLAN_DRIFT
3715
3928
  ? await this.runSchemaPlanDriftVerification()
3716
- : this.absentWorkspacePackageOutcome(plan)
3717
- ?? await this.runVerification(this.buildVerificationPlan(plan.kind, plan.path ?? undefined)),
3929
+ : plan.kind === VerificationKind.CONFIG_VALIDATE
3930
+ ? await this.runConfigValidateVerification()
3931
+ : plan.kind === VerificationKind.BACKEND_READY
3932
+ ? await this.runBackendReadyVerification()
3933
+ : plan.kind === VerificationKind.BROWSER_SMOKE
3934
+ ? await this.runBrowserSmokeVerification()
3935
+ : this.absentWorkspacePackageOutcome(plan)
3936
+ ?? await this.runVerification(this.buildVerificationPlan(plan.kind, plan.path ?? undefined)),
3718
3937
  });
3719
3938
  }
3720
3939
  catch (error) {
@@ -3765,7 +3984,8 @@ let CodingAgentDispatchCompanionService = class CodingAgentDispatchCompanionServ
3765
3984
  * package that any typecheck could run in.
3766
3985
  */
3767
3986
  absentWorkspacePackageOutcome(plan) {
3768
- if (plan.kind !== VerificationKind.TYPECHECK || plan.path === null)
3987
+ // A site build is asked of every optional package at the end of a build (#2228), so the same honest answer applies.
3988
+ if ((plan.kind !== VerificationKind.TYPECHECK && plan.kind !== VerificationKind.PACKAGE_BUILD) || plan.path === null)
3769
3989
  return undefined;
3770
3990
  const packageDirectory = this.sanitizeRelativePath(plan.path);
3771
3991
  if (existsSync(join(this.companionContext.saasRoot, packageDirectory, 'package.json')))
@@ -3774,7 +3994,7 @@ let CodingAgentDispatchCompanionService = class CodingAgentDispatchCompanionServ
3774
3994
  kind: plan.kind,
3775
3995
  path: plan.path,
3776
3996
  success: true,
3777
- message: `no ${packageDirectory} package in this application — nothing to typecheck`,
3997
+ message: `no ${packageDirectory} package in this application — nothing to ${plan.kind === VerificationKind.PACKAGE_BUILD ? 'build' : 'typecheck'}`,
3778
3998
  stdoutTail: '',
3779
3999
  stderrTail: '',
3780
4000
  };