@wildo-ai/dev-companion 1.1.4 → 1.1.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1275) hide show
  1. package/dist/esm/.tsbuildinfo +1 -1
  2. package/dist/esm/__tests__/asset-noop.d.ts.map +1 -1
  3. package/dist/esm/__tests__/chdir-dogfood-app.setup.d.ts.map +1 -1
  4. package/dist/esm/__tests__/internal-test-view.d.ts.map +1 -1
  5. package/dist/esm/__time-gov.probe.d.mts +0 -0
  6. package/dist/esm/__time-gov.probe.d.mts.map +0 -0
  7. package/dist/esm/__time-gov.probe.mjs.map +0 -0
  8. package/dist/esm/brand/models/logo-creative-brief.schemas.d.ts.map +1 -1
  9. package/dist/esm/brand/models/logo-generation.actors-system.definitions.d.ts.map +1 -1
  10. package/dist/esm/brand/models/logo-judge.actors-system.definitions.d.ts.map +1 -1
  11. package/dist/esm/brand/models/logo-judge.actors-system.definitions.js.map +1 -1
  12. package/dist/esm/brand/models/logo-judge.schemas.d.ts.map +1 -1
  13. package/dist/esm/brand/services/brand-accept.companion.service.d.ts.map +1 -1
  14. package/dist/esm/brand/services/brand-accept.companion.service.js +24 -5
  15. package/dist/esm/brand/services/brand-accept.companion.service.js.map +1 -1
  16. package/dist/esm/brand/services/logo-deliberation.companion.service.d.ts +7 -0
  17. package/dist/esm/brand/services/logo-deliberation.companion.service.d.ts.map +1 -1
  18. package/dist/esm/brand/services/logo-deliberation.companion.service.js +7 -0
  19. package/dist/esm/brand/services/logo-deliberation.companion.service.js.map +1 -1
  20. package/dist/esm/brand/services/logo-generation.companion.service.d.ts.map +1 -1
  21. package/dist/esm/brand/services/logo-generation.companion.service.js.map +1 -1
  22. package/dist/esm/brand/utils/derived-brand-assets.d.ts.map +1 -1
  23. package/dist/esm/brand/utils/derived-brand-assets.js.map +1 -1
  24. package/dist/esm/brand/utils/stage-brand-candidate.d.ts.map +1 -1
  25. package/dist/esm/brand/utils/stage-brand-candidate.js.map +1 -1
  26. package/dist/esm/claude-cli/models/application-coding-run-checkpoint.models.d.ts +143 -0
  27. package/dist/esm/claude-cli/models/application-coding-run-checkpoint.models.d.ts.map +1 -0
  28. package/dist/esm/claude-cli/models/application-coding-run-checkpoint.models.js +84 -0
  29. package/dist/esm/claude-cli/models/application-coding-run-checkpoint.models.js.map +1 -0
  30. package/dist/esm/claude-cli/models/coding-agent-dispatch.models.d.ts +129 -16
  31. package/dist/esm/claude-cli/models/coding-agent-dispatch.models.d.ts.map +1 -1
  32. package/dist/esm/claude-cli/models/coding-agent-dispatch.models.js +173 -11
  33. package/dist/esm/claude-cli/models/coding-agent-dispatch.models.js.map +1 -1
  34. package/dist/esm/claude-cli/models/coding-session-frame-retention.d.ts +85 -0
  35. package/dist/esm/claude-cli/models/coding-session-frame-retention.d.ts.map +1 -0
  36. package/dist/esm/claude-cli/models/coding-session-frame-retention.js +122 -0
  37. package/dist/esm/claude-cli/models/coding-session-frame-retention.js.map +1 -0
  38. package/dist/esm/claude-cli/models/concurrent-coding-runs.models.d.ts +98 -0
  39. package/dist/esm/claude-cli/models/concurrent-coding-runs.models.d.ts.map +1 -0
  40. package/dist/esm/claude-cli/models/concurrent-coding-runs.models.js +135 -0
  41. package/dist/esm/claude-cli/models/concurrent-coding-runs.models.js.map +1 -0
  42. package/dist/esm/claude-cli/models/parked-question-answer.models.d.ts +94 -0
  43. package/dist/esm/claude-cli/models/parked-question-answer.models.d.ts.map +1 -0
  44. package/dist/esm/claude-cli/models/parked-question-answer.models.js +137 -0
  45. package/dist/esm/claude-cli/models/parked-question-answer.models.js.map +1 -0
  46. package/dist/esm/claude-cli/models/parked-question-answerer.actors-system.definitions.d.ts +16 -0
  47. package/dist/esm/claude-cli/models/parked-question-answerer.actors-system.definitions.d.ts.map +1 -0
  48. package/dist/esm/claude-cli/models/parked-question-answerer.actors-system.definitions.js +46 -0
  49. package/dist/esm/claude-cli/models/parked-question-answerer.actors-system.definitions.js.map +1 -0
  50. package/dist/esm/claude-cli/services/__tests__/support/in-memory-coding-actor-plane.d.ts +46 -0
  51. package/dist/esm/claude-cli/services/__tests__/support/in-memory-coding-actor-plane.d.ts.map +1 -0
  52. package/dist/esm/claude-cli/services/__tests__/support/in-memory-coding-actor-plane.js +135 -0
  53. package/dist/esm/claude-cli/services/__tests__/support/in-memory-coding-actor-plane.js.map +1 -0
  54. package/dist/esm/claude-cli/services/accepted-change-commit.companion.service.d.ts +131 -0
  55. package/dist/esm/claude-cli/services/accepted-change-commit.companion.service.d.ts.map +1 -0
  56. package/dist/esm/claude-cli/services/accepted-change-commit.companion.service.js +371 -0
  57. package/dist/esm/claude-cli/services/accepted-change-commit.companion.service.js.map +1 -0
  58. package/dist/esm/claude-cli/services/coding-agent-dispatch.companion.service.d.ts +679 -78
  59. package/dist/esm/claude-cli/services/coding-agent-dispatch.companion.service.d.ts.map +1 -1
  60. package/dist/esm/claude-cli/services/coding-agent-dispatch.companion.service.js +1909 -420
  61. package/dist/esm/claude-cli/services/coding-agent-dispatch.companion.service.js.map +1 -1
  62. package/dist/esm/claude-cli/services/coding-run-write-register.companion.service.d.ts +109 -0
  63. package/dist/esm/claude-cli/services/coding-run-write-register.companion.service.d.ts.map +1 -0
  64. package/dist/esm/claude-cli/services/coding-run-write-register.companion.service.js +186 -0
  65. package/dist/esm/claude-cli/services/coding-run-write-register.companion.service.js.map +1 -0
  66. package/dist/esm/claude-cli/services/git-change-set.companion.service.d.ts +215 -7
  67. package/dist/esm/claude-cli/services/git-change-set.companion.service.d.ts.map +1 -1
  68. package/dist/esm/claude-cli/services/git-change-set.companion.service.js +532 -60
  69. package/dist/esm/claude-cli/services/git-change-set.companion.service.js.map +1 -1
  70. package/dist/esm/claude-cli/services/research-agent-dispatch.companion.service.d.ts +27 -6
  71. package/dist/esm/claude-cli/services/research-agent-dispatch.companion.service.d.ts.map +1 -1
  72. package/dist/esm/claude-cli/services/research-agent-dispatch.companion.service.js +97 -6
  73. package/dist/esm/claude-cli/services/research-agent-dispatch.companion.service.js.map +1 -1
  74. package/dist/esm/claude-cli/services/research-evidence-store.companion.d.ts.map +1 -1
  75. package/dist/esm/claude-cli/services/research-evidence-store.companion.js.map +1 -1
  76. package/dist/esm/code-compliance-check/check-label-placeholder-contract.companion.d.ts.map +1 -1
  77. package/dist/esm/code-compliance-check/check-raw-feature-id-literals.companion.d.ts.map +1 -1
  78. package/dist/esm/code-compliance-check/check-raw-feature-id-literals.companion.js +8 -1
  79. package/dist/esm/code-compliance-check/check-raw-feature-id-literals.companion.js.map +1 -1
  80. package/dist/esm/companion-api/companion-api.schemas.d.ts +219 -142
  81. package/dist/esm/companion-api/companion-api.schemas.d.ts.map +1 -1
  82. package/dist/esm/companion-api/companion-api.schemas.js +52 -6
  83. package/dist/esm/companion-api/companion-api.schemas.js.map +1 -1
  84. package/dist/esm/companion-api/controllers/companion-i18n-api-contract.utils.d.ts.map +1 -1
  85. package/dist/esm/companion-api/controllers/companion-token-floor.policy.d.ts.map +1 -1
  86. package/dist/esm/companion-api/controllers/companion-token-floor.policy.js +14 -3
  87. package/dist/esm/companion-api/controllers/companion-token-floor.policy.js.map +1 -1
  88. package/dist/esm/companion-api/controllers/companion.controller.d.ts +170 -13
  89. package/dist/esm/companion-api/controllers/companion.controller.d.ts.map +1 -1
  90. package/dist/esm/companion-api/controllers/companion.controller.js +520 -87
  91. package/dist/esm/companion-api/controllers/companion.controller.js.map +1 -1
  92. package/dist/esm/core/auth/companion-auth-floor.companion.service.d.ts +39 -4
  93. package/dist/esm/core/auth/companion-auth-floor.companion.service.d.ts.map +1 -1
  94. package/dist/esm/core/auth/companion-auth-floor.companion.service.js +39 -4
  95. package/dist/esm/core/auth/companion-auth-floor.companion.service.js.map +1 -1
  96. package/dist/esm/core/catalogs/catalog-context.factory.d.ts.map +1 -1
  97. package/dist/esm/core/catalogs/catalog-context.factory.models.d.ts.map +1 -1
  98. package/dist/esm/core/catalogs/schema-org/aggregate-offer-catalog-context.factory.d.ts.map +1 -1
  99. package/dist/esm/core/catalogs/schema-org/aggregate-rating-catalog-context.factory.d.ts.map +1 -1
  100. package/dist/esm/core/catalogs/schema-org/article-catalog-context.factory.d.ts.map +1 -1
  101. package/dist/esm/core/catalogs/schema-org/blog-posting-catalog-context.factory.d.ts.map +1 -1
  102. package/dist/esm/core/catalogs/schema-org/breadcrumb-list-catalog-context.factory.d.ts.map +1 -1
  103. package/dist/esm/core/catalogs/schema-org/faq-page-catalog-context.factory.d.ts.map +1 -1
  104. package/dist/esm/core/catalogs/schema-org/offer-catalog-context.factory.d.ts.map +1 -1
  105. package/dist/esm/core/catalogs/schema-org/organization-catalog-context.factory.d.ts.map +1 -1
  106. package/dist/esm/core/catalogs/schema-org/product-catalog-context.factory.d.ts.map +1 -1
  107. package/dist/esm/core/catalogs/schema-org/review-catalog-context.factory.d.ts.map +1 -1
  108. package/dist/esm/core/catalogs/schema-org/schema-org-catalog-boundary.shared.d.ts.map +1 -1
  109. package/dist/esm/core/catalogs/schema-org/schema-org-catalog-boundary.shared.js.map +1 -1
  110. package/dist/esm/core/catalogs/schema-org/schema-org-catalog-context.shared.d.ts.map +1 -1
  111. package/dist/esm/core/catalogs/schema-org/schema-org-catalog-context.shared.js.map +1 -1
  112. package/dist/esm/core/catalogs/schema-org/software-application-catalog-context.factory.d.ts.map +1 -1
  113. package/dist/esm/core/catalogs/schema-org/website-catalog-context.factory.d.ts.map +1 -1
  114. package/dist/esm/core/catalogs/structured-data-catalog-audit.service.d.ts.map +1 -1
  115. package/dist/esm/core/catalogs/structured-data-catalog-audit.service.js.map +1 -1
  116. package/dist/esm/core/config/application-schema-plan-obligation.companion.utils.d.ts +54 -0
  117. package/dist/esm/core/config/application-schema-plan-obligation.companion.utils.d.ts.map +1 -0
  118. package/dist/esm/core/config/application-schema-plan-obligation.companion.utils.js +78 -0
  119. package/dist/esm/core/config/application-schema-plan-obligation.companion.utils.js.map +1 -0
  120. package/dist/esm/core/config/primary-language.companion.utils.d.ts +13 -0
  121. package/dist/esm/core/config/primary-language.companion.utils.d.ts.map +1 -1
  122. package/dist/esm/core/config/primary-language.companion.utils.js +12 -0
  123. package/dist/esm/core/config/primary-language.companion.utils.js.map +1 -1
  124. package/dist/esm/core/context/companion-context.d.ts.map +1 -1
  125. package/dist/esm/core/context/companion-context.js +4 -0
  126. package/dist/esm/core/context/companion-context.js.map +1 -1
  127. package/dist/esm/core/context/companion-package-loaders.companion.d.ts +57 -0
  128. package/dist/esm/core/context/companion-package-loaders.companion.d.ts.map +1 -1
  129. package/dist/esm/core/context/companion-package-loaders.companion.js +181 -7
  130. package/dist/esm/core/context/companion-package-loaders.companion.js.map +1 -1
  131. package/dist/esm/core/context/draft-family-values.companion.d.ts +23 -0
  132. package/dist/esm/core/context/draft-family-values.companion.d.ts.map +1 -0
  133. package/dist/esm/core/context/draft-family-values.companion.js +49 -0
  134. package/dist/esm/core/context/draft-family-values.companion.js.map +1 -0
  135. package/dist/esm/core/inject/models/container.d.ts.map +1 -1
  136. package/dist/esm/core/inject/models/container.js +28 -4
  137. package/dist/esm/core/inject/models/container.js.map +1 -1
  138. package/dist/esm/core/inject/models/service-types.d.ts +12 -2
  139. package/dist/esm/core/inject/models/service-types.d.ts.map +1 -1
  140. package/dist/esm/core/inject/models/service-types.js +14 -2
  141. package/dist/esm/core/inject/models/service-types.js.map +1 -1
  142. package/dist/esm/core/introspection/behaviors/companion-introspection-behavior-definitions.d.ts.map +1 -1
  143. package/dist/esm/core/introspection/behaviors/companion-introspection-behavior-definitions.js +74 -2
  144. package/dist/esm/core/introspection/behaviors/companion-introspection-behavior-definitions.js.map +1 -1
  145. package/dist/esm/core/introspection/models/companion-introspection.models.d.ts +37 -1
  146. package/dist/esm/core/introspection/models/companion-introspection.models.d.ts.map +1 -1
  147. package/dist/esm/core/introspection/models/companion-introspection.models.js +55 -0
  148. package/dist/esm/core/introspection/models/companion-introspection.models.js.map +1 -1
  149. package/dist/esm/core/introspection/resources/creation-home-projection.companion.d.ts +93 -0
  150. package/dist/esm/core/introspection/resources/creation-home-projection.companion.d.ts.map +1 -0
  151. package/dist/esm/core/introspection/resources/creation-home-projection.companion.js +290 -0
  152. package/dist/esm/core/introspection/resources/creation-home-projection.companion.js.map +1 -0
  153. package/dist/esm/core/introspection/resources/creation-plane-dispatch.custom-impl.companion.service.d.ts.map +1 -1
  154. package/dist/esm/core/introspection/resources/creation-plane-dispatch.custom-impl.companion.service.js +630 -16
  155. package/dist/esm/core/introspection/resources/creation-plane-dispatch.custom-impl.companion.service.js.map +1 -1
  156. package/dist/esm/core/introspection/resources/creation-plane-projection.companion.service.d.ts +592 -17
  157. package/dist/esm/core/introspection/resources/creation-plane-projection.companion.service.d.ts.map +1 -1
  158. package/dist/esm/core/introspection/resources/creation-plane-projection.companion.service.js +1417 -93
  159. package/dist/esm/core/introspection/resources/creation-plane-projection.companion.service.js.map +1 -1
  160. package/dist/esm/core/introspection/resources/introspection-resource-notifier.companion.service.d.ts +61 -4
  161. package/dist/esm/core/introspection/resources/introspection-resource-notifier.companion.service.d.ts.map +1 -1
  162. package/dist/esm/core/introspection/resources/introspection-resource-notifier.companion.service.js +136 -10
  163. package/dist/esm/core/introspection/resources/introspection-resource-notifier.companion.service.js.map +1 -1
  164. package/dist/esm/core/introspection/resources/introspection-resource-source.companion.service.d.ts.map +1 -1
  165. package/dist/esm/core/introspection/resources/introspection-resource-source.companion.service.js +11 -0
  166. package/dist/esm/core/introspection/resources/introspection-resource-source.companion.service.js.map +1 -1
  167. package/dist/esm/core/introspection/services/companion-introspection-behavior-registry.companion.service.d.ts.map +1 -1
  168. package/dist/esm/core/introspection/services/companion-introspection.companion.service.d.ts +21 -0
  169. package/dist/esm/core/introspection/services/companion-introspection.companion.service.d.ts.map +1 -1
  170. package/dist/esm/core/introspection/services/companion-introspection.companion.service.js +21 -3
  171. package/dist/esm/core/introspection/services/companion-introspection.companion.service.js.map +1 -1
  172. package/dist/esm/core/introspection/services/introspection-derivation-state.companion.service.d.ts.map +1 -1
  173. package/dist/esm/core/introspection/services/introspection-derivation-state.companion.service.js +11 -3
  174. package/dist/esm/core/introspection/services/introspection-derivation-state.companion.service.js.map +1 -1
  175. package/dist/esm/core/introspection/services/introspection-source-state.companion.service.d.ts +15 -5
  176. package/dist/esm/core/introspection/services/introspection-source-state.companion.service.d.ts.map +1 -1
  177. package/dist/esm/core/introspection/services/introspection-source-state.companion.service.js +28 -15
  178. package/dist/esm/core/introspection/services/introspection-source-state.companion.service.js.map +1 -1
  179. package/dist/esm/core/introspection/services/introspection-source-watcher.companion.service.d.ts +24 -0
  180. package/dist/esm/core/introspection/services/introspection-source-watcher.companion.service.d.ts.map +1 -1
  181. package/dist/esm/core/introspection/services/introspection-source-watcher.companion.service.js +29 -5
  182. package/dist/esm/core/introspection/services/introspection-source-watcher.companion.service.js.map +1 -1
  183. package/dist/esm/core/introspection/services/translation-placement.companion.service.d.ts.map +1 -1
  184. package/dist/esm/core/introspection/subprocess/app-shell-placement-content.behavior.d.ts +116 -0
  185. package/dist/esm/core/introspection/subprocess/app-shell-placement-content.behavior.d.ts.map +1 -0
  186. package/dist/esm/core/introspection/subprocess/app-shell-placement-content.behavior.js +223 -0
  187. package/dist/esm/core/introspection/subprocess/app-shell-placement-content.behavior.js.map +1 -0
  188. package/dist/esm/core/introspection/subprocess/application-domain-model.behavior.d.ts +9 -6
  189. package/dist/esm/core/introspection/subprocess/application-domain-model.behavior.d.ts.map +1 -1
  190. package/dist/esm/core/introspection/subprocess/application-domain-model.behavior.js.map +1 -1
  191. package/dist/esm/core/introspection/subprocess/assertions.behavior.d.ts +2 -1
  192. package/dist/esm/core/introspection/subprocess/assertions.behavior.d.ts.map +1 -1
  193. package/dist/esm/core/introspection/subprocess/assertions.behavior.js.map +1 -1
  194. package/dist/esm/core/introspection/subprocess/asset-noop-hooks.d.ts.map +1 -1
  195. package/dist/esm/core/introspection/subprocess/asset-noop-register.d.ts.map +1 -1
  196. package/dist/esm/core/introspection/subprocess/brand-prompt-renderer.d.ts.map +1 -1
  197. package/dist/esm/core/introspection/subprocess/chart-registration-refs.behavior.d.ts.map +1 -1
  198. package/dist/esm/core/introspection/subprocess/companion-introspection-behavior-handlers.d.ts.map +1 -1
  199. package/dist/esm/core/introspection/subprocess/companion-introspection-behavior-handlers.js +82 -49
  200. package/dist/esm/core/introspection/subprocess/companion-introspection-behavior-handlers.js.map +1 -1
  201. package/dist/esm/core/introspection/subprocess/companion-introspection-child.d.ts.map +1 -1
  202. package/dist/esm/core/introspection/subprocess/companion-introspection-module-exports.utils.d.ts.map +1 -1
  203. package/dist/esm/core/introspection/subprocess/compliance-primary-facts.behavior.d.ts.map +1 -1
  204. package/dist/esm/core/introspection/subprocess/compliance-primary-facts.behavior.js.map +1 -1
  205. package/dist/esm/core/introspection/subprocess/definition-specifications.behavior.d.ts.map +1 -1
  206. package/dist/esm/core/introspection/subprocess/engine-resource-population.subprocess.utils.d.ts +33 -0
  207. package/dist/esm/core/introspection/subprocess/engine-resource-population.subprocess.utils.d.ts.map +1 -0
  208. package/dist/esm/core/introspection/subprocess/engine-resource-population.subprocess.utils.js +59 -0
  209. package/dist/esm/core/introspection/subprocess/engine-resource-population.subprocess.utils.js.map +1 -0
  210. package/dist/esm/core/introspection/subprocess/expert-persona-brief.renderer.d.ts.map +1 -1
  211. package/dist/esm/core/introspection/subprocess/family-aspects.behavior.d.ts +33 -0
  212. package/dist/esm/core/introspection/subprocess/family-aspects.behavior.d.ts.map +1 -1
  213. package/dist/esm/core/introspection/subprocess/family-aspects.behavior.head-parity.tmp.d.ts +0 -0
  214. package/dist/esm/core/introspection/subprocess/family-aspects.behavior.head-parity.tmp.d.ts.map +0 -0
  215. package/dist/esm/core/introspection/subprocess/family-aspects.behavior.head-parity.tmp.js.map +0 -0
  216. package/dist/esm/core/introspection/subprocess/family-aspects.behavior.js +46 -140
  217. package/dist/esm/core/introspection/subprocess/family-aspects.behavior.js.map +1 -1
  218. package/dist/esm/core/introspection/subprocess/frontend-labels-needed-info.behavior.d.ts +15 -0
  219. package/dist/esm/core/introspection/subprocess/frontend-labels-needed-info.behavior.d.ts.map +1 -1
  220. package/dist/esm/core/introspection/subprocess/frontend-labels-needed-info.behavior.js +140 -46
  221. package/dist/esm/core/introspection/subprocess/frontend-labels-needed-info.behavior.js.map +1 -1
  222. package/dist/esm/core/introspection/subprocess/market-context-block.builder.d.ts.map +1 -1
  223. package/dist/esm/core/introspection/subprocess/market-prompt-renderer.d.ts.map +1 -1
  224. package/dist/esm/core/introspection/subprocess/openapi-generation-input.behavior.d.ts +24 -0
  225. package/dist/esm/core/introspection/subprocess/openapi-generation-input.behavior.d.ts.map +1 -1
  226. package/dist/esm/core/introspection/subprocess/openapi-generation-input.behavior.js +116 -10
  227. package/dist/esm/core/introspection/subprocess/openapi-generation-input.behavior.js.map +1 -1
  228. package/dist/esm/core/introspection/subprocess/risk-signals.behavior.d.ts +79 -0
  229. package/dist/esm/core/introspection/subprocess/risk-signals.behavior.d.ts.map +1 -0
  230. package/dist/esm/core/introspection/subprocess/risk-signals.behavior.js +49 -0
  231. package/dist/esm/core/introspection/subprocess/risk-signals.behavior.js.map +1 -0
  232. package/dist/esm/core/introspection/subprocess/specification-artifacts.behavior.d.ts.map +1 -1
  233. package/dist/esm/core/introspection/subprocess/specification-artifacts.behavior.js +314 -212
  234. package/dist/esm/core/introspection/subprocess/specification-artifacts.behavior.js.map +1 -1
  235. package/dist/esm/core/introspection/subprocess/specification-elements.behavior.d.ts +72 -0
  236. package/dist/esm/core/introspection/subprocess/specification-elements.behavior.d.ts.map +1 -0
  237. package/dist/esm/core/introspection/subprocess/specification-elements.behavior.js +123 -0
  238. package/dist/esm/core/introspection/subprocess/specification-elements.behavior.js.map +1 -0
  239. package/dist/esm/core/introspection/workspace-element-index.companion.d.ts +184 -0
  240. package/dist/esm/core/introspection/workspace-element-index.companion.d.ts.map +1 -0
  241. package/dist/esm/core/introspection/workspace-element-index.companion.js +311 -0
  242. package/dist/esm/core/introspection/workspace-element-index.companion.js.map +1 -0
  243. package/dist/esm/core/introspection/workspace-elements.companion.d.ts +54 -0
  244. package/dist/esm/core/introspection/workspace-elements.companion.d.ts.map +1 -0
  245. package/dist/esm/core/introspection/workspace-elements.companion.js +43 -0
  246. package/dist/esm/core/introspection/workspace-elements.companion.js.map +1 -0
  247. package/dist/esm/core/lock/wildo-saas-lock.companion.service.d.ts.map +1 -1
  248. package/dist/esm/core/lock/wildo-saas-lock.companion.service.js.map +1 -1
  249. package/dist/esm/core/lock/wildo-saas-lock.models.d.ts +7 -0
  250. package/dist/esm/core/lock/wildo-saas-lock.models.d.ts.map +1 -1
  251. package/dist/esm/core/lock/wildo-saas-lock.models.js.map +1 -1
  252. package/dist/esm/core/lock/wildo-saas-lock.schemas.d.ts +7 -4
  253. package/dist/esm/core/lock/wildo-saas-lock.schemas.d.ts.map +1 -1
  254. package/dist/esm/core/lock/wildo-saas-lock.schemas.js +1 -0
  255. package/dist/esm/core/lock/wildo-saas-lock.schemas.js.map +1 -1
  256. package/dist/esm/core/runtime/application-runtime-liveness.companion.d.ts +31 -0
  257. package/dist/esm/core/runtime/application-runtime-liveness.companion.d.ts.map +1 -0
  258. package/dist/esm/core/runtime/application-runtime-liveness.companion.js +53 -0
  259. package/dist/esm/core/runtime/application-runtime-liveness.companion.js.map +1 -0
  260. package/dist/esm/core/runtime/companion-startup-assembly.d.ts.map +1 -1
  261. package/dist/esm/core/runtime/companion-startup-assembly.js +30 -1
  262. package/dist/esm/core/runtime/companion-startup-assembly.js.map +1 -1
  263. package/dist/esm/core/runtime/dev-compile-quiet.companion.d.ts.map +1 -1
  264. package/dist/esm/core/runtime/models/companion-runtime.models.d.ts.map +1 -1
  265. package/dist/esm/core/runtime/services/file-storage-initialization.companion.d.ts +54 -0
  266. package/dist/esm/core/runtime/services/file-storage-initialization.companion.d.ts.map +1 -0
  267. package/dist/esm/core/runtime/services/file-storage-initialization.companion.js +54 -0
  268. package/dist/esm/core/runtime/services/file-storage-initialization.companion.js.map +1 -0
  269. package/dist/esm/core/runtime/services/start-companion-application.service.d.ts +11 -2
  270. package/dist/esm/core/runtime/services/start-companion-application.service.d.ts.map +1 -1
  271. package/dist/esm/core/runtime/services/start-companion-application.service.js +182 -31
  272. package/dist/esm/core/runtime/services/start-companion-application.service.js.map +1 -1
  273. package/dist/esm/core/runtime/utils/companion-local-signing-key.companion.d.ts.map +1 -1
  274. package/dist/esm/core/runtime/utils/companion-platform-config.companion.d.ts +3 -3
  275. package/dist/esm/core/runtime/utils/companion-platform-config.companion.d.ts.map +1 -1
  276. package/dist/esm/core/runtime/utils/companion-platform-config.companion.js +27 -9
  277. package/dist/esm/core/runtime/utils/companion-platform-config.companion.js.map +1 -1
  278. package/dist/esm/core/runtime/utils/companion-workbench-topology.d.ts.map +1 -1
  279. package/dist/esm/core/runtime/utils/platform-core-domain-modules.companion.d.ts.map +1 -1
  280. package/dist/esm/core/specifications/chart-view-specification-context.factory.d.ts.map +1 -1
  281. package/dist/esm/core/specifications/composite-view-specification-context.factory.d.ts.map +1 -1
  282. package/dist/esm/core/specifications/cross-registry-rendering.shared.d.ts +0 -4
  283. package/dist/esm/core/specifications/cross-registry-rendering.shared.d.ts.map +1 -1
  284. package/dist/esm/core/specifications/cross-registry-rendering.shared.js +0 -4
  285. package/dist/esm/core/specifications/cross-registry-rendering.shared.js.map +1 -1
  286. package/dist/esm/core/specifications/execution-view-specification-context.factory.d.ts.map +1 -1
  287. package/dist/esm/core/specifications/feature-specification-context.factory.d.ts.map +1 -1
  288. package/dist/esm/core/specifications/flows-actors-view-specification-context.factory.d.ts.map +1 -1
  289. package/dist/esm/core/specifications/frontend-component-specification-context.factory.d.ts.map +1 -1
  290. package/dist/esm/core/specifications/full-custom-view-specification-context.factory.d.ts.map +1 -1
  291. package/dist/esm/core/specifications/guidance-flow-specification-context.factory.d.ts.map +1 -1
  292. package/dist/esm/core/specifications/guidance-flow-specification-context.factory.js.map +1 -1
  293. package/dist/esm/core/specifications/milestone-specification-context.factory.d.ts.map +1 -1
  294. package/dist/esm/core/specifications/non-composite-view-specification-context.shared.d.ts.map +1 -1
  295. package/dist/esm/core/specifications/onboarding-element-rendering.shared.d.ts.map +1 -1
  296. package/dist/esm/core/specifications/onboarding-element-rendering.shared.js +6 -34
  297. package/dist/esm/core/specifications/onboarding-element-rendering.shared.js.map +1 -1
  298. package/dist/esm/core/specifications/onboarding-view-specification-context.factory.d.ts.map +1 -1
  299. package/dist/esm/core/specifications/onboarding-view-specification-context.factory.js.map +1 -1
  300. package/dist/esm/core/specifications/product-specification-context.factory.d.ts.map +1 -1
  301. package/dist/esm/core/specifications/resource-specification-context.factory.d.ts.map +1 -1
  302. package/dist/esm/core/specifications/resource-specification-context.factory.js +2 -0
  303. package/dist/esm/core/specifications/resource-specification-context.factory.js.map +1 -1
  304. package/dist/esm/core/specifications/role-specification-context.factory.d.ts.map +1 -1
  305. package/dist/esm/core/specifications/specification-context-factory.d.ts.map +1 -1
  306. package/dist/esm/core/specifications/specification-context-factory.models.d.ts.map +1 -1
  307. package/dist/esm/core/specifications/specification-context-factory.shared.d.ts.map +1 -1
  308. package/dist/esm/core/specifications/system-email-template-specification-context.factory.d.ts.map +1 -1
  309. package/dist/esm/core/specifications/templates/composite-view/composite-view-all-information.template.d.ts.map +1 -1
  310. package/dist/esm/core/specifications/templates/composite-view/composite-view-custom-implementation-context.template.d.ts.map +1 -1
  311. package/dist/esm/core/specifications/templates/composite-view/composite-view-development-usage-context.template.d.ts.map +1 -1
  312. package/dist/esm/core/specifications/templates/composite-view/composite-view-translation-context.template.d.ts.map +1 -1
  313. package/dist/esm/core/specifications/templates/feature/feature-all-information.template.d.ts.map +1 -1
  314. package/dist/esm/core/specifications/templates/feature/feature-custom-implementation-context.template.d.ts.map +1 -1
  315. package/dist/esm/core/specifications/templates/feature/feature-development-usage-context.template.d.ts.map +1 -1
  316. package/dist/esm/core/specifications/templates/feature/feature-translation-context.template.d.ts.map +1 -1
  317. package/dist/esm/core/specifications/templates/frontend-component/frontend-component-all-information.template.d.ts.map +1 -1
  318. package/dist/esm/core/specifications/templates/frontend-component/frontend-component-custom-implementation-context.template.d.ts.map +1 -1
  319. package/dist/esm/core/specifications/templates/frontend-component/frontend-component-development-usage-context.template.d.ts.map +1 -1
  320. package/dist/esm/core/specifications/templates/frontend-component/frontend-component-translation-context.template.d.ts.map +1 -1
  321. package/dist/esm/core/specifications/templates/guidance-flow-specification/guidance-flow-all-information.template.d.ts.map +1 -1
  322. package/dist/esm/core/specifications/templates/guidance-flow-specification/guidance-flow-custom-implementation-context.template.d.ts.map +1 -1
  323. package/dist/esm/core/specifications/templates/guidance-flow-specification/guidance-flow-development-usage-context.template.d.ts.map +1 -1
  324. package/dist/esm/core/specifications/templates/guidance-flow-specification/guidance-flow-translation-context.template.d.ts.map +1 -1
  325. package/dist/esm/core/specifications/templates/milestone/milestone-all-information.template.d.ts.map +1 -1
  326. package/dist/esm/core/specifications/templates/milestone/milestone-custom-implementation-context.template.d.ts.map +1 -1
  327. package/dist/esm/core/specifications/templates/milestone/milestone-development-usage-context.template.d.ts.map +1 -1
  328. package/dist/esm/core/specifications/templates/milestone/milestone-translation-context.template.d.ts.map +1 -1
  329. package/dist/esm/core/specifications/templates/non-composite-view/non-composite-view-all-information.template.d.ts.map +1 -1
  330. package/dist/esm/core/specifications/templates/non-composite-view/non-composite-view-custom-implementation-context.template.d.ts.map +1 -1
  331. package/dist/esm/core/specifications/templates/non-composite-view/non-composite-view-development-usage-context.template.d.ts.map +1 -1
  332. package/dist/esm/core/specifications/templates/non-composite-view/non-composite-view-translation-context.template.d.ts.map +1 -1
  333. package/dist/esm/core/specifications/templates/onboarding-view-specification/onboarding-view-all-information.template.d.ts.map +1 -1
  334. package/dist/esm/core/specifications/templates/onboarding-view-specification/onboarding-view-custom-implementation-context.template.d.ts.map +1 -1
  335. package/dist/esm/core/specifications/templates/onboarding-view-specification/onboarding-view-development-usage-context.template.d.ts.map +1 -1
  336. package/dist/esm/core/specifications/templates/onboarding-view-specification/onboarding-view-translation-context.template.d.ts.map +1 -1
  337. package/dist/esm/core/specifications/templates/product/product-all-information.template.d.ts.map +1 -1
  338. package/dist/esm/core/specifications/templates/product/product-custom-implementation-context.template.d.ts.map +1 -1
  339. package/dist/esm/core/specifications/templates/product/product-development-usage-context.template.d.ts.map +1 -1
  340. package/dist/esm/core/specifications/templates/product/product-translation-context.template.d.ts.map +1 -1
  341. package/dist/esm/core/specifications/templates/resource/resource-all-information.template.d.ts.map +1 -1
  342. package/dist/esm/core/specifications/templates/resource/resource-custom-implementation-context.template.d.ts.map +1 -1
  343. package/dist/esm/core/specifications/templates/resource/resource-development-usage-context.template.d.ts.map +1 -1
  344. package/dist/esm/core/specifications/templates/resource/resource-translation-context.template.d.ts.map +1 -1
  345. package/dist/esm/core/specifications/templates/role/role-all-information.template.d.ts.map +1 -1
  346. package/dist/esm/core/specifications/templates/role/role-custom-implementation-context.template.d.ts.map +1 -1
  347. package/dist/esm/core/specifications/templates/role/role-development-usage-context.template.d.ts.map +1 -1
  348. package/dist/esm/core/specifications/templates/role/role-translation-context.template.d.ts.map +1 -1
  349. package/dist/esm/core/specifications/templates/system-email-template/system-email-template-all-information.template.d.ts.map +1 -1
  350. package/dist/esm/core/specifications/templates/system-email-template/system-email-template-custom-implementation-context.template.d.ts.map +1 -1
  351. package/dist/esm/core/specifications/templates/system-email-template/system-email-template-development-usage-context.template.d.ts.map +1 -1
  352. package/dist/esm/core/specifications/templates/system-email-template/system-email-template-translation-context.template.d.ts.map +1 -1
  353. package/dist/esm/core/specifications/validate-resource-field-completeness.d.ts.map +1 -1
  354. package/dist/esm/core/traceability/companion-agent-call-trace-sink.companion.service.d.ts +4 -2
  355. package/dist/esm/core/traceability/companion-agent-call-trace-sink.companion.service.d.ts.map +1 -1
  356. package/dist/esm/core/traceability/companion-agent-call-trace-sink.companion.service.js +12 -2
  357. package/dist/esm/core/traceability/companion-agent-call-trace-sink.companion.service.js.map +1 -1
  358. package/dist/esm/core/traceability/companion-traceability.models.d.ts.map +1 -1
  359. package/dist/esm/core/traceability/companion-traceability.service.d.ts +21 -1
  360. package/dist/esm/core/traceability/companion-traceability.service.d.ts.map +1 -1
  361. package/dist/esm/core/traceability/companion-traceability.service.js +25 -1
  362. package/dist/esm/core/traceability/companion-traceability.service.js.map +1 -1
  363. package/dist/esm/core/utils/atomic-write.utils.d.ts.map +1 -1
  364. package/dist/esm/core/utils/derived-input-signature.companion.utils.d.ts +45 -0
  365. package/dist/esm/core/utils/derived-input-signature.companion.utils.d.ts.map +1 -0
  366. package/dist/esm/core/utils/derived-input-signature.companion.utils.js +96 -0
  367. package/dist/esm/core/utils/derived-input-signature.companion.utils.js.map +1 -0
  368. package/dist/esm/creation-conversation/creation-conversation.actors-system.definitions.d.ts +35 -0
  369. package/dist/esm/creation-conversation/creation-conversation.actors-system.definitions.d.ts.map +1 -0
  370. package/dist/esm/creation-conversation/creation-conversation.actors-system.definitions.js +118 -0
  371. package/dist/esm/creation-conversation/creation-conversation.actors-system.definitions.js.map +1 -0
  372. package/dist/esm/creation-conversation/creation-conversation.function-tools.d.ts +34 -0
  373. package/dist/esm/creation-conversation/creation-conversation.function-tools.d.ts.map +1 -0
  374. package/dist/esm/creation-conversation/creation-conversation.function-tools.js +280 -0
  375. package/dist/esm/creation-conversation/creation-conversation.function-tools.js.map +1 -0
  376. package/dist/esm/deliberations/models/deliberation-agents.actors-system.definitions.d.ts.map +1 -1
  377. package/dist/esm/deliberations/models/deliberation-agents.actors-system.definitions.js.map +1 -1
  378. package/dist/esm/deliberations/services/deliberation.companion.service.d.ts +19 -1
  379. package/dist/esm/deliberations/services/deliberation.companion.service.d.ts.map +1 -1
  380. package/dist/esm/deliberations/services/deliberation.companion.service.js +61 -5
  381. package/dist/esm/deliberations/services/deliberation.companion.service.js.map +1 -1
  382. package/dist/esm/deliberations/services/structured-deliberation.companion.service.d.ts +3 -1
  383. package/dist/esm/deliberations/services/structured-deliberation.companion.service.d.ts.map +1 -1
  384. package/dist/esm/deliberations/services/structured-deliberation.companion.service.js +7 -2
  385. package/dist/esm/deliberations/services/structured-deliberation.companion.service.js.map +1 -1
  386. package/dist/esm/deliberations/utils/load-committed-expert-agents.d.ts.map +1 -1
  387. package/dist/esm/email/models/email-template.actors-system.definitions.d.ts.map +1 -1
  388. package/dist/esm/email/models/email-template.actors-system.definitions.js.map +1 -1
  389. package/dist/esm/email/services/email-spec-context-loader.companion.service.d.ts.map +1 -1
  390. package/dist/esm/email/services/email-spec-context-loader.companion.service.js.map +1 -1
  391. package/dist/esm/email/services/email-template.companion.service.d.ts +30 -0
  392. package/dist/esm/email/services/email-template.companion.service.d.ts.map +1 -1
  393. package/dist/esm/email/services/email-template.companion.service.js +92 -41
  394. package/dist/esm/email/services/email-template.companion.service.js.map +1 -1
  395. package/dist/esm/email/utils/email-labels-file-source.utils.d.ts.map +1 -1
  396. package/dist/esm/email/utils/email-template-fs-discovery.utils.d.ts.map +1 -1
  397. package/dist/esm/executions/services/companion-actor-execution-persistence.adapter.d.ts +34 -0
  398. package/dist/esm/executions/services/companion-actor-execution-persistence.adapter.d.ts.map +1 -0
  399. package/dist/esm/executions/services/companion-actor-execution-persistence.adapter.js +130 -0
  400. package/dist/esm/executions/services/companion-actor-execution-persistence.adapter.js.map +1 -0
  401. package/dist/esm/executions/services/companion-executions.companion.service.d.ts +36 -3
  402. package/dist/esm/executions/services/companion-executions.companion.service.d.ts.map +1 -1
  403. package/dist/esm/executions/services/companion-executions.companion.service.js +136 -5
  404. package/dist/esm/executions/services/companion-executions.companion.service.js.map +1 -1
  405. package/dist/esm/expert-personas/models/expert-persona-critique.actors-system.definitions.d.ts.map +1 -1
  406. package/dist/esm/expert-personas/models/expert-persona-critique.actors-system.definitions.js.map +1 -1
  407. package/dist/esm/expert-personas/models/expert-persona-derivation.actors-system.definitions.d.ts.map +1 -1
  408. package/dist/esm/expert-personas/models/expert-persona-derivation.actors-system.definitions.js.map +1 -1
  409. package/dist/esm/expert-personas/models/expert-persona-derivation.schemas.d.ts.map +1 -1
  410. package/dist/esm/expert-personas/services/expert-persona.companion.service.d.ts +5 -0
  411. package/dist/esm/expert-personas/services/expert-persona.companion.service.d.ts.map +1 -1
  412. package/dist/esm/expert-personas/services/expert-persona.companion.service.js +58 -8
  413. package/dist/esm/expert-personas/services/expert-persona.companion.service.js.map +1 -1
  414. package/dist/esm/expert-personas/services/persona-source-ownership.d.ts +8 -0
  415. package/dist/esm/expert-personas/services/persona-source-ownership.d.ts.map +1 -0
  416. package/dist/esm/expert-personas/services/persona-source-ownership.js +83 -0
  417. package/dist/esm/expert-personas/services/persona-source-ownership.js.map +1 -0
  418. package/dist/esm/i18n/components/APPLICATION_LEVEL_ACTIVITY_BAR.en.d.ts +1 -1
  419. package/dist/esm/i18n/components/APPLICATION_LEVEL_ACTIVITY_BAR.en.d.ts.map +1 -1
  420. package/dist/esm/i18n/components/APPLICATION_LEVEL_ACTIVITY_BAR.en.js +1 -1
  421. package/dist/esm/i18n/components/APPLICATION_LEVEL_ACTIVITY_BAR.en.js.map +1 -1
  422. package/dist/esm/i18n/components/APPLICATION_LEVEL_COMMAND_MENU.en.d.ts +4 -4
  423. package/dist/esm/i18n/components/APPLICATION_LEVEL_COMMAND_MENU.en.d.ts.map +1 -1
  424. package/dist/esm/i18n/components/APPLICATION_LEVEL_COMMAND_MENU.en.js +4 -4
  425. package/dist/esm/i18n/components/APPLICATION_LEVEL_COMMAND_MENU.en.js.map +1 -1
  426. package/dist/esm/i18n/components/APPLICATION_LEVEL_CONTROL_PANEL.en.d.ts +2 -2
  427. package/dist/esm/i18n/components/APPLICATION_LEVEL_CONTROL_PANEL.en.d.ts.map +1 -1
  428. package/dist/esm/i18n/components/APPLICATION_LEVEL_CONTROL_PANEL.en.js +2 -2
  429. package/dist/esm/i18n/components/APPLICATION_LEVEL_CONTROL_PANEL.en.js.map +1 -1
  430. package/dist/esm/i18n/components/APPLICATION_LEVEL_MENUBAR.en.d.ts.map +1 -1
  431. package/dist/esm/i18n/components/APPLICATION_LEVEL_NAVIGATION_BACK.en.d.ts.map +1 -1
  432. package/dist/esm/i18n/components/APPLICATION_LEVEL_NOTIFICATION_CENTER.en.d.ts +4 -2
  433. package/dist/esm/i18n/components/APPLICATION_LEVEL_NOTIFICATION_CENTER.en.d.ts.map +1 -1
  434. package/dist/esm/i18n/components/APPLICATION_LEVEL_NOTIFICATION_CENTER.en.js +5 -3
  435. package/dist/esm/i18n/components/APPLICATION_LEVEL_NOTIFICATION_CENTER.en.js.map +1 -1
  436. package/dist/esm/i18n/components/APPLICATION_LEVEL_QUICK_ACTION_BUTTON.en.d.ts +2 -1
  437. package/dist/esm/i18n/components/APPLICATION_LEVEL_QUICK_ACTION_BUTTON.en.d.ts.map +1 -1
  438. package/dist/esm/i18n/components/APPLICATION_LEVEL_QUICK_ACTION_BUTTON.en.js +2 -1
  439. package/dist/esm/i18n/components/APPLICATION_LEVEL_QUICK_ACTION_BUTTON.en.js.map +1 -1
  440. package/dist/esm/i18n/components/APPLICATION_LEVEL_QUICK_SWITCHER.en.d.ts +1 -1
  441. package/dist/esm/i18n/components/APPLICATION_LEVEL_QUICK_SWITCHER.en.d.ts.map +1 -1
  442. package/dist/esm/i18n/components/APPLICATION_LEVEL_QUICK_SWITCHER.en.js +1 -1
  443. package/dist/esm/i18n/components/APPLICATION_LEVEL_QUICK_SWITCHER.en.js.map +1 -1
  444. package/dist/esm/i18n/components/APPLICATION_LEVEL_SIDEBAR.en.d.ts +6 -5
  445. package/dist/esm/i18n/components/APPLICATION_LEVEL_SIDEBAR.en.d.ts.map +1 -1
  446. package/dist/esm/i18n/components/APPLICATION_LEVEL_SIDEBAR.en.js +7 -6
  447. package/dist/esm/i18n/components/APPLICATION_LEVEL_SIDEBAR.en.js.map +1 -1
  448. package/dist/esm/i18n/components/APPLICATION_LEVEL_STATUS_BAR.en.d.ts +3 -3
  449. package/dist/esm/i18n/components/APPLICATION_LEVEL_STATUS_BAR.en.d.ts.map +1 -1
  450. package/dist/esm/i18n/components/APPLICATION_LEVEL_STATUS_BAR.en.js +3 -3
  451. package/dist/esm/i18n/components/APPLICATION_LEVEL_STATUS_BAR.en.js.map +1 -1
  452. package/dist/esm/i18n/components/APPLICATION_LEVEL_TOOLBAR.en.d.ts.map +1 -1
  453. package/dist/esm/i18n/components/APPLICATION_LEVEL_USER_DROPDOWN.en.d.ts +2 -2
  454. package/dist/esm/i18n/components/APPLICATION_LEVEL_USER_DROPDOWN.en.d.ts.map +1 -1
  455. package/dist/esm/i18n/components/APPLICATION_LEVEL_USER_DROPDOWN.en.js +2 -2
  456. package/dist/esm/i18n/components/APPLICATION_LEVEL_USER_DROPDOWN.en.js.map +1 -1
  457. package/dist/esm/i18n/components/APPLICATION_LEVEL_UTILITY_PANEL.en.d.ts +2 -1
  458. package/dist/esm/i18n/components/APPLICATION_LEVEL_UTILITY_PANEL.en.d.ts.map +1 -1
  459. package/dist/esm/i18n/components/APPLICATION_LEVEL_UTILITY_PANEL.en.js +2 -1
  460. package/dist/esm/i18n/components/APPLICATION_LEVEL_UTILITY_PANEL.en.js.map +1 -1
  461. package/dist/esm/i18n/components/APP_LAYOUTS_APPEARANCE_SETTINGS.en.d.ts +1 -1
  462. package/dist/esm/i18n/components/APP_LAYOUTS_APPEARANCE_SETTINGS.en.d.ts.map +1 -1
  463. package/dist/esm/i18n/components/APP_LAYOUTS_APPEARANCE_SETTINGS.en.js +1 -1
  464. package/dist/esm/i18n/components/APP_LAYOUTS_APPEARANCE_SETTINGS.en.js.map +1 -1
  465. package/dist/esm/i18n/components/APP_LAYOUTS_BILLING_SETTINGS.en.d.ts +1 -1
  466. package/dist/esm/i18n/components/APP_LAYOUTS_BILLING_SETTINGS.en.d.ts.map +1 -1
  467. package/dist/esm/i18n/components/APP_LAYOUTS_BILLING_SETTINGS.en.js +1 -1
  468. package/dist/esm/i18n/components/APP_LAYOUTS_BILLING_SETTINGS.en.js.map +1 -1
  469. package/dist/esm/i18n/components/APP_LAYOUTS_CONNECTED_ACCOUNTS_SETTINGS.en.d.ts +43 -0
  470. package/dist/esm/i18n/components/APP_LAYOUTS_CONNECTED_ACCOUNTS_SETTINGS.en.d.ts.map +1 -0
  471. package/dist/esm/i18n/components/APP_LAYOUTS_CONNECTED_ACCOUNTS_SETTINGS.en.js +43 -0
  472. package/dist/esm/i18n/components/APP_LAYOUTS_CONNECTED_ACCOUNTS_SETTINGS.en.js.map +1 -0
  473. package/dist/esm/i18n/components/APP_LAYOUTS_CONSENT_GATE.en.d.ts +26 -0
  474. package/dist/esm/i18n/components/APP_LAYOUTS_CONSENT_GATE.en.d.ts.map +1 -0
  475. package/dist/esm/i18n/components/APP_LAYOUTS_CONSENT_GATE.en.js +26 -0
  476. package/dist/esm/i18n/components/APP_LAYOUTS_CONSENT_GATE.en.js.map +1 -0
  477. package/dist/esm/i18n/components/APP_LAYOUTS_DOCUMENT_ACCEPTANCE_GATE.en.d.ts +18 -0
  478. package/dist/esm/i18n/components/APP_LAYOUTS_DOCUMENT_ACCEPTANCE_GATE.en.d.ts.map +1 -0
  479. package/dist/esm/i18n/components/APP_LAYOUTS_DOCUMENT_ACCEPTANCE_GATE.en.js +18 -0
  480. package/dist/esm/i18n/components/APP_LAYOUTS_DOCUMENT_ACCEPTANCE_GATE.en.js.map +1 -0
  481. package/dist/esm/i18n/components/APP_LAYOUTS_ERROR_BOUNDARY.en.d.ts +3 -3
  482. package/dist/esm/i18n/components/APP_LAYOUTS_ERROR_BOUNDARY.en.d.ts.map +1 -1
  483. package/dist/esm/i18n/components/APP_LAYOUTS_ERROR_BOUNDARY.en.js +3 -3
  484. package/dist/esm/i18n/components/APP_LAYOUTS_ERROR_BOUNDARY.en.js.map +1 -1
  485. package/dist/esm/i18n/components/APP_LAYOUTS_HOME.en.d.ts +1 -1
  486. package/dist/esm/i18n/components/APP_LAYOUTS_HOME.en.d.ts.map +1 -1
  487. package/dist/esm/i18n/components/APP_LAYOUTS_HOME.en.js +1 -1
  488. package/dist/esm/i18n/components/APP_LAYOUTS_HOME.en.js.map +1 -1
  489. package/dist/esm/i18n/components/APP_LAYOUTS_INVITATIONS_SETTINGS.en.d.ts +2 -2
  490. package/dist/esm/i18n/components/APP_LAYOUTS_INVITATIONS_SETTINGS.en.d.ts.map +1 -1
  491. package/dist/esm/i18n/components/APP_LAYOUTS_INVITATIONS_SETTINGS.en.js +2 -2
  492. package/dist/esm/i18n/components/APP_LAYOUTS_INVITATIONS_SETTINGS.en.js.map +1 -1
  493. package/dist/esm/i18n/components/APP_LAYOUTS_MAIN_CONTAINER.en.d.ts +4 -1
  494. package/dist/esm/i18n/components/APP_LAYOUTS_MAIN_CONTAINER.en.d.ts.map +1 -1
  495. package/dist/esm/i18n/components/APP_LAYOUTS_MAIN_CONTAINER.en.js +4 -1
  496. package/dist/esm/i18n/components/APP_LAYOUTS_MAIN_CONTAINER.en.js.map +1 -1
  497. package/dist/esm/i18n/components/APP_LAYOUTS_ROUTER_ERROR_BOUNDARY.en.d.ts +10 -10
  498. package/dist/esm/i18n/components/APP_LAYOUTS_ROUTER_ERROR_BOUNDARY.en.d.ts.map +1 -1
  499. package/dist/esm/i18n/components/APP_LAYOUTS_ROUTER_ERROR_BOUNDARY.en.js +10 -10
  500. package/dist/esm/i18n/components/APP_LAYOUTS_ROUTER_ERROR_BOUNDARY.en.js.map +1 -1
  501. package/dist/esm/i18n/components/APP_LAYOUTS_SECURITY_SETTINGS.en.d.ts +25 -13
  502. package/dist/esm/i18n/components/APP_LAYOUTS_SECURITY_SETTINGS.en.d.ts.map +1 -1
  503. package/dist/esm/i18n/components/APP_LAYOUTS_SECURITY_SETTINGS.en.js +26 -14
  504. package/dist/esm/i18n/components/APP_LAYOUTS_SECURITY_SETTINGS.en.js.map +1 -1
  505. package/dist/esm/i18n/components/APP_LAYOUTS_SETTINGS_HUB.en.d.ts +1 -0
  506. package/dist/esm/i18n/components/APP_LAYOUTS_SETTINGS_HUB.en.d.ts.map +1 -1
  507. package/dist/esm/i18n/components/APP_LAYOUTS_SETTINGS_HUB.en.js +2 -1
  508. package/dist/esm/i18n/components/APP_LAYOUTS_SETTINGS_HUB.en.js.map +1 -1
  509. package/dist/esm/i18n/components/APP_LAYOUTS_SURFACE_ERROR_BOUNDARY.en.d.ts +17 -0
  510. package/dist/esm/i18n/components/APP_LAYOUTS_SURFACE_ERROR_BOUNDARY.en.d.ts.map +1 -0
  511. package/dist/esm/i18n/components/APP_LAYOUTS_SURFACE_ERROR_BOUNDARY.en.js +17 -0
  512. package/dist/esm/i18n/components/APP_LAYOUTS_SURFACE_ERROR_BOUNDARY.en.js.map +1 -0
  513. package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_CHART.en.d.ts +5 -5
  514. package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_CHART.en.d.ts.map +1 -1
  515. package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_CHART.en.js +5 -5
  516. package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_CHART.en.js.map +1 -1
  517. package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_CHART_WIDGET.en.d.ts +1 -1
  518. package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_CHART_WIDGET.en.d.ts.map +1 -1
  519. package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_CHART_WIDGET.en.js +1 -1
  520. package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_CHART_WIDGET.en.js.map +1 -1
  521. package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_EXECUTION.en.d.ts +1 -1
  522. package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_EXECUTION.en.d.ts.map +1 -1
  523. package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_EXECUTION.en.js +1 -1
  524. package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_EXECUTION.en.js.map +1 -1
  525. package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_FLOWS_ACTORS.en.d.ts +16 -2
  526. package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_FLOWS_ACTORS.en.d.ts.map +1 -1
  527. package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_FLOWS_ACTORS.en.js +16 -2
  528. package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_FLOWS_ACTORS.en.js.map +1 -1
  529. package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_NOT_FOUND.en.d.ts +3 -3
  530. package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_NOT_FOUND.en.d.ts.map +1 -1
  531. package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_NOT_FOUND.en.js +3 -3
  532. package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_NOT_FOUND.en.js.map +1 -1
  533. package/dist/esm/i18n/components/LOW_LEVEL_ACTION_BAR.en.d.ts.map +1 -1
  534. package/dist/esm/i18n/components/LOW_LEVEL_AI_ACTOR.en.d.ts +8 -8
  535. package/dist/esm/i18n/components/LOW_LEVEL_AI_ACTOR.en.d.ts.map +1 -1
  536. package/dist/esm/i18n/components/LOW_LEVEL_AI_ACTOR.en.js +8 -8
  537. package/dist/esm/i18n/components/LOW_LEVEL_AI_ACTOR.en.js.map +1 -1
  538. package/dist/esm/i18n/components/LOW_LEVEL_AI_AGENT_CONFIG.en.d.ts +14 -14
  539. package/dist/esm/i18n/components/LOW_LEVEL_AI_AGENT_CONFIG.en.d.ts.map +1 -1
  540. package/dist/esm/i18n/components/LOW_LEVEL_AI_AGENT_CONFIG.en.js +14 -14
  541. package/dist/esm/i18n/components/LOW_LEVEL_AI_AGENT_CONFIG.en.js.map +1 -1
  542. package/dist/esm/i18n/components/LOW_LEVEL_AI_APPROVAL.en.d.ts +22 -6
  543. package/dist/esm/i18n/components/LOW_LEVEL_AI_APPROVAL.en.d.ts.map +1 -1
  544. package/dist/esm/i18n/components/LOW_LEVEL_AI_APPROVAL.en.js +23 -7
  545. package/dist/esm/i18n/components/LOW_LEVEL_AI_APPROVAL.en.js.map +1 -1
  546. package/dist/esm/i18n/components/LOW_LEVEL_AI_ARTIFACT.en.d.ts +2 -2
  547. package/dist/esm/i18n/components/LOW_LEVEL_AI_ARTIFACT.en.d.ts.map +1 -1
  548. package/dist/esm/i18n/components/LOW_LEVEL_AI_ARTIFACT.en.js +2 -2
  549. package/dist/esm/i18n/components/LOW_LEVEL_AI_ARTIFACT.en.js.map +1 -1
  550. package/dist/esm/i18n/components/LOW_LEVEL_AI_ARTIFACT_BROWSER.en.d.ts +1 -1
  551. package/dist/esm/i18n/components/LOW_LEVEL_AI_ARTIFACT_BROWSER.en.d.ts.map +1 -1
  552. package/dist/esm/i18n/components/LOW_LEVEL_AI_ARTIFACT_BROWSER.en.js +1 -1
  553. package/dist/esm/i18n/components/LOW_LEVEL_AI_ARTIFACT_BROWSER.en.js.map +1 -1
  554. package/dist/esm/i18n/components/LOW_LEVEL_AI_CHAIN_OF_THOUGHT.en.d.ts.map +1 -1
  555. package/dist/esm/i18n/components/LOW_LEVEL_AI_CODE_BLOCK.en.d.ts.map +1 -1
  556. package/dist/esm/i18n/components/LOW_LEVEL_AI_CONFIRMATION.en.d.ts +1 -1
  557. package/dist/esm/i18n/components/LOW_LEVEL_AI_CONFIRMATION.en.d.ts.map +1 -1
  558. package/dist/esm/i18n/components/LOW_LEVEL_AI_CONFIRMATION.en.js +1 -1
  559. package/dist/esm/i18n/components/LOW_LEVEL_AI_CONFIRMATION.en.js.map +1 -1
  560. package/dist/esm/i18n/components/LOW_LEVEL_AI_CONTEXT.en.d.ts +1 -1
  561. package/dist/esm/i18n/components/LOW_LEVEL_AI_CONTEXT.en.d.ts.map +1 -1
  562. package/dist/esm/i18n/components/LOW_LEVEL_AI_CONTEXT.en.js +1 -1
  563. package/dist/esm/i18n/components/LOW_LEVEL_AI_CONTEXT.en.js.map +1 -1
  564. package/dist/esm/i18n/components/LOW_LEVEL_AI_CONVERSATION.en.d.ts.map +1 -1
  565. package/dist/esm/i18n/components/LOW_LEVEL_AI_DECISION.en.d.ts +2 -2
  566. package/dist/esm/i18n/components/LOW_LEVEL_AI_DECISION.en.d.ts.map +1 -1
  567. package/dist/esm/i18n/components/LOW_LEVEL_AI_DECISION.en.js +2 -2
  568. package/dist/esm/i18n/components/LOW_LEVEL_AI_DECISION.en.js.map +1 -1
  569. package/dist/esm/i18n/components/LOW_LEVEL_AI_DIFF_BLOCK.en.d.ts +21 -0
  570. package/dist/esm/i18n/components/LOW_LEVEL_AI_DIFF_BLOCK.en.d.ts.map +1 -0
  571. package/dist/esm/i18n/components/LOW_LEVEL_AI_DIFF_BLOCK.en.js +21 -0
  572. package/dist/esm/i18n/components/LOW_LEVEL_AI_DIFF_BLOCK.en.js.map +1 -0
  573. package/dist/esm/i18n/components/LOW_LEVEL_AI_EXECUTION_PLAN.en.d.ts +1 -1
  574. package/dist/esm/i18n/components/LOW_LEVEL_AI_EXECUTION_PLAN.en.d.ts.map +1 -1
  575. package/dist/esm/i18n/components/LOW_LEVEL_AI_EXECUTION_PLAN.en.js +1 -1
  576. package/dist/esm/i18n/components/LOW_LEVEL_AI_EXECUTION_PLAN.en.js.map +1 -1
  577. package/dist/esm/i18n/components/LOW_LEVEL_AI_EXECUTION_STREAM.en.d.ts +1 -1
  578. package/dist/esm/i18n/components/LOW_LEVEL_AI_EXECUTION_STREAM.en.d.ts.map +1 -1
  579. package/dist/esm/i18n/components/LOW_LEVEL_AI_EXECUTION_STREAM.en.js +1 -1
  580. package/dist/esm/i18n/components/LOW_LEVEL_AI_EXECUTION_STREAM.en.js.map +1 -1
  581. package/dist/esm/i18n/components/LOW_LEVEL_AI_FLOW_EXECUTION.en.d.ts.map +1 -1
  582. package/dist/esm/i18n/components/LOW_LEVEL_AI_FLOW_NODE.en.d.ts.map +1 -1
  583. package/dist/esm/i18n/components/LOW_LEVEL_AI_INLINE_CITATION.en.d.ts.map +1 -1
  584. package/dist/esm/i18n/components/LOW_LEVEL_AI_MESSAGE.en.d.ts +2 -2
  585. package/dist/esm/i18n/components/LOW_LEVEL_AI_MESSAGE.en.d.ts.map +1 -1
  586. package/dist/esm/i18n/components/LOW_LEVEL_AI_MESSAGE.en.js +2 -2
  587. package/dist/esm/i18n/components/LOW_LEVEL_AI_MESSAGE.en.js.map +1 -1
  588. package/dist/esm/i18n/components/LOW_LEVEL_AI_MODEL_SELECTOR.en.d.ts +1 -1
  589. package/dist/esm/i18n/components/LOW_LEVEL_AI_MODEL_SELECTOR.en.d.ts.map +1 -1
  590. package/dist/esm/i18n/components/LOW_LEVEL_AI_MODEL_SELECTOR.en.js +1 -1
  591. package/dist/esm/i18n/components/LOW_LEVEL_AI_MODEL_SELECTOR.en.js.map +1 -1
  592. package/dist/esm/i18n/components/LOW_LEVEL_AI_OPEN_IN_CHAT.en.d.ts.map +1 -1
  593. package/dist/esm/i18n/components/LOW_LEVEL_AI_PLAN.en.d.ts.map +1 -1
  594. package/dist/esm/i18n/components/LOW_LEVEL_AI_PROMPT_INPUT.en.d.ts.map +1 -1
  595. package/dist/esm/i18n/components/LOW_LEVEL_AI_SYSTEM_CATALOG.en.d.ts +4 -5
  596. package/dist/esm/i18n/components/LOW_LEVEL_AI_SYSTEM_CATALOG.en.d.ts.map +1 -1
  597. package/dist/esm/i18n/components/LOW_LEVEL_AI_SYSTEM_CATALOG.en.js +4 -5
  598. package/dist/esm/i18n/components/LOW_LEVEL_AI_SYSTEM_CATALOG.en.js.map +1 -1
  599. package/dist/esm/i18n/components/LOW_LEVEL_AI_TASK_DETAIL.en.d.ts +4 -4
  600. package/dist/esm/i18n/components/LOW_LEVEL_AI_TASK_DETAIL.en.d.ts.map +1 -1
  601. package/dist/esm/i18n/components/LOW_LEVEL_AI_TASK_DETAIL.en.js +4 -4
  602. package/dist/esm/i18n/components/LOW_LEVEL_AI_TASK_DETAIL.en.js.map +1 -1
  603. package/dist/esm/i18n/components/LOW_LEVEL_AI_TASK_MEMORY.en.d.ts +2 -2
  604. package/dist/esm/i18n/components/LOW_LEVEL_AI_TASK_MEMORY.en.d.ts.map +1 -1
  605. package/dist/esm/i18n/components/LOW_LEVEL_AI_TASK_MEMORY.en.js +2 -2
  606. package/dist/esm/i18n/components/LOW_LEVEL_AI_TASK_MEMORY.en.js.map +1 -1
  607. package/dist/esm/i18n/components/LOW_LEVEL_AI_WEB_PREVIEW.en.d.ts +1 -1
  608. package/dist/esm/i18n/components/LOW_LEVEL_AI_WEB_PREVIEW.en.d.ts.map +1 -1
  609. package/dist/esm/i18n/components/LOW_LEVEL_AI_WEB_PREVIEW.en.js +1 -1
  610. package/dist/esm/i18n/components/LOW_LEVEL_AI_WEB_PREVIEW.en.js.map +1 -1
  611. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_INVOICE_HISTORY.en.d.ts +1 -0
  612. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_INVOICE_HISTORY.en.d.ts.map +1 -1
  613. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_INVOICE_HISTORY.en.js +2 -1
  614. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_INVOICE_HISTORY.en.js.map +1 -1
  615. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_PLAN_CHANGE_PREVIEW.en.d.ts +25 -0
  616. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_PLAN_CHANGE_PREVIEW.en.d.ts.map +1 -0
  617. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_PLAN_CHANGE_PREVIEW.en.js +25 -0
  618. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_PLAN_CHANGE_PREVIEW.en.js.map +1 -0
  619. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_PORTAL_LINK.en.d.ts +1 -0
  620. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_PORTAL_LINK.en.d.ts.map +1 -1
  621. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_PORTAL_LINK.en.js +2 -1
  622. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_PORTAL_LINK.en.js.map +1 -1
  623. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_PRICING_TABLE.en.d.ts +3 -2
  624. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_PRICING_TABLE.en.d.ts.map +1 -1
  625. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_PRICING_TABLE.en.js +4 -3
  626. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_PRICING_TABLE.en.js.map +1 -1
  627. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_SUBSCRIPTION_STATUS.en.d.ts +3 -2
  628. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_SUBSCRIPTION_STATUS.en.d.ts.map +1 -1
  629. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_SUBSCRIPTION_STATUS.en.js +4 -3
  630. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_SUBSCRIPTION_STATUS.en.js.map +1 -1
  631. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_USAGE_DASHBOARD.en.d.ts +3 -1
  632. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_USAGE_DASHBOARD.en.d.ts.map +1 -1
  633. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_USAGE_DASHBOARD.en.js +4 -2
  634. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_USAGE_DASHBOARD.en.js.map +1 -1
  635. package/dist/esm/i18n/components/LOW_LEVEL_BREADCRUMB.en.d.ts.map +1 -1
  636. package/dist/esm/i18n/components/LOW_LEVEL_BUTTON.en.d.ts.map +1 -1
  637. package/dist/esm/i18n/components/LOW_LEVEL_CAROUSEL.en.d.ts.map +1 -1
  638. package/dist/esm/i18n/components/LOW_LEVEL_CELEBRATION_OVERLAY.en.d.ts.map +1 -1
  639. package/dist/esm/i18n/components/LOW_LEVEL_COLOR_INPUT.en.d.ts +3 -3
  640. package/dist/esm/i18n/components/LOW_LEVEL_COLOR_INPUT.en.d.ts.map +1 -1
  641. package/dist/esm/i18n/components/LOW_LEVEL_COLOR_INPUT.en.js +3 -3
  642. package/dist/esm/i18n/components/LOW_LEVEL_COLOR_INPUT.en.js.map +1 -1
  643. package/dist/esm/i18n/components/LOW_LEVEL_COMMAND.en.d.ts +1 -1
  644. package/dist/esm/i18n/components/LOW_LEVEL_COMMAND.en.d.ts.map +1 -1
  645. package/dist/esm/i18n/components/LOW_LEVEL_COMMAND.en.js +1 -1
  646. package/dist/esm/i18n/components/LOW_LEVEL_COMMAND.en.js.map +1 -1
  647. package/dist/esm/i18n/components/LOW_LEVEL_CONTENT_SECTION_CONTAINER.en.d.ts +3 -3
  648. package/dist/esm/i18n/components/LOW_LEVEL_CONTENT_SECTION_CONTAINER.en.d.ts.map +1 -1
  649. package/dist/esm/i18n/components/LOW_LEVEL_CONTENT_SECTION_CONTAINER.en.js +3 -3
  650. package/dist/esm/i18n/components/LOW_LEVEL_CONTENT_SECTION_CONTAINER.en.js.map +1 -1
  651. package/dist/esm/i18n/components/LOW_LEVEL_DATETIME_RANGE_PICKER.en.d.ts +15 -0
  652. package/dist/esm/i18n/components/LOW_LEVEL_DATETIME_RANGE_PICKER.en.d.ts.map +1 -0
  653. package/dist/esm/i18n/components/LOW_LEVEL_DATETIME_RANGE_PICKER.en.js +15 -0
  654. package/dist/esm/i18n/components/LOW_LEVEL_DATETIME_RANGE_PICKER.en.js.map +1 -0
  655. package/dist/esm/i18n/components/LOW_LEVEL_DIALOG.en.d.ts.map +1 -1
  656. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_ADDRESS.en.d.ts +12 -0
  657. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_ADDRESS.en.d.ts.map +1 -0
  658. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_ADDRESS.en.js +12 -0
  659. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_ADDRESS.en.js.map +1 -0
  660. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_BIGDECIMAL.en.d.ts +1 -1
  661. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_BIGDECIMAL.en.d.ts.map +1 -1
  662. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_BIGDECIMAL.en.js +1 -1
  663. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_BIGDECIMAL.en.js.map +1 -1
  664. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_BOOLEAN.en.d.ts.map +1 -1
  665. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_CODE.en.d.ts +1 -1
  666. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_CODE.en.d.ts.map +1 -1
  667. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_CODE.en.js +1 -1
  668. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_CODE.en.js.map +1 -1
  669. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_DURATION.en.d.ts.map +1 -1
  670. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE.en.d.ts +4 -3
  671. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE.en.d.ts.map +1 -1
  672. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE.en.js +4 -3
  673. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE.en.js.map +1 -1
  674. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE_AUDIO.en.d.ts +1 -1
  675. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE_AUDIO.en.d.ts.map +1 -1
  676. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE_AUDIO.en.js +1 -1
  677. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE_AUDIO.en.js.map +1 -1
  678. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE_DOCUMENT.en.d.ts +3 -0
  679. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE_DOCUMENT.en.d.ts.map +1 -1
  680. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE_DOCUMENT.en.js +4 -1
  681. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE_DOCUMENT.en.js.map +1 -1
  682. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE_GALLERY.en.d.ts.map +1 -1
  683. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE_IMAGE.en.d.ts +1 -1
  684. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE_IMAGE.en.d.ts.map +1 -1
  685. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE_IMAGE.en.js +1 -1
  686. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE_IMAGE.en.js.map +1 -1
  687. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE_VIDEO.en.d.ts.map +1 -1
  688. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_MONEY.en.d.ts.map +1 -1
  689. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_PHONE.en.d.ts +1 -1
  690. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_PHONE.en.d.ts.map +1 -1
  691. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_PHONE.en.js +1 -1
  692. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_PHONE.en.js.map +1 -1
  693. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_RANGE_BIGDECIMAL.en.d.ts +1 -1
  694. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_RANGE_BIGDECIMAL.en.d.ts.map +1 -1
  695. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_RANGE_BIGDECIMAL.en.js +1 -1
  696. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_RANGE_BIGDECIMAL.en.js.map +1 -1
  697. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_RANGE_MONEY.en.d.ts +1 -1
  698. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_RANGE_MONEY.en.d.ts.map +1 -1
  699. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_RANGE_MONEY.en.js +1 -1
  700. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_RANGE_MONEY.en.js.map +1 -1
  701. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_RANGE_NUMBER.en.d.ts +1 -1
  702. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_RANGE_NUMBER.en.d.ts.map +1 -1
  703. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_RANGE_NUMBER.en.js +1 -1
  704. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_RANGE_NUMBER.en.js.map +1 -1
  705. package/dist/esm/i18n/components/LOW_LEVEL_DRAWER.en.d.ts +1 -1
  706. package/dist/esm/i18n/components/LOW_LEVEL_DRAWER.en.d.ts.map +1 -1
  707. package/dist/esm/i18n/components/LOW_LEVEL_DRAWER.en.js +1 -1
  708. package/dist/esm/i18n/components/LOW_LEVEL_DRAWER.en.js.map +1 -1
  709. package/dist/esm/i18n/components/LOW_LEVEL_DURATION.en.d.ts +22 -0
  710. package/dist/esm/i18n/components/LOW_LEVEL_DURATION.en.d.ts.map +1 -0
  711. package/dist/esm/i18n/components/LOW_LEVEL_DURATION.en.js +22 -0
  712. package/dist/esm/i18n/components/LOW_LEVEL_DURATION.en.js.map +1 -0
  713. package/dist/esm/i18n/components/LOW_LEVEL_ERROR_DISPLAY.en.d.ts +2 -2
  714. package/dist/esm/i18n/components/LOW_LEVEL_ERROR_DISPLAY.en.d.ts.map +1 -1
  715. package/dist/esm/i18n/components/LOW_LEVEL_ERROR_DISPLAY.en.js +2 -2
  716. package/dist/esm/i18n/components/LOW_LEVEL_ERROR_DISPLAY.en.js.map +1 -1
  717. package/dist/esm/i18n/components/LOW_LEVEL_FEATURE_LOCK_BADGE.en.d.ts.map +1 -1
  718. package/dist/esm/i18n/components/LOW_LEVEL_FEATURE_UNAVAILABLE_PROMPT.en.d.ts +6 -6
  719. package/dist/esm/i18n/components/LOW_LEVEL_FEATURE_UNAVAILABLE_PROMPT.en.d.ts.map +1 -1
  720. package/dist/esm/i18n/components/LOW_LEVEL_FEATURE_UNAVAILABLE_PROMPT.en.js +6 -6
  721. package/dist/esm/i18n/components/LOW_LEVEL_FEATURE_UNAVAILABLE_PROMPT.en.js.map +1 -1
  722. package/dist/esm/i18n/components/LOW_LEVEL_FILE_UPLOAD.en.d.ts +3 -3
  723. package/dist/esm/i18n/components/LOW_LEVEL_FILE_UPLOAD.en.d.ts.map +1 -1
  724. package/dist/esm/i18n/components/LOW_LEVEL_FILE_UPLOAD.en.js +3 -3
  725. package/dist/esm/i18n/components/LOW_LEVEL_FILE_UPLOAD.en.js.map +1 -1
  726. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD.en.d.ts +15 -8
  727. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD.en.d.ts.map +1 -1
  728. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD.en.js +16 -9
  729. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD.en.js.map +1 -1
  730. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_ADDRESS.en.d.ts +20 -0
  731. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_ADDRESS.en.d.ts.map +1 -0
  732. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_ADDRESS.en.js +20 -0
  733. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_ADDRESS.en.js.map +1 -0
  734. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_BOOLEAN.en.d.ts.map +1 -1
  735. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_CODE.en.d.ts +1 -1
  736. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_CODE.en.d.ts.map +1 -1
  737. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_CODE.en.js +1 -1
  738. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_CODE.en.js.map +1 -1
  739. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_FILE.en.d.ts +39 -20
  740. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_FILE.en.d.ts.map +1 -1
  741. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_FILE.en.js +39 -20
  742. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_FILE.en.js.map +1 -1
  743. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_PHONE.en.d.ts.map +1 -1
  744. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_STRING.en.d.ts.map +1 -1
  745. package/dist/esm/i18n/components/LOW_LEVEL_FORM_MESSAGE.en.d.ts +5 -5
  746. package/dist/esm/i18n/components/LOW_LEVEL_FORM_MESSAGE.en.d.ts.map +1 -1
  747. package/dist/esm/i18n/components/LOW_LEVEL_FORM_MESSAGE.en.js +5 -5
  748. package/dist/esm/i18n/components/LOW_LEVEL_FORM_MESSAGE.en.js.map +1 -1
  749. package/dist/esm/i18n/components/LOW_LEVEL_IMAGE_CROP.en.d.ts.map +1 -1
  750. package/dist/esm/i18n/components/LOW_LEVEL_LOADING_OVERLAY.en.d.ts.map +1 -1
  751. package/dist/esm/i18n/components/LOW_LEVEL_LOADING_SPINNER.en.d.ts.map +1 -1
  752. package/dist/esm/i18n/components/LOW_LEVEL_OPERATIONS_CONFIRM_CRITICAL.en.d.ts +1 -1
  753. package/dist/esm/i18n/components/LOW_LEVEL_OPERATIONS_CONFIRM_CRITICAL.en.d.ts.map +1 -1
  754. package/dist/esm/i18n/components/LOW_LEVEL_OPERATIONS_CONFIRM_CRITICAL.en.js +1 -1
  755. package/dist/esm/i18n/components/LOW_LEVEL_OPERATIONS_CONFIRM_CRITICAL.en.js.map +1 -1
  756. package/dist/esm/i18n/components/LOW_LEVEL_OVERLAY_CONTAINER.en.d.ts.map +1 -1
  757. package/dist/esm/i18n/components/LOW_LEVEL_PAGINATION.en.d.ts.map +1 -1
  758. package/dist/esm/i18n/components/LOW_LEVEL_PASSWORD_INPUT.en.d.ts +13 -0
  759. package/dist/esm/i18n/components/LOW_LEVEL_PASSWORD_INPUT.en.d.ts.map +1 -0
  760. package/dist/esm/i18n/components/LOW_LEVEL_PASSWORD_INPUT.en.js +13 -0
  761. package/dist/esm/i18n/components/LOW_LEVEL_PASSWORD_INPUT.en.js.map +1 -0
  762. package/dist/esm/i18n/components/LOW_LEVEL_RANGE_SLIDER.en.d.ts +13 -0
  763. package/dist/esm/i18n/components/LOW_LEVEL_RANGE_SLIDER.en.d.ts.map +1 -0
  764. package/dist/esm/i18n/components/LOW_LEVEL_RANGE_SLIDER.en.js +13 -0
  765. package/dist/esm/i18n/components/LOW_LEVEL_RANGE_SLIDER.en.js.map +1 -0
  766. package/dist/esm/i18n/components/LOW_LEVEL_SELECT_MULTIPLE.en.d.ts.map +1 -1
  767. package/dist/esm/i18n/components/LOW_LEVEL_SHEET.en.d.ts.map +1 -1
  768. package/dist/esm/i18n/components/LOW_LEVEL_SIDEBAR.en.d.ts +3 -3
  769. package/dist/esm/i18n/components/LOW_LEVEL_SIDEBAR.en.d.ts.map +1 -1
  770. package/dist/esm/i18n/components/LOW_LEVEL_SIDEBAR.en.js +3 -3
  771. package/dist/esm/i18n/components/LOW_LEVEL_SIDEBAR.en.js.map +1 -1
  772. package/dist/esm/i18n/components/LOW_LEVEL_TIME_RANGE_PICKER.en.d.ts +15 -0
  773. package/dist/esm/i18n/components/LOW_LEVEL_TIME_RANGE_PICKER.en.d.ts.map +1 -0
  774. package/dist/esm/i18n/components/LOW_LEVEL_TIME_RANGE_PICKER.en.js +15 -0
  775. package/dist/esm/i18n/components/LOW_LEVEL_TIME_RANGE_PICKER.en.js.map +1 -0
  776. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_AUTH_CALLBACK.en.d.ts +5 -3
  777. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_AUTH_CALLBACK.en.d.ts.map +1 -1
  778. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_AUTH_CALLBACK.en.js +6 -4
  779. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_AUTH_CALLBACK.en.js.map +1 -1
  780. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_ENROLLMENT_REQUIRED.en.d.ts +10 -9
  781. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_ENROLLMENT_REQUIRED.en.d.ts.map +1 -1
  782. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_ENROLLMENT_REQUIRED.en.js +11 -10
  783. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_ENROLLMENT_REQUIRED.en.js.map +1 -1
  784. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_FILE_UPLOAD_GRANT.en.d.ts.map +1 -1
  785. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_FILE_UPLOAD_GRANT.en.js.map +1 -1
  786. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_MAGIC_LINK_VERIFY.en.d.ts +5 -5
  787. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_MAGIC_LINK_VERIFY.en.d.ts.map +1 -1
  788. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_MAGIC_LINK_VERIFY.en.js +5 -5
  789. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_MAGIC_LINK_VERIFY.en.js.map +1 -1
  790. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_MFA_CHALLENGE.en.d.ts +6 -6
  791. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_MFA_CHALLENGE.en.d.ts.map +1 -1
  792. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_MFA_CHALLENGE.en.js +6 -6
  793. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_MFA_CHALLENGE.en.js.map +1 -1
  794. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_OAUTH_CONSENT.en.d.ts +7 -7
  795. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_OAUTH_CONSENT.en.d.ts.map +1 -1
  796. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_OAUTH_CONSENT.en.js +7 -7
  797. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_OAUTH_CONSENT.en.js.map +1 -1
  798. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_OAUTH_LOGGED_OUT.en.d.ts +1 -1
  799. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_OAUTH_LOGGED_OUT.en.d.ts.map +1 -1
  800. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_OAUTH_LOGGED_OUT.en.js +1 -1
  801. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_OAUTH_LOGGED_OUT.en.js.map +1 -1
  802. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_OAUTH_LOGOUT_CONFIRM.en.d.ts +1 -1
  803. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_OAUTH_LOGOUT_CONFIRM.en.d.ts.map +1 -1
  804. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_OAUTH_LOGOUT_CONFIRM.en.js +1 -1
  805. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_OAUTH_LOGOUT_CONFIRM.en.js.map +1 -1
  806. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_ONE_OFF_SESSION.en.d.ts +4 -4
  807. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_ONE_OFF_SESSION.en.d.ts.map +1 -1
  808. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_ONE_OFF_SESSION.en.js +4 -4
  809. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_ONE_OFF_SESSION.en.js.map +1 -1
  810. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_ORGANIZATION_ONBOARDING.en.d.ts +24 -0
  811. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_ORGANIZATION_ONBOARDING.en.d.ts.map +1 -0
  812. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_ORGANIZATION_ONBOARDING.en.js +24 -0
  813. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_ORGANIZATION_ONBOARDING.en.js.map +1 -0
  814. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_TERMS.en.d.ts +6 -4
  815. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_TERMS.en.d.ts.map +1 -1
  816. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_TERMS.en.js +6 -4
  817. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_TERMS.en.js.map +1 -1
  818. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_AUTH.en.d.ts +14 -10
  819. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_AUTH.en.d.ts.map +1 -1
  820. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_AUTH.en.js +14 -10
  821. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_AUTH.en.js.map +1 -1
  822. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_CONFIRM_EMAIL.en.d.ts +6 -6
  823. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_CONFIRM_EMAIL.en.d.ts.map +1 -1
  824. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_CONFIRM_EMAIL.en.js +6 -6
  825. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_CONFIRM_EMAIL.en.js.map +1 -1
  826. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_INVITATION.en.d.ts +11 -8
  827. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_INVITATION.en.d.ts.map +1 -1
  828. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_INVITATION.en.js +12 -9
  829. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_INVITATION.en.js.map +1 -1
  830. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_PASSWORD_LOST.en.d.ts +9 -8
  831. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_PASSWORD_LOST.en.d.ts.map +1 -1
  832. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_PASSWORD_LOST.en.js +9 -8
  833. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_PASSWORD_LOST.en.js.map +1 -1
  834. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_REGISTER.en.d.ts +25 -9
  835. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_REGISTER.en.d.ts.map +1 -1
  836. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_REGISTER.en.js +25 -9
  837. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_REGISTER.en.js.map +1 -1
  838. package/dist/esm/i18n/components/RESOURCES_FIELDS_RESOURCE_REFERENCE.en.d.ts +1 -1
  839. package/dist/esm/i18n/components/RESOURCES_FIELDS_RESOURCE_REFERENCE.en.d.ts.map +1 -1
  840. package/dist/esm/i18n/components/RESOURCES_FIELDS_RESOURCE_REFERENCE.en.js +1 -1
  841. package/dist/esm/i18n/components/RESOURCES_FIELDS_RESOURCE_REFERENCE.en.js.map +1 -1
  842. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_ACTION.en.d.ts +2 -2
  843. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_ACTION.en.d.ts.map +1 -1
  844. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_ACTION.en.js +2 -2
  845. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_ACTION.en.js.map +1 -1
  846. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_CONTAINER_NESTED.en.d.ts +1 -0
  847. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_CONTAINER_NESTED.en.d.ts.map +1 -1
  848. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_CONTAINER_NESTED.en.js +2 -1
  849. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_CONTAINER_NESTED.en.js.map +1 -1
  850. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_CREATE.en.d.ts +25 -24
  851. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_CREATE.en.d.ts.map +1 -1
  852. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_CREATE.en.js +26 -25
  853. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_CREATE.en.js.map +1 -1
  854. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_DANGER_ZONE.en.d.ts +1 -1
  855. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_DANGER_ZONE.en.d.ts.map +1 -1
  856. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_DANGER_ZONE.en.js +1 -1
  857. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_DANGER_ZONE.en.js.map +1 -1
  858. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_FILTERS.en.d.ts +3 -1
  859. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_FILTERS.en.d.ts.map +1 -1
  860. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_FILTERS.en.js +4 -2
  861. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_FILTERS.en.js.map +1 -1
  862. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_HEADER.en.d.ts +2 -2
  863. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_HEADER.en.d.ts.map +1 -1
  864. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_HEADER.en.js +2 -2
  865. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_HEADER.en.js.map +1 -1
  866. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_LIST.en.d.ts +11 -11
  867. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_LIST.en.d.ts.map +1 -1
  868. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_LIST.en.js +11 -11
  869. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_LIST.en.js.map +1 -1
  870. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_OPERATIONS_BULK.en.d.ts +1 -1
  871. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_OPERATIONS_BULK.en.d.ts.map +1 -1
  872. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_OPERATIONS_BULK.en.js +1 -1
  873. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_OPERATIONS_BULK.en.js.map +1 -1
  874. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_OPERATIONS_ITEMS.en.d.ts +12 -0
  875. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_OPERATIONS_ITEMS.en.d.ts.map +1 -1
  876. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_OPERATIONS_ITEMS.en.js +13 -1
  877. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_OPERATIONS_ITEMS.en.js.map +1 -1
  878. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_PAGINATION.en.d.ts.map +1 -1
  879. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_READ.en.d.ts +6 -6
  880. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_READ.en.d.ts.map +1 -1
  881. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_READ.en.js +6 -6
  882. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_READ.en.js.map +1 -1
  883. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_SEARCH.en.d.ts +2 -2
  884. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_SEARCH.en.d.ts.map +1 -1
  885. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_SEARCH.en.js +2 -2
  886. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_SEARCH.en.js.map +1 -1
  887. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_UPDATE.en.d.ts +2 -2
  888. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_UPDATE.en.d.ts.map +1 -1
  889. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_UPDATE.en.js +2 -2
  890. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_UPDATE.en.js.map +1 -1
  891. package/dist/esm/i18n/components/guidance_announcement.en.d.ts.map +1 -1
  892. package/dist/esm/i18n/components/guidance_banner.en.d.ts +1 -1
  893. package/dist/esm/i18n/components/guidance_banner.en.d.ts.map +1 -1
  894. package/dist/esm/i18n/components/guidance_banner.en.js +1 -1
  895. package/dist/esm/i18n/components/guidance_banner.en.js.map +1 -1
  896. package/dist/esm/i18n/components/guidance_card.en.d.ts.map +1 -1
  897. package/dist/esm/i18n/components/guidance_checklist.en.d.ts +2 -2
  898. package/dist/esm/i18n/components/guidance_checklist.en.d.ts.map +1 -1
  899. package/dist/esm/i18n/components/guidance_checklist.en.js +2 -2
  900. package/dist/esm/i18n/components/guidance_checklist.en.js.map +1 -1
  901. package/dist/esm/i18n/components/guidance_checklist_item.en.d.ts +1 -0
  902. package/dist/esm/i18n/components/guidance_checklist_item.en.d.ts.map +1 -1
  903. package/dist/esm/i18n/components/guidance_checklist_item.en.js +2 -1
  904. package/dist/esm/i18n/components/guidance_checklist_item.en.js.map +1 -1
  905. package/dist/esm/i18n/components/guidance_modal.en.d.ts.map +1 -1
  906. package/dist/esm/i18n/components/guidance_onboarding_view.en.d.ts +1 -1
  907. package/dist/esm/i18n/components/guidance_onboarding_view.en.d.ts.map +1 -1
  908. package/dist/esm/i18n/components/guidance_onboarding_view.en.js +1 -1
  909. package/dist/esm/i18n/components/guidance_onboarding_view.en.js.map +1 -1
  910. package/dist/esm/i18n/components/guidance_survey.en.d.ts +1 -0
  911. package/dist/esm/i18n/components/guidance_survey.en.d.ts.map +1 -1
  912. package/dist/esm/i18n/components/guidance_survey.en.js +2 -1
  913. package/dist/esm/i18n/components/guidance_survey.en.js.map +1 -1
  914. package/dist/esm/i18n/components/guidance_tooltip.en.d.ts.map +1 -1
  915. package/dist/esm/i18n/components/guidance_tour.en.d.ts.map +1 -1
  916. package/dist/esm/i18n/components/progression_achievement_badge.en.d.ts +1 -1
  917. package/dist/esm/i18n/components/progression_achievement_badge.en.d.ts.map +1 -1
  918. package/dist/esm/i18n/components/progression_achievement_badge.en.js +1 -1
  919. package/dist/esm/i18n/components/progression_achievement_badge.en.js.map +1 -1
  920. package/dist/esm/i18n/components/progression_milestone_tracker.en.d.ts +5 -1
  921. package/dist/esm/i18n/components/progression_milestone_tracker.en.d.ts.map +1 -1
  922. package/dist/esm/i18n/components/progression_milestone_tracker.en.js +6 -2
  923. package/dist/esm/i18n/components/progression_milestone_tracker.en.js.map +1 -1
  924. package/dist/esm/i18n/composite_views/app.creation-board.en.d.ts +0 -13
  925. package/dist/esm/i18n/composite_views/app.creation-board.en.d.ts.map +0 -1
  926. package/dist/esm/i18n/composite_views/app.creation-board.en.js.map +0 -1
  927. package/dist/esm/i18n/composite_views/app.creation-conversation.en.d.ts +17 -0
  928. package/dist/esm/i18n/composite_views/app.creation-conversation.en.d.ts.map +1 -0
  929. package/dist/esm/i18n/composite_views/app.creation-conversation.en.js +252 -0
  930. package/dist/esm/i18n/composite_views/app.creation-conversation.en.js.map +1 -0
  931. package/dist/esm/i18n/composite_views/app.creation-dossier.en.d.ts +15 -0
  932. package/dist/esm/i18n/composite_views/app.creation-dossier.en.d.ts.map +1 -0
  933. package/dist/esm/i18n/composite_views/app.creation-dossier.en.js +58 -0
  934. package/dist/esm/i18n/composite_views/app.creation-dossier.en.js.map +1 -0
  935. package/dist/esm/i18n/composite_views/app.domain-model.en.d.ts.map +1 -1
  936. package/dist/esm/i18n/errors_messages/errors-messages.en.d.ts +96 -0
  937. package/dist/esm/i18n/errors_messages/errors-messages.en.d.ts.map +1 -0
  938. package/dist/esm/i18n/errors_messages/errors-messages.en.js +54 -0
  939. package/dist/esm/i18n/errors_messages/errors-messages.en.js.map +1 -0
  940. package/dist/esm/i18n/index.d.ts.map +1 -1
  941. package/dist/esm/i18n/resources/wildoApplicationActorSystemExecutions.en.d.ts +2014 -1
  942. package/dist/esm/i18n/resources/wildoApplicationActorSystemExecutions.en.d.ts.map +1 -1
  943. package/dist/esm/i18n/resources/wildoApplicationActorSystemExecutions.en.js +516 -0
  944. package/dist/esm/i18n/resources/wildoApplicationActorSystemExecutions.en.js.map +1 -1
  945. package/dist/esm/i18n/resources/wildoApplicationActorTasks.en.d.ts +878 -8
  946. package/dist/esm/i18n/resources/wildoApplicationActorTasks.en.d.ts.map +1 -1
  947. package/dist/esm/i18n/resources/wildoApplicationActorTasks.en.js +247 -0
  948. package/dist/esm/i18n/resources/wildoApplicationActorTasks.en.js.map +1 -1
  949. package/dist/esm/i18n/resources/wildoApplicationFlowSystemExecutions.en.d.ts +504 -1
  950. package/dist/esm/i18n/resources/wildoApplicationFlowSystemExecutions.en.d.ts.map +1 -1
  951. package/dist/esm/i18n/resources/wildoApplicationFlowSystemExecutions.en.js +153 -0
  952. package/dist/esm/i18n/resources/wildoApplicationFlowSystemExecutions.en.js.map +1 -1
  953. package/dist/esm/i18n/resources/workbenchAspects.en.d.ts +78 -0
  954. package/dist/esm/i18n/resources/workbenchAspects.en.d.ts.map +1 -0
  955. package/dist/esm/i18n/resources/workbenchAspects.en.js +255 -0
  956. package/dist/esm/i18n/resources/workbenchAspects.en.js.map +1 -0
  957. package/dist/esm/i18n/resources/workbenchBuildDispatchPlan.en.d.ts +149 -0
  958. package/dist/esm/i18n/resources/workbenchBuildDispatchPlan.en.d.ts.map +1 -0
  959. package/dist/esm/i18n/resources/workbenchBuildDispatchPlan.en.js +79 -0
  960. package/dist/esm/i18n/resources/workbenchBuildDispatchPlan.en.js.map +1 -0
  961. package/dist/esm/i18n/resources/workbenchBuildDispatches.en.d.ts +89 -0
  962. package/dist/esm/i18n/resources/workbenchBuildDispatches.en.d.ts.map +1 -0
  963. package/dist/esm/i18n/resources/workbenchBuildDispatches.en.js +74 -0
  964. package/dist/esm/i18n/resources/workbenchBuildDispatches.en.js.map +1 -0
  965. package/dist/esm/i18n/resources/workbenchBuildPlanTasks.en.d.ts +70 -5
  966. package/dist/esm/i18n/resources/workbenchBuildPlanTasks.en.d.ts.map +1 -1
  967. package/dist/esm/i18n/resources/workbenchBuildPlanTasks.en.js +67 -0
  968. package/dist/esm/i18n/resources/workbenchBuildPlanTasks.en.js.map +1 -1
  969. package/dist/esm/i18n/resources/workbenchCodingLaneStatus.en.d.ts +80 -0
  970. package/dist/esm/i18n/resources/workbenchCodingLaneStatus.en.d.ts.map +1 -0
  971. package/dist/esm/i18n/resources/workbenchCodingLaneStatus.en.js +50 -0
  972. package/dist/esm/i18n/resources/workbenchCodingLaneStatus.en.js.map +1 -0
  973. package/dist/esm/i18n/resources/workbenchCreationHomeLines.en.d.ts +95 -0
  974. package/dist/esm/i18n/resources/workbenchCreationHomeLines.en.d.ts.map +1 -0
  975. package/dist/esm/i18n/resources/workbenchCreationHomeLines.en.js +54 -0
  976. package/dist/esm/i18n/resources/workbenchCreationHomeLines.en.js.map +1 -0
  977. package/dist/esm/i18n/resources/workbenchCreationOutcomes.en.d.ts +95 -0
  978. package/dist/esm/i18n/resources/workbenchCreationOutcomes.en.d.ts.map +1 -0
  979. package/dist/esm/i18n/resources/workbenchCreationOutcomes.en.js +51 -0
  980. package/dist/esm/i18n/resources/workbenchCreationOutcomes.en.js.map +1 -0
  981. package/dist/esm/i18n/resources/workbenchDomainResources.en.d.ts +1 -1
  982. package/dist/esm/i18n/resources/workbenchDomainResources.en.d.ts.map +1 -1
  983. package/dist/esm/i18n/resources/workbenchDomainResources.en.js +2 -2
  984. package/dist/esm/i18n/resources/workbenchDomainResources.en.js.map +1 -1
  985. package/dist/esm/i18n/resources/workbenchDossierEntries.en.d.ts +108 -0
  986. package/dist/esm/i18n/resources/workbenchDossierEntries.en.d.ts.map +1 -0
  987. package/dist/esm/i18n/resources/workbenchDossierEntries.en.js +61 -0
  988. package/dist/esm/i18n/resources/workbenchDossierEntries.en.js.map +1 -0
  989. package/dist/esm/i18n/resources/workbenchGovernanceDocuments.en.d.ts +99 -0
  990. package/dist/esm/i18n/resources/workbenchGovernanceDocuments.en.d.ts.map +1 -0
  991. package/dist/esm/i18n/resources/workbenchGovernanceDocuments.en.js +87 -0
  992. package/dist/esm/i18n/resources/workbenchGovernanceDocuments.en.js.map +1 -0
  993. package/dist/esm/i18n/resources/workbenchGovernanceQuestions.en.d.ts +121 -0
  994. package/dist/esm/i18n/resources/workbenchGovernanceQuestions.en.d.ts.map +1 -0
  995. package/dist/esm/i18n/resources/workbenchGovernanceQuestions.en.js +84 -0
  996. package/dist/esm/i18n/resources/workbenchGovernanceQuestions.en.js.map +1 -0
  997. package/dist/esm/i18n/resources/workbenchParkedCodingQuestions.en.d.ts +83 -0
  998. package/dist/esm/i18n/resources/workbenchParkedCodingQuestions.en.d.ts.map +1 -0
  999. package/dist/esm/i18n/resources/workbenchParkedCodingQuestions.en.js +71 -0
  1000. package/dist/esm/i18n/resources/workbenchParkedCodingQuestions.en.js.map +1 -0
  1001. package/dist/esm/i18n/resources/workbenchPlaybookRuns.en.d.ts +159 -0
  1002. package/dist/esm/i18n/resources/workbenchPlaybookRuns.en.d.ts.map +1 -0
  1003. package/dist/esm/i18n/resources/workbenchPlaybookRuns.en.js +103 -0
  1004. package/dist/esm/i18n/resources/workbenchPlaybookRuns.en.js.map +1 -0
  1005. package/dist/esm/i18n/resources/workbenchPlaybooks.en.d.ts +142 -6
  1006. package/dist/esm/i18n/resources/workbenchPlaybooks.en.d.ts.map +1 -1
  1007. package/dist/esm/i18n/resources/workbenchPlaybooks.en.js +103 -0
  1008. package/dist/esm/i18n/resources/workbenchPlaybooks.en.js.map +1 -1
  1009. package/dist/esm/i18n/resources/workbenchRunWriteRecords.en.d.ts +94 -4
  1010. package/dist/esm/i18n/resources/workbenchRunWriteRecords.en.d.ts.map +1 -1
  1011. package/dist/esm/i18n/resources/workbenchRunWriteRecords.en.js +79 -0
  1012. package/dist/esm/i18n/resources/workbenchRunWriteRecords.en.js.map +1 -1
  1013. package/dist/esm/i18n/resources/workbenchSpecificationArtifacts.en.d.ts +5074 -257
  1014. package/dist/esm/i18n/resources/workbenchSpecificationArtifacts.en.d.ts.map +1 -1
  1015. package/dist/esm/i18n/resources/workbenchSpecificationArtifacts.en.js +1201 -44
  1016. package/dist/esm/i18n/resources/workbenchSpecificationArtifacts.en.js.map +1 -1
  1017. package/dist/esm/i18n/resources/workbenchTraceSessions.en.d.ts +86 -3
  1018. package/dist/esm/i18n/resources/workbenchTraceSessions.en.d.ts.map +1 -1
  1019. package/dist/esm/i18n/resources/workbenchTraceSessions.en.js +90 -0
  1020. package/dist/esm/i18n/resources/workbenchTraceSessions.en.js.map +1 -1
  1021. package/dist/esm/i18n/resources/workbenchWaitingPlaybookRuns.en.d.ts +97 -0
  1022. package/dist/esm/i18n/resources/workbenchWaitingPlaybookRuns.en.d.ts.map +1 -0
  1023. package/dist/esm/i18n/resources/workbenchWaitingPlaybookRuns.en.js +77 -0
  1024. package/dist/esm/i18n/resources/workbenchWaitingPlaybookRuns.en.js.map +1 -0
  1025. package/dist/esm/i18n/system_enums/application-creation.en.d.ts +272 -0
  1026. package/dist/esm/i18n/system_enums/application-creation.en.d.ts.map +1 -0
  1027. package/dist/esm/i18n/system_enums/application-creation.en.js +319 -0
  1028. package/dist/esm/i18n/system_enums/application-creation.en.js.map +1 -0
  1029. package/dist/esm/i18n/system_enums/compliance-programme.en.d.ts +154 -0
  1030. package/dist/esm/i18n/system_enums/compliance-programme.en.d.ts.map +1 -0
  1031. package/dist/esm/i18n/system_enums/compliance-programme.en.js +154 -0
  1032. package/dist/esm/i18n/system_enums/compliance-programme.en.js.map +1 -0
  1033. package/dist/esm/i18n/system_enums/flows-actors.en.d.ts +54 -0
  1034. package/dist/esm/i18n/system_enums/flows-actors.en.d.ts.map +1 -0
  1035. package/dist/esm/i18n/system_enums/flows-actors.en.js +54 -0
  1036. package/dist/esm/i18n/system_enums/flows-actors.en.js.map +1 -0
  1037. package/dist/esm/i18n/system_enums/market.en.d.ts +12 -2
  1038. package/dist/esm/i18n/system_enums/market.en.d.ts.map +1 -1
  1039. package/dist/esm/i18n/system_enums/market.en.js +12 -2
  1040. package/dist/esm/i18n/system_enums/market.en.js.map +1 -1
  1041. package/dist/esm/i18n/system_enums/processor-register.en.d.ts +43 -0
  1042. package/dist/esm/i18n/system_enums/processor-register.en.d.ts.map +1 -0
  1043. package/dist/esm/i18n/system_enums/processor-register.en.js +43 -0
  1044. package/dist/esm/i18n/system_enums/processor-register.en.js.map +1 -0
  1045. package/dist/esm/i18n/system_enums/risk-register.en.d.ts +56 -0
  1046. package/dist/esm/i18n/system_enums/risk-register.en.d.ts.map +1 -0
  1047. package/dist/esm/i18n/system_enums/risk-register.en.js +56 -0
  1048. package/dist/esm/i18n/system_enums/risk-register.en.js.map +1 -0
  1049. package/dist/esm/i18n/system_enums/workbench-build.en.d.ts +50 -0
  1050. package/dist/esm/i18n/system_enums/workbench-build.en.d.ts.map +1 -0
  1051. package/dist/esm/i18n/system_enums/workbench-build.en.js +55 -0
  1052. package/dist/esm/i18n/system_enums/workbench-build.en.js.map +1 -0
  1053. package/dist/esm/i18n/system_enums/workbench-creation-home.en.d.ts +47 -0
  1054. package/dist/esm/i18n/system_enums/workbench-creation-home.en.d.ts.map +1 -0
  1055. package/dist/esm/i18n/system_enums/workbench-creation-home.en.js +48 -0
  1056. package/dist/esm/i18n/system_enums/workbench-creation-home.en.js.map +1 -0
  1057. package/dist/esm/i18n/system_enums/workbench-dossier.en.d.ts +18 -0
  1058. package/dist/esm/i18n/system_enums/workbench-dossier.en.d.ts.map +1 -0
  1059. package/dist/esm/i18n/system_enums/workbench-dossier.en.js +18 -0
  1060. package/dist/esm/i18n/system_enums/workbench-dossier.en.js.map +1 -0
  1061. package/dist/esm/i18n/system_enums/workbench-playbook-run.en.d.ts +29 -0
  1062. package/dist/esm/i18n/system_enums/workbench-playbook-run.en.d.ts.map +1 -0
  1063. package/dist/esm/i18n/system_enums/workbench-playbook-run.en.js +29 -0
  1064. package/dist/esm/i18n/system_enums/workbench-playbook-run.en.js.map +1 -0
  1065. package/dist/esm/i18n/system_enums/workbench-specification-artifact.en.d.ts +24 -0
  1066. package/dist/esm/i18n/system_enums/workbench-specification-artifact.en.d.ts.map +1 -0
  1067. package/dist/esm/i18n/system_enums/workbench-specification-artifact.en.js +24 -0
  1068. package/dist/esm/i18n/system_enums/workbench-specification-artifact.en.js.map +1 -0
  1069. package/dist/esm/i18n-labelling/models/labelling-unit.models.d.ts +51 -3
  1070. package/dist/esm/i18n-labelling/models/labelling-unit.models.d.ts.map +1 -1
  1071. package/dist/esm/i18n-labelling/models/labelling-unit.models.js +36 -2
  1072. package/dist/esm/i18n-labelling/models/labelling-unit.models.js.map +1 -1
  1073. package/dist/esm/i18n-labelling/models/labelling.actors-system.definitions.d.ts.map +1 -1
  1074. package/dist/esm/i18n-labelling/models/labelling.actors-system.definitions.js.map +1 -1
  1075. package/dist/esm/i18n-labelling/services/component-labels-bootstrap.companion.service.d.ts.map +1 -1
  1076. package/dist/esm/i18n-labelling/services/labelling-planner.companion.service.d.ts +26 -16
  1077. package/dist/esm/i18n-labelling/services/labelling-planner.companion.service.d.ts.map +1 -1
  1078. package/dist/esm/i18n-labelling/services/labelling-planner.companion.service.js +167 -40
  1079. package/dist/esm/i18n-labelling/services/labelling-planner.companion.service.js.map +1 -1
  1080. package/dist/esm/i18n-labelling/services/labelling-spec-context-loader.companion.service.d.ts +8 -8
  1081. package/dist/esm/i18n-labelling/services/labelling-spec-context-loader.companion.service.d.ts.map +1 -1
  1082. package/dist/esm/i18n-labelling/services/labelling-spec-context-loader.companion.service.js +45 -39
  1083. package/dist/esm/i18n-labelling/services/labelling-spec-context-loader.companion.service.js.map +1 -1
  1084. package/dist/esm/i18n-labelling/services/labellize-orchestrator.companion.service.d.ts +104 -0
  1085. package/dist/esm/i18n-labelling/services/labellize-orchestrator.companion.service.d.ts.map +1 -1
  1086. package/dist/esm/i18n-labelling/services/labellize-orchestrator.companion.service.js +456 -16
  1087. package/dist/esm/i18n-labelling/services/labellize-orchestrator.companion.service.js.map +1 -1
  1088. package/dist/esm/i18n-labelling/services/translate-orchestrator.companion.service.d.ts.map +1 -1
  1089. package/dist/esm/i18n-labelling/services/translate-orchestrator.companion.service.js +30 -1
  1090. package/dist/esm/i18n-labelling/services/translate-orchestrator.companion.service.js.map +1 -1
  1091. package/dist/esm/i18n-labelling/utils/application-tone-of-voice.utils.d.ts +91 -0
  1092. package/dist/esm/i18n-labelling/utils/application-tone-of-voice.utils.d.ts.map +1 -0
  1093. package/dist/esm/i18n-labelling/utils/application-tone-of-voice.utils.js +149 -0
  1094. package/dist/esm/i18n-labelling/utils/application-tone-of-voice.utils.js.map +1 -0
  1095. package/dist/esm/i18n-labelling/utils/declared-refusal-codes.utils.d.ts +27 -0
  1096. package/dist/esm/i18n-labelling/utils/declared-refusal-codes.utils.d.ts.map +1 -0
  1097. package/dist/esm/i18n-labelling/utils/declared-refusal-codes.utils.js +44 -0
  1098. package/dist/esm/i18n-labelling/utils/declared-refusal-codes.utils.js.map +1 -0
  1099. package/dist/esm/i18n-labelling/utils/frontend-derived-label-keys.utils.d.ts +27 -0
  1100. package/dist/esm/i18n-labelling/utils/frontend-derived-label-keys.utils.d.ts.map +1 -1
  1101. package/dist/esm/i18n-labelling/utils/frontend-derived-label-keys.utils.js +27 -0
  1102. package/dist/esm/i18n-labelling/utils/frontend-derived-label-keys.utils.js.map +1 -1
  1103. package/dist/esm/i18n-labelling/utils/guidance-keys.utils.d.ts +12 -0
  1104. package/dist/esm/i18n-labelling/utils/guidance-keys.utils.d.ts.map +1 -1
  1105. package/dist/esm/i18n-labelling/utils/guidance-keys.utils.js +58 -1
  1106. package/dist/esm/i18n-labelling/utils/guidance-keys.utils.js.map +1 -1
  1107. package/dist/esm/i18n-labelling/utils/label-file-source.utils.d.ts.map +1 -1
  1108. package/dist/esm/i18n-labelling/utils/label-file-source.utils.js +19 -0
  1109. package/dist/esm/i18n-labelling/utils/label-file-source.utils.js.map +1 -1
  1110. package/dist/esm/i18n-labelling/utils/label-placeholder-drift.utils.d.ts.map +1 -1
  1111. package/dist/esm/i18n-labelling/utils/label-placeholder-drift.utils.js.map +1 -1
  1112. package/dist/esm/i18n-labelling/utils/orphan-label-artifacts.utils.d.ts.map +1 -1
  1113. package/dist/esm/i18n-labelling/utils/orphan-label-artifacts.utils.js.map +1 -1
  1114. package/dist/esm/i18n-labelling/utils/per-unit-file.utils.d.ts.map +1 -1
  1115. package/dist/esm/i18n-labelling/utils/per-unit-file.utils.js +10 -0
  1116. package/dist/esm/i18n-labelling/utils/per-unit-file.utils.js.map +1 -1
  1117. package/dist/esm/i18n-labelling/utils/role-lifecycle-keys.utils.d.ts.map +1 -1
  1118. package/dist/esm/i18n-labelling/utils/schema-fields-extractor.utils.d.ts +27 -24
  1119. package/dist/esm/i18n-labelling/utils/schema-fields-extractor.utils.d.ts.map +1 -1
  1120. package/dist/esm/i18n-labelling/utils/schema-fields-extractor.utils.js +176 -136
  1121. package/dist/esm/i18n-labelling/utils/schema-fields-extractor.utils.js.map +1 -1
  1122. package/dist/esm/i18n-labelling/utils/structured-chunk-completion.utils.d.ts +11 -0
  1123. package/dist/esm/i18n-labelling/utils/structured-chunk-completion.utils.d.ts.map +1 -1
  1124. package/dist/esm/i18n-labelling/utils/structured-chunk-completion.utils.js +27 -3
  1125. package/dist/esm/i18n-labelling/utils/structured-chunk-completion.utils.js.map +1 -1
  1126. package/dist/esm/i18n-labelling/utils/translate-locale-contract.utils.d.ts.map +1 -1
  1127. package/dist/esm/index.d.ts.map +1 -1
  1128. package/dist/esm/market/services/market-generation.companion.service.d.ts.map +1 -1
  1129. package/dist/esm/meta-workflows/models/application-build.actors-system.definitions.d.ts +29 -0
  1130. package/dist/esm/meta-workflows/models/application-build.actors-system.definitions.d.ts.map +1 -0
  1131. package/dist/esm/meta-workflows/models/application-build.actors-system.definitions.js +59 -0
  1132. package/dist/esm/meta-workflows/models/application-build.actors-system.definitions.js.map +1 -0
  1133. package/dist/esm/meta-workflows/models/application-coding-agent.actors-system.definitions.d.ts +35 -0
  1134. package/dist/esm/meta-workflows/models/application-coding-agent.actors-system.definitions.d.ts.map +1 -1
  1135. package/dist/esm/meta-workflows/models/application-coding-agent.actors-system.definitions.js +69 -3
  1136. package/dist/esm/meta-workflows/models/application-coding-agent.actors-system.definitions.js.map +1 -1
  1137. package/dist/esm/meta-workflows/models/application-research-agent.actors-system.definitions.d.ts.map +1 -1
  1138. package/dist/esm/meta-workflows/models/application-research-agent.actors-system.definitions.js +6 -4
  1139. package/dist/esm/meta-workflows/models/application-research-agent.actors-system.definitions.js.map +1 -1
  1140. package/dist/esm/meta-workflows/models/brief-adequacy.actors-system.definitions.d.ts +1 -0
  1141. package/dist/esm/meta-workflows/models/brief-adequacy.actors-system.definitions.d.ts.map +1 -1
  1142. package/dist/esm/meta-workflows/models/brief-adequacy.actors-system.definitions.js +21 -0
  1143. package/dist/esm/meta-workflows/models/brief-adequacy.actors-system.definitions.js.map +1 -1
  1144. package/dist/esm/meta-workflows/models/build-task-rearm.models.d.ts +46 -0
  1145. package/dist/esm/meta-workflows/models/build-task-rearm.models.d.ts.map +1 -0
  1146. package/dist/esm/meta-workflows/models/build-task-rearm.models.js +43 -0
  1147. package/dist/esm/meta-workflows/models/build-task-rearm.models.js.map +1 -0
  1148. package/dist/esm/meta-workflows/models/carried-verification-failure.models.d.ts +34 -0
  1149. package/dist/esm/meta-workflows/models/carried-verification-failure.models.d.ts.map +1 -0
  1150. package/dist/esm/meta-workflows/models/carried-verification-failure.models.js +59 -0
  1151. package/dist/esm/meta-workflows/models/carried-verification-failure.models.js.map +1 -0
  1152. package/dist/esm/meta-workflows/models/composite-round-relaunch.models.d.ts +65 -0
  1153. package/dist/esm/meta-workflows/models/composite-round-relaunch.models.d.ts.map +1 -0
  1154. package/dist/esm/meta-workflows/models/composite-round-relaunch.models.js +83 -0
  1155. package/dist/esm/meta-workflows/models/composite-round-relaunch.models.js.map +1 -0
  1156. package/dist/esm/meta-workflows/models/meta-workflows-lane.models.d.ts +69 -7
  1157. package/dist/esm/meta-workflows/models/meta-workflows-lane.models.d.ts.map +1 -1
  1158. package/dist/esm/meta-workflows/models/meta-workflows-lane.models.js +70 -7
  1159. package/dist/esm/meta-workflows/models/meta-workflows-lane.models.js.map +1 -1
  1160. package/dist/esm/meta-workflows/models/meta-workflows.actors-system.definitions.d.ts.map +1 -1
  1161. package/dist/esm/meta-workflows/models/meta-workflows.actors-system.definitions.js +27 -5
  1162. package/dist/esm/meta-workflows/models/meta-workflows.actors-system.definitions.js.map +1 -1
  1163. package/dist/esm/meta-workflows/models/playbook-run-checkpoint.models.d.ts +208 -0
  1164. package/dist/esm/meta-workflows/models/playbook-run-checkpoint.models.d.ts.map +1 -0
  1165. package/dist/esm/meta-workflows/models/playbook-run-checkpoint.models.js +273 -0
  1166. package/dist/esm/meta-workflows/models/playbook-run-checkpoint.models.js.map +1 -0
  1167. package/dist/esm/meta-workflows/models/playbook-run-record.models.d.ts +356 -0
  1168. package/dist/esm/meta-workflows/models/playbook-run-record.models.d.ts.map +1 -0
  1169. package/dist/esm/meta-workflows/models/playbook-run-record.models.js +417 -0
  1170. package/dist/esm/meta-workflows/models/playbook-run-record.models.js.map +1 -0
  1171. package/dist/esm/meta-workflows/models/playbook-step-schema-namespaces.models.d.ts +14 -0
  1172. package/dist/esm/meta-workflows/models/playbook-step-schema-namespaces.models.d.ts.map +1 -0
  1173. package/dist/esm/meta-workflows/models/playbook-step-schema-namespaces.models.js +21 -0
  1174. package/dist/esm/meta-workflows/models/playbook-step-schema-namespaces.models.js.map +1 -0
  1175. package/dist/esm/meta-workflows/services/__tests__/application-build-task-coding.companion.test-fixtures.d.ts.map +1 -1
  1176. package/dist/esm/meta-workflows/services/__tests__/application-build-task-coding.companion.test-fixtures.js +3 -1
  1177. package/dist/esm/meta-workflows/services/__tests__/application-build-task-coding.companion.test-fixtures.js.map +1 -1
  1178. package/dist/esm/meta-workflows/services/__tests__/support/in-memory-actor-plane.d.ts +65 -0
  1179. package/dist/esm/meta-workflows/services/__tests__/support/in-memory-actor-plane.d.ts.map +1 -0
  1180. package/dist/esm/meta-workflows/services/__tests__/support/in-memory-actor-plane.js +148 -0
  1181. package/dist/esm/meta-workflows/services/__tests__/support/in-memory-actor-plane.js.map +1 -0
  1182. package/dist/esm/meta-workflows/services/application-build-dispatch.companion.service.d.ts +929 -51
  1183. package/dist/esm/meta-workflows/services/application-build-dispatch.companion.service.d.ts.map +1 -1
  1184. package/dist/esm/meta-workflows/services/application-build-dispatch.companion.service.js +2047 -146
  1185. package/dist/esm/meta-workflows/services/application-build-dispatch.companion.service.js.map +1 -1
  1186. package/dist/esm/meta-workflows/services/application-build-generation-step.companion.service.d.ts +115 -36
  1187. package/dist/esm/meta-workflows/services/application-build-generation-step.companion.service.d.ts.map +1 -1
  1188. package/dist/esm/meta-workflows/services/application-build-generation-step.companion.service.js +270 -47
  1189. package/dist/esm/meta-workflows/services/application-build-generation-step.companion.service.js.map +1 -1
  1190. package/dist/esm/meta-workflows/services/application-build-task-coding-policy.companion.service.d.ts +402 -16
  1191. package/dist/esm/meta-workflows/services/application-build-task-coding-policy.companion.service.d.ts.map +1 -1
  1192. package/dist/esm/meta-workflows/services/application-build-task-coding-policy.companion.service.js +1398 -70
  1193. package/dist/esm/meta-workflows/services/application-build-task-coding-policy.companion.service.js.map +1 -1
  1194. package/dist/esm/meta-workflows/services/application-maturity-executor.companion.service.d.ts +47 -0
  1195. package/dist/esm/meta-workflows/services/application-maturity-executor.companion.service.d.ts.map +1 -0
  1196. package/dist/esm/meta-workflows/services/application-maturity-executor.companion.service.js +103 -0
  1197. package/dist/esm/meta-workflows/services/application-maturity-executor.companion.service.js.map +1 -0
  1198. package/dist/esm/meta-workflows/services/build-plan-authoring.companion.service.d.ts +29 -0
  1199. package/dist/esm/meta-workflows/services/build-plan-authoring.companion.service.d.ts.map +1 -0
  1200. package/dist/esm/meta-workflows/services/build-plan-authoring.companion.service.js +88 -0
  1201. package/dist/esm/meta-workflows/services/build-plan-authoring.companion.service.js.map +1 -0
  1202. package/dist/esm/meta-workflows/services/capability-composition-executor.companion.service.d.ts +47 -0
  1203. package/dist/esm/meta-workflows/services/capability-composition-executor.companion.service.d.ts.map +1 -0
  1204. package/dist/esm/meta-workflows/services/capability-composition-executor.companion.service.js +102 -0
  1205. package/dist/esm/meta-workflows/services/capability-composition-executor.companion.service.js.map +1 -0
  1206. package/dist/esm/meta-workflows/services/creator-inputs.companion.service.d.ts +0 -0
  1207. package/dist/esm/meta-workflows/services/creator-inputs.companion.service.d.ts.map +0 -0
  1208. package/dist/esm/meta-workflows/services/creator-inputs.companion.service.js.map +0 -0
  1209. package/dist/esm/meta-workflows/services/dossier.companion.service.d.ts +81 -0
  1210. package/dist/esm/meta-workflows/services/dossier.companion.service.d.ts.map +1 -0
  1211. package/dist/esm/meta-workflows/services/dossier.companion.service.js +231 -0
  1212. package/dist/esm/meta-workflows/services/dossier.companion.service.js.map +1 -0
  1213. package/dist/esm/meta-workflows/services/engine-settings-destination-catalog.companion.d.ts +36 -0
  1214. package/dist/esm/meta-workflows/services/engine-settings-destination-catalog.companion.d.ts.map +1 -0
  1215. package/dist/esm/meta-workflows/services/engine-settings-destination-catalog.companion.js +72 -0
  1216. package/dist/esm/meta-workflows/services/engine-settings-destination-catalog.companion.js.map +1 -0
  1217. package/dist/esm/meta-workflows/services/execution-trace-read.companion.service.d.ts +82 -1
  1218. package/dist/esm/meta-workflows/services/execution-trace-read.companion.service.d.ts.map +1 -1
  1219. package/dist/esm/meta-workflows/services/execution-trace-read.companion.service.js +200 -31
  1220. package/dist/esm/meta-workflows/services/execution-trace-read.companion.service.js.map +1 -1
  1221. package/dist/esm/meta-workflows/services/external-authentication-brief.companion.utils.d.ts +16 -0
  1222. package/dist/esm/meta-workflows/services/external-authentication-brief.companion.utils.d.ts.map +1 -0
  1223. package/dist/esm/meta-workflows/services/external-authentication-brief.companion.utils.js +29 -0
  1224. package/dist/esm/meta-workflows/services/external-authentication-brief.companion.utils.js.map +1 -0
  1225. package/dist/esm/meta-workflows/services/foundation-executor.companion.service.d.ts +196 -1
  1226. package/dist/esm/meta-workflows/services/foundation-executor.companion.service.d.ts.map +1 -1
  1227. package/dist/esm/meta-workflows/services/foundation-executor.companion.service.js +380 -10
  1228. package/dist/esm/meta-workflows/services/foundation-executor.companion.service.js.map +1 -1
  1229. package/dist/esm/meta-workflows/services/landed-module-import.companion.d.ts +2 -0
  1230. package/dist/esm/meta-workflows/services/landed-module-import.companion.d.ts.map +1 -0
  1231. package/dist/esm/meta-workflows/services/landed-module-import.companion.js +36 -0
  1232. package/dist/esm/meta-workflows/services/landed-module-import.companion.js.map +1 -0
  1233. package/dist/esm/meta-workflows/services/playbook-execution-trace.companion.service.d.ts.map +1 -1
  1234. package/dist/esm/meta-workflows/services/playbook-run-write-register.companion.service.d.ts +57 -0
  1235. package/dist/esm/meta-workflows/services/playbook-run-write-register.companion.service.d.ts.map +1 -1
  1236. package/dist/esm/meta-workflows/services/playbook-run-write-register.companion.service.js +83 -3
  1237. package/dist/esm/meta-workflows/services/playbook-run-write-register.companion.service.js.map +1 -1
  1238. package/dist/esm/meta-workflows/services/playbook-run.companion.service.d.ts +949 -177
  1239. package/dist/esm/meta-workflows/services/playbook-run.companion.service.d.ts.map +1 -1
  1240. package/dist/esm/meta-workflows/services/playbook-run.companion.service.js +3151 -454
  1241. package/dist/esm/meta-workflows/services/playbook-run.companion.service.js.map +1 -1
  1242. package/dist/esm/meta-workflows/services/playbook-spend-meter.companion.service.d.ts +100 -0
  1243. package/dist/esm/meta-workflows/services/playbook-spend-meter.companion.service.d.ts.map +1 -0
  1244. package/dist/esm/meta-workflows/services/playbook-spend-meter.companion.service.js +156 -0
  1245. package/dist/esm/meta-workflows/services/playbook-spend-meter.companion.service.js.map +1 -0
  1246. package/dist/esm/meta-workflows/services/schema-plan-freshness-loop.companion.d.ts +49 -0
  1247. package/dist/esm/meta-workflows/services/schema-plan-freshness-loop.companion.d.ts.map +1 -0
  1248. package/dist/esm/meta-workflows/services/schema-plan-freshness-loop.companion.js +93 -0
  1249. package/dist/esm/meta-workflows/services/schema-plan-freshness-loop.companion.js.map +1 -0
  1250. package/dist/esm/meta-workflows/utils/unified-diff.companion.utils.d.ts +45 -0
  1251. package/dist/esm/meta-workflows/utils/unified-diff.companion.utils.d.ts.map +1 -0
  1252. package/dist/esm/meta-workflows/utils/unified-diff.companion.utils.js +145 -0
  1253. package/dist/esm/meta-workflows/utils/unified-diff.companion.utils.js.map +1 -0
  1254. package/dist/esm/technical-doc/services/technical-doc.companion.service.d.ts +33 -9
  1255. package/dist/esm/technical-doc/services/technical-doc.companion.service.d.ts.map +1 -1
  1256. package/dist/esm/technical-doc/services/technical-doc.companion.service.js +70 -29
  1257. package/dist/esm/technical-doc/services/technical-doc.companion.service.js.map +1 -1
  1258. package/dist/esm/technical-doc/services/technical-documentation-application-derivation.companion.service.d.ts +20 -5
  1259. package/dist/esm/technical-doc/services/technical-documentation-application-derivation.companion.service.d.ts.map +1 -1
  1260. package/dist/esm/technical-doc/services/technical-documentation-application-derivation.companion.service.js +38 -16
  1261. package/dist/esm/technical-doc/services/technical-documentation-application-derivation.companion.service.js.map +1 -1
  1262. package/dist/esm/technical-doc/services/technical-documentation-environment-identity.companion.service.d.ts.map +1 -1
  1263. package/dist/esm/technical-doc/services/technical-documentation-pilot-assets.companion.service.d.ts.map +1 -1
  1264. package/dist/esm/technical-doc/services/technical-documentation-pilot.companion.service.d.ts.map +1 -1
  1265. package/dist/esm/technical-doc/services/technical-documentation-pilot.companion.service.js.map +1 -1
  1266. package/package.json +18 -18
  1267. package/dist/esm/i18n/composite_views/app.creation-board.en.js +0 -91
  1268. package/dist/esm/meta-workflows/services/playbook-choreography-checkpoint.companion.service.d.ts +0 -92
  1269. package/dist/esm/meta-workflows/services/playbook-choreography-checkpoint.companion.service.d.ts.map +0 -1
  1270. package/dist/esm/meta-workflows/services/playbook-choreography-checkpoint.companion.service.js +0 -178
  1271. package/dist/esm/meta-workflows/services/playbook-choreography-checkpoint.companion.service.js.map +0 -1
  1272. package/dist/esm/meta-workflows/services/playbook-suspended-run.companion.service.d.ts +0 -107
  1273. package/dist/esm/meta-workflows/services/playbook-suspended-run.companion.service.d.ts.map +0 -1
  1274. package/dist/esm/meta-workflows/services/playbook-suspended-run.companion.service.js +0 -188
  1275. package/dist/esm/meta-workflows/services/playbook-suspended-run.companion.service.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"coding-agent-dispatch.companion.service.js","sourceRoot":"","sources":["../../../../src/claude-cli/services/coding-agent-dispatch.companion.service.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmDG;;;;;;;;;;;;;AAEH,OAAO,EAAE,UAAU,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,GAAG,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAChF,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAEnD,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AAC/C,OAAO,EACL,oBAAoB,EACpB,0BAA0B,EAC1B,aAAa,EACb,kBAAkB,EAClB,wBAAwB,EACxB,mBAAmB,GACpB,MAAM,4BAA4B,CAAC;AACpC,OAAO,EACL,iBAAiB,EAEjB,2BAA2B,EAC3B,SAAS,EACT,uBAAuB,EACvB,kBAAkB,EAClB,mBAAmB,GAGpB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAKL,mCAAmC,EACnC,sBAAsB,GAIvB,MAAM,sCAAsC,CAAC;AAC9C,OAAO,EACL,mCAAmC,GAEpC,MAAM,oDAAoD,CAAC;AAC5D,OAAO,EACL,4BAA4B,IAAI,gCAAgC,EAChE,qBAAqB,GACtB,MAAM,+BAA+B,CAAC;AAEvC,OAAO,EAAE,sCAAsC,EAAE,MAAM,gCAAgC,CAAC;AACxF,OAAO,EAAE,uBAAuB,EAAE,MAAM,wCAAwC,CAAC;AAKjF,OAAO,EAAE,0BAA0B,EAAE,uBAAuB,EAAE,MAA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ACpB,QAAQ,GAAG,MAAM,CAAC;IACpB,CAAC,CAAC,CAAC;IACH,OAAO;QACL,OAAO;QACP,OAAO,EAAE,CAAC,KAAK,EAAE,EAAE;YACjB,IAAI,OAAO;gBAAE,OAAO;YACpB,OAAO,GAAG,IAAI,CAAC;YACf,SAAS,CAAC,KAAK,CAAC,CAAC;QACnB,CAAC;QACD,MAAM,EAAE,CAAC,KAAK,EAAE,EAAE;YAChB,IAAI,OAAO;gBAAE,OAAO;YACpB,OAAO,GAAG,IAAI,CAAC;YACf,QAAQ,CAAC,KAAK,CAAC,CAAC;QAClB,CAAC;KACF,CAAC;AACJ,CAAC","sourcesContent":["/**\n * Application coding-task host — the typed Flows/Actors coding path.\n *\n * `runApplicationCodingTask` admits one typed `ApplicationCodingTaskContract`\n * (the episode runtime's coding revision owner is the caller), renders its\n * prompt from the sealed contract, creates an `Actors_Task` row, spawns the\n * Claude CLI in the background against the application worktree, captures\n * a read-only git change set with per-file attribution, runs the contract's\n * registered verification checks, then PATCHes the task with status/output/\n * artifacts. One admission never spans the multi-minute run (P-16) —\n * callers await the settlement or poll `/tasks/actors/:taskId`. The raw\n * `POST /coding-agent/dispatch` endpoint (caller-composed prompt) was\n * deleted at the first-activation hard cut.\n *\n * # Locking & recursion cap (P-20 / P-19b / P-35)\n *\n * Runs are single-flight, serialized by a cross-process lock on the\n * dedicated target `<saasRoot>/.wildo-saas/state/workspace-mutation.lock`\n * (`withDedicatedFileLock` from `@wildo-ai/platform-config-lib`,\n * proper-lockfile pattern — an in-memory mutex alone is forbidden because\n * the CLI mutates the same worktree from other processes). An in-memory\n * flag fronts the lock for fast 409s. The lock is held for the WHOLE run.\n *\n * The P-35 recursion cap falls out structurally: a dispatched run that\n * calls dispatch (it has shell access and can read the machine-local\n * token) always finds the lock held by ITS OWN run and is rejected 409 —\n * a dispatched run can never dispatch. Deliberately, the lock does NOT\n * gate Paul's parallel sessions (P-19b): CLAUDE.md forbids session\n * coordination; per-file attribution is the compensation, not exclusion.\n *\n * # Traceability (P-21)\n *\n * L2 runs dispatch through `AgentsBackendService.invokeAgent`, so they DO\n * reach the engine `AgentCallTraceSink` (on success and on failure, gated by\n * the agent-traceability policy and silent when no sink is bound) and they DO\n * run through the provider's Bottleneck limiter, which `executeAgentViaACP`\n * schedules the session on. The pre-ACP direct claude-cli lane bypassed both;\n * that is history, not the current shape. Two things still do not come free:\n * a NONE policy level or an unbound sink means no engine trace at all, so this\n * service also owns its companion-traceability events (DEBUG) and artifacts\n * (DEBUG_VERBOSE). The background phase runs under an INTERNAL trace session\n * (`createInternalSession`) because the HTTP request session ends at the\n * 202-style response.\n *\n * # Run limits (P-18)\n *\n * Defaults 30 min / 10 MiB; request-overridable up to hard caps\n * 60 min / 32 MiB. The byte cap REJECTS (kills the run), it does not\n * truncate. Args stay `--print` + `--model` (no extraArgs field), prompt\n * on stdin, env = `{ PATH, HOME, SHELL, TERM }` (composed inside\n * the ACP session runner).\n */\n\nimport { isAbsolute, join, normalize, relative, sep, dirname } from 'node:path';\nimport { existsSync, realpathSync } from 'node:fs';\n\nimport { inject, injectable } from 'inversify';\nimport {\n AgentsBackendService,\n ErrorBuilderBackendService,\n LoggerService,\n SAAS_SERVICE_TYPES,\n executeBoundedSubprocess,\n describeCaughtError,\n} from '@wildo-ai/saas-backend-lib';\nimport {\n Actor_Task_Topics,\n type AgentTraceContext,\n ErrorCustomMessageReference,\n ErrorType,\n FlowsActors_IO_PartKind,\n FlowsActors_Status,\n isWildoBackendError,\n type ArtifactInstance,\n type FlowsActors_Agent_Invocation,\n} from '@wildo-ai/saas-models';\nimport {\n CodingAgent_EndOfTurnClassification,\n CodingAgent_OperationContext_BaseSchema,\n CodingAgent_RunTaskInputSchema,\n CodingAgent_RunTaskOutputSchema,\n CodingAgent_SessionSuspensionSchema,\n CodingAgent_StopReason,\n type CodingAgent_RunTaskOutput,\n type CodingAgent_SessionSuspension,\n type CodingAgent_Usage,\n} from '@wildo-ai/external-connectors-models';\nimport {\n ApplicationCodingTaskContractSchema,\n type ApplicationCodingTaskContract,\n} from '@wildo-ai/saas-specifications/application-creation';\nimport {\n getWorkspaceMutationLockPath as resolveWorkspaceMutationLockPath,\n withDedicatedFileLock,\n} from '@wildo-ai/platform-config-lib';\n\nimport { sanitizeWorkbenchCreationPlaneIdentity } from '@wildo-ai/platform-core-shared';\nimport { COMPANION_SERVICE_TYPES } from '../../core/inject/models/service-types';\nimport type { CompanionContext } from '../../core/context/companion-context';\nimport type {\n CompanionExecutionSessionContext,\n} from '../../core/traceability/companion-traceability.models';\nimport { CompanionTraceabilityLevel, CompanionTraceAliasKind } from '../../core/traceability/companion-traceability.models';\nimport { CompanionTraceabilityService } from '../../core/traceability/companion-traceability.service';\nimport { CompanionIntrospectionService } from '../../core/introspection/services/companion-introspection.companion.service';\nimport { CompanionExecutionsCompanionService } from '../../executions/services/companion-executions.companion.service';\nimport {\n CompanionCreateActorTaskRequestSchema,\n CompanionUpdateActorTaskRequestSchema,\n type CompanionCodingAgentStatusResponse,\n} from '../../companion-api/companion-api.schemas';\nimport { GitChangeSetCompanionService, isConcurrentHostLanePath } from './git-change-set.companion.service';\nimport {\n APPLICATION_CODING_AGENT_REF,\n APPLICATION_CODING_TURN_CLASSIFIER_AGENT_REF,\n CodingTurnEndClassificationOutputSchema,\n APPLICATION_CODING_AGENT_REFS,\n isApplicationCodingAgentRef,\n resolveSelectedApplicationCodingAgentBinding,\n} from '../../meta-workflows/models/application-coding-agent.actors-system.definitions';\nimport {\n ChangeSetAttributionClass,\n ApplicationCodingTaskDisposition,\n type ApplicationCodingTaskRunAdmission,\n type ApplicationCodingTaskVerificationPlan,\n DISPATCH_DEFAULT_MAX_CAPTURED_BYTES,\n DISPATCH_DEFAULT_TIMEOUT_MS,\n DISPATCH_HARD_MAX_CAPTURED_BYTES,\n DISPATCH_HARD_MAX_TIMEOUT_MS,\n VerificationKind,\n renderApplicationCodingTaskAgentPrompt,\n resolveApplicationCodingTaskVerificationPlans,\n type GitChangeSetCapture,\n type GitWorktreeSnapshot,\n} from '../models/coding-agent-dispatch.models';\n\n/** Fixed, non-overridable limits for the verification hook subprocess. */\nconst VERIFICATION_TIMEOUT_MS = 10 * 60_000;\nconst VERIFICATION_MAX_CAPTURED_BYTES = 10 * 1024 * 1024;\n\n\n/**\n * The session frames worth retaining on the durable row: what the agent DID and\n * what it changed. Message chunks are already summarised by the output tail, and\n * usage frames are superseded by the recorded totals.\n */\nconst RETAINED_CODING_SESSION_EVENT_KINDS: ReadonlySet<string> = new Set(['tool_call', 'tool_call_update', 'plan']);\n/** Ceiling on retained frames — a bound, not a sample: excess is dropped, never summarised. */\nconst RETAINED_CODING_SESSION_FRAME_LIMIT = 200;\n\n/** Tail size persisted on the task row; full streams go to traceability artifacts. */\nconst OUTPUT_TAIL_CHARS = 16_000;\n\ntype DispatchedTaskRow = Awaited<\n ReturnType<CompanionExecutionsCompanionService['createActorTask']>\n>;\n\ninterface ActiveRunState {\n taskId: string;\n startedAt: string;\n /** Cancels the in-flight coding session. Cooperative first, kill second. */\n abortController: AbortController;\n}\n\n/**\n * A run that PARKED on a genuine question, retained in memory so the operator's\n * answer can resume the SAME agent session with the task's full context.\n *\n * In-process only, by design: the agent persists the session on disk (so\n * `session/load` could resume it after a restart), but the task CONTRACT — the\n * mutation scope the resume must still be held to, the verification plan, the\n * original baseline the final change set is measured against — lives here. A\n * companion restart therefore drops the answerable state, which surfaces as a\n * typed refusal rather than a resume that has forgotten the task's bounds.\n */\nexport interface ParkedCodingSessionState {\n readonly durableTask: DispatchedTaskRow;\n readonly task: ApplicationCodingTaskContract;\n readonly verificationPlans: readonly ApplicationCodingTaskVerificationPlan[];\n readonly baseline: GitWorktreeSnapshot;\n readonly suspension: CodingAgent_SessionSuspension;\n readonly parkedAt: string;\n}\n\n/** Local narrow: is this an indexable object (not null, not an array)? */\nfunction isRecordValue(value: unknown): value is Record<string, unknown> {\n return typeof value === 'object' && value !== null && !Array.isArray(value);\n}\n\n/** One live frame relayed to an SSE subscriber: an agent event or a ladder state change. */\nexport interface CodingSessionLiveFrame {\n readonly channel: 'event' | 'state';\n readonly payload: unknown;\n}\n\ninterface VerificationOutcome {\n kind: VerificationKind;\n path: string | null;\n success: boolean;\n message: string;\n stdoutTail: string;\n stderrTail: string;\n}\n\n/** Result of checking every attributed changed-during-run file against the sealed task scope. */\ninterface ApplicationCodingTaskScopeAssessment {\n allowed: boolean;\n violatingPaths: string[];\n /**\n * A commit landed inside the run window, so this window's attribution is\n * INCOMPLETE: a commit empties the dirty set every other class here is\n * computed from, and a parallel session's commit is indistinguishable from\n * the agent's own.\n *\n * RECORDED, NOT REFUSED — decided 2026-08-19, and the reasoning is the same\n * rule the plan applies to every other strictness in this vertical: exactness\n * is retained where a protected, accepted-state or real-effect consumer needs\n * it, and nowhere else. A coding run produces a WORKING result; it mutates no\n * accepted truth. Refusing the whole run here bought no protection of\n * anything accepted, while on a shared tree with parallel sessions ANY commit\n * overlapping ANY run — including one touching nothing the agent touched —\n * failed that run, with no worktree isolation to fall back on (ruled out for\n * this application) and no remedy a single session can enforce.\n *\n * What replaces the refusal is visibility that a consumer cannot miss: the\n * committed paths are recovered into the change set as\n * `COMMITTED_DURING_RUN`, and this flag rides on the recorded result. The\n * OBLIGATION moves with it — whatever later accepts this working result must\n * treat `historyMutated` as attribution it cannot rely on, and must not\n * promote it without review. That is the acceptance tier's job, which is\n * where exactness belongs.\n */\n historyMutated: boolean;\n}\n\n/**\n * Scope checking is deliberately based on the post-run attribution capture,\n * not only clean-baseline files. A baseline-dirty file changed again during a\n * run is not safely attributable to the Agent, but it is still a real effect\n * inside the host window and must not be used to bypass a declared boundary.\n */\nfunction assessApplicationCodingTaskMutationScope(\n changeSet: GitChangeSetCapture,\n allowedPrefixes: readonly string[],\n prohibitedPrefixes: readonly string[],\n): ApplicationCodingTaskScopeAssessment {\n const normalizedAllowed = allowedPrefixes.map(normalizeApplicationRelativePrefix);\n const normalizedProhibited = prohibitedPrefixes.map(normalizeApplicationRelativePrefix);\n /*\n * Committed paths are deliberately EXCLUDED from the scope decision. They are\n * present in `changeSet.files` (as `COMMITTED_DURING_RUN`) so nothing is\n * invisible, but nobody can attribute them: a parallel session's commit and\n * the agent's own look identical from here, so refusing on them would fail\n * runs for other people's work. `historyMutated` carries that fact forward\n * instead, and the acceptance tier decides what an unattributable window is\n * worth.\n */\n /*\n * A disappearance is only a VIOLATION when the run can be held responsible for it, and a commit\n * landing inside the window is precisely when it cannot.\n *\n * `disappearedFromBaseline` is \"dirty at baseline, no longer dirty post-run\", which has two\n * causes that look identical from here: the agent reverted or deleted the file (attributable,\n * and a real boundary breach if the path is out of scope), or a commit emptied the dirty set\n * (not attributable — a parallel session's commit and the agent's own are indistinguishable,\n * which is the exact reasoning the `COMMITTED_DURING_RUN` exclusion above already applies).\n *\n * Including them unconditionally made the two treatments contradict each other: the committed\n * PATHS were excluded as unattributable while the disappearance THAT SAME COMMIT CAUSED was\n * used to fail the run. Measured 2026-08-28 on wonder-crm — a run that stopped cleanly at\n * `end_turn`, honoured every permission decision and wrote NOTHING (`runExclusive: 0`,\n * `appearedDuringRun: 0`) was recorded `mutation_scope_violation` against 13 engine paths it\n * never touched, because a human committed at 17:47:56 and 17 baseline-dirty files left the\n * set. The field's own contract already said they \"are NOT attributed change-set entries\".\n *\n * So the exclusion is conditional, not blanket: with no commit in the window a disappearance\n * IS the run's doing and still fails it. Only the case the run cannot be responsible for is\n * dropped, and it stays visible — the paths remain on `disappearedFromBaseline`, and\n * `historyMutated` tells the acceptance tier the window is unattributable.\n */\n const disappearancesAttributableToTheRun = changeSet.headMovedDuringRun\n ? []\n : changeSet.disappearedFromBaseline;\n\n /*\n * A CONCURRENT_HOST_LANE path is excluded for the same reason a committed one\n * is, and the exclusion is applied in the same place for the same reason: it\n * belongs to a companion lane that runs INSIDE this window and is not this\n * run's to write. The research dispatch takes no workspace-mutation lock by\n * design — it mutates nothing but its own evidence store — and that store is\n * committable and therefore fully visible here, so before this filter one\n * `POST /api/companion/research` overlapping a coding run failed the coding\n * run as `MUTATION_SCOPE_VIOLATION` against files it never touched.\n *\n * Both halves are filtered, and the second is easy to miss: an entry carries\n * an attribution class, while a DISAPPEARANCE is a bare path — so the\n * disappearance of an evidence file a research round rewrote or deleted would\n * still have failed the run. One predicate answers both (its own contract\n * says why it is exported).\n */\n const violatingPaths = [\n ...changeSet.files\n .filter((entry) => entry.attribution !== ChangeSetAttributionClass.COMMITTED_DURING_RUN\n && entry.attribution !== ChangeSetAttributionClass.CONCURRENT_HOST_LANE)\n .map((entry) => entry.path),\n ...disappearancesAttributableToTheRun.filter((path) => !isConcurrentHostLanePath(path)),\n ]\n .filter((path) => {\n const normalizedPath = normalizeApplicationRelativePrefix(path);\n const inAllowedScope = normalizedAllowed.some((prefix) => matchesApplicationRelativePrefix(normalizedPath, prefix));\n const inProhibitedScope = normalizedProhibited.some((prefix) => matchesApplicationRelativePrefix(normalizedPath, prefix));\n return !inAllowedScope || inProhibitedScope;\n });\n return {\n // `historyMutated` does NOT gate admissibility (see the field's contract):\n // it is recorded so the consumer of this working result can see that the\n // window is unattributable, not used to fail a run that protected nothing.\n allowed: violatingPaths.length === 0,\n violatingPaths,\n historyMutated: changeSet.headMovedDuringRun,\n };\n}\n\n/**\n * The LIVE counterpart of {@link assessApplicationCodingTaskMutationScope}:\n * decides, while the agent is still running, whether one absolute path is\n * inside the task's declared mutation scope.\n *\n * Deliberately reuses the SAME normalisation and boundary matching as the\n * post-hoc assessment. Two predicates answering \"is this path in scope?\" with\n * different rules would produce the worst possible outcome — a run permitted\n * live and then judged a scope violation afterwards, or the reverse.\n *\n * It NARROWS and never widens: the permission ceiling still decides the KIND of\n * operation, and this only refuses a path that ceiling would otherwise allow.\n * A path outside the workspace is refused outright rather than reasoned about.\n */\nexport function buildApplicationCodingTaskLocationPredicate(\n workspaceRootPath: string,\n allowedPrefixes: readonly string[],\n prohibitedPrefixes: readonly string[],\n): (absolutePath: string) => boolean {\n const normalizedAllowed = allowedPrefixes.map(normalizeApplicationRelativePrefix);\n const normalizedProhibited = prohibitedPrefixes.map(normalizeApplicationRelativePrefix);\n\n /*\n * Compare against BOTH the configured root and its physical realpath.\n *\n * Agents report CANONICAL absolute paths. Measured live on 2026-08-27: with a\n * workspace under `/var/folders/...` (a macOS symlink to `/private/var/...`),\n * the agent's permission request named the `/private/...` form while the\n * configured root was the `/var/...` form, so an IN-SCOPE edit was refused and\n * the run reported the agent declining to do its job. A scope predicate that\n * silently denies everything is worse than one that denies nothing, because\n * it looks like the agent failing rather than the guard misfiring.\n */\n const candidateRoots = [workspaceRootPath];\n try {\n const physicalRoot = realpathSync.native(workspaceRootPath);\n if (physicalRoot !== workspaceRootPath) {\n candidateRoots.push(physicalRoot);\n }\n } catch {\n // An unresolvable root is left as authored; the relative check below still\n // refuses anything outside it.\n }\n\n return (absolutePath: string): boolean => {\n if (!isAbsolute(absolutePath)) {\n return false;\n }\n const relativePath = candidateRoots\n .map((root) => relative(root, absolutePath))\n .find((candidate) => candidate && !candidate.startsWith('..') && !isAbsolute(candidate));\n if (!relativePath) {\n return false;\n }\n const normalizedPath = normalizeApplicationRelativePrefix(relativePath.split(sep).join('/'));\n const inAllowedScope = normalizedAllowed.some((prefix) => matchesApplicationRelativePrefix(normalizedPath, prefix));\n const inProhibitedScope = normalizedProhibited.some((prefix) => matchesApplicationRelativePrefix(normalizedPath, prefix));\n return inAllowedScope && !inProhibitedScope;\n };\n}\n\nfunction normalizeApplicationRelativePrefix(value: string): string {\n return value.replace(/\\\\/g, '/').replace(/^\\.\\//, '').replace(/\\/+$/, '');\n}\n\n/** Prefix matches require a path boundary: `src/app` does not admit `src/application`. */\nfunction matchesApplicationRelativePrefix(path: string, prefix: string): boolean {\n return path === prefix || path.startsWith(`${prefix}/`);\n}\n\n@injectable()\nexport class CodingAgentDispatchCompanionService {\n private readonly logDebug: (message: string, context?: Record<string, unknown>) => void;\n\n /**\n * In-memory single-flight flag — the FAST 409 in front of the\n * cross-process lockfile, never a replacement for it (P-20).\n */\n private activeRun: ActiveRunState | null = null;\n /**\n * Per-process settlement signal of every application coding task THIS\n * process admitted: resolved when the background run has recorded its\n * terminal durable result (or given up trying). This is the \"owner's\n * completion hook\" the episode driver waits on instead of polling the\n * Actor Task row; a task admitted by a previous process has no entry here,\n * which is correct — restart reconciliation already terminalized it.\n */\n private readonly applicationCodingTaskSettlements = new Map<string, { readonly promise: Promise<void>; resolve(): void }>();\n\n /**\n * Tasks parked on a question, keyed by task id — the answerable set. A task\n * enters here when a run returns a `suspension` and leaves when it is answered\n * (resumed) or explicitly abandoned. See {@link ParkedCodingSessionState}.\n */\n private readonly parkedCodingSessions = new Map<string, ParkedCodingSessionState>();\n\n /**\n * Live-frame subscribers keyed by task id. Fed by the coding session's own\n * event stream and the ladder's state transitions while a run is active;\n * drained by the SSE endpoint. Best-effort throughout — a slow or throwing\n * subscriber never touches the run it observes.\n */\n private readonly codingSessionSubscribers = new Map<string, Set<(frame: CodingSessionLiveFrame) => void>>();\n\n constructor(\n @inject(SAAS_SERVICE_TYPES.Logger)\n private readonly logger: LoggerService,\n @inject(SAAS_SERVICE_TYPES.ErrorBuilderService)\n private readonly errorBuilder: ErrorBuilderBackendService,\n @inject(COMPANION_SERVICE_TYPES.CompanionContext)\n private readonly companionContext: CompanionContext,\n @inject(SAAS_SERVICE_TYPES.AgentsBackendService)\n private readonly agentsService: AgentsBackendService,\n @inject(COMPANION_SERVICE_TYPES.GitChangeSetService)\n private readonly gitChangeSetService: GitChangeSetCompanionService,\n @inject(COMPANION_SERVICE_TYPES.ExecutionsService)\n private readonly executionsService: CompanionExecutionsCompanionService,\n @inject(COMPANION_SERVICE_TYPES.TraceabilityService)\n private readonly traceabilityService: CompanionTraceabilityService,\n @inject(COMPANION_SERVICE_TYPES.IntrospectionService)\n private readonly introspectionService: CompanionIntrospectionService,\n ) {\n this.logDebug = this.logger.debugByType('CodingAgentDispatchCompanionService');\n this.logger.setDebugTypeLogging('CodingAgentDispatchCompanionService', true);\n }\n\n /**\n * Admit one application-authored coding task onto the normal Flows/Actors\n * Claude Code path — the ONLY coding entry since the raw dispatch endpoint\n * was deleted at the first-activation hard cut. This method accepts only the\n * sealed typed task produced by application composition. The returned\n * acknowledgement is intentionally non-terminal; a completed Actor Task\n * records a working code result and its evidence, never accepted\n * application truth.\n */\n public async runApplicationCodingTask(\n rawTask: ApplicationCodingTaskContract,\n sessionContext?: CompanionExecutionSessionContext,\n ): Promise<ApplicationCodingTaskRunAdmission> {\n /*\n * Both admission refusals below are TYPED.\n *\n * A malformed contract surfaced as a raw `ZodError` and an unregistered\n * check ref as a plain `Error`, so the two refusals a caller can actually\n * provoke reached the transport as unclassified failures and answered 500\n * INTERNAL — indistinguishable from the host being broken. They are\n * VALIDATION: the request is refused, nothing was locked, created or run.\n */\n const task = this.admitTypedInput(\n () => ApplicationCodingTaskContractSchema.parse(rawTask),\n 'Application coding task contract is not valid.',\n );\n // Resolve before acquiring the lock or creating a task. A semantic check\n // name is not a command and cannot silently fall back to an arbitrary\n // workspace typecheck.\n const verificationPlans = this.admitTypedInput(\n () => resolveApplicationCodingTaskVerificationPlans(task.verificationIntent.requiredChecks),\n 'Application coding task names an unregistered verification check.',\n );\n const traceStep = this.createOperationTraceStep(sessionContext, 'application-coding-task-admission');\n const renderedPrompt = renderApplicationCodingTaskAgentPrompt(task);\n await this.traceOperationStart({\n sessionContext,\n step: traceStep,\n type: 'application-coding-task-admission-start',\n summary: `Admit application coding task ${task.taskRef}`,\n payload: this.buildApplicationCodingTaskTraceSummary(task),\n artifactFileName: 'application-coding-task-input.txt',\n artifactContent: renderedPrompt,\n });\n\n if (this.activeRun) {\n throw this.buildDispatchConflictError(\n `A coding-agent run is already active (task ${this.activeRun.taskId}, started ${this.activeRun.startedAt}). `\n + 'Application coding tasks share the same cross-process mutation lock.',\n );\n }\n\n const admission = createDeferred<{ task: DispatchedTaskRow; baseline: GitWorktreeSnapshot }>();\n const backgroundRun = withDedicatedFileLock(\n this.getWorkspaceMutationLockPath(),\n async () => {\n let admitted: { task: DispatchedTaskRow; baseline: GitWorktreeSnapshot };\n try {\n const baseline = await this.gitChangeSetService.captureWorktreeSnapshot();\n const durableTask = await this.createApplicationCodingTask(task, baseline, sessionContext);\n this.activeRun = {\n taskId: durableTask._id,\n startedAt: new Date().toISOString(),\n abortController: new AbortController(),\n };\n admitted = { task: durableTask, baseline };\n // Registered BEFORE the admission is resolved, so a caller that\n // awaits the settlement right after admission can never miss it.\n const settlement = createDeferred<void>();\n this.applicationCodingTaskSettlements.set(durableTask._id, { promise: settlement.promise, resolve: () => settlement.resolve(undefined) });\n admission.resolve(admitted);\n } catch (error) {\n admission.reject(error);\n return;\n }\n\n try {\n await this.executeApplicationCodingTask(task, renderedPrompt, verificationPlans, admitted.task, admitted.baseline);\n } finally {\n this.activeRun = null;\n this.applicationCodingTaskSettlements.get(admitted.task._id)?.resolve();\n }\n },\n { retries: { retries: 0 } },\n );\n backgroundRun.catch((error: unknown) => {\n admission.reject(this.mapLockError(error));\n this.logDebug('Application coding-task background run chain terminated with error', {\n error: describeCaughtError(error),\n taskRef: task.taskRef,\n });\n });\n\n const admitted = await admission.promise;\n const response: ApplicationCodingTaskRunAdmission = {\n taskId: admitted.task._id,\n status: FlowsActors_Status.PROCESSING,\n taskRef: task.taskRef,\n baselineHeadSha: admitted.baseline.headSha,\n baselineDirtyFileCount: Object.keys(admitted.baseline.files).length,\n };\n await this.traceOperationSuccess({\n sessionContext,\n step: traceStep,\n type: 'application-coding-task-admission-success',\n summary: `Admitted application coding task ${task.taskRef} as Actor Task ${admitted.task._id}`,\n payload: response,\n artifactFileName: 'application-coding-task-admission.json',\n artifactContent: response,\n });\n return response;\n }\n\n /**\n * The settlement of one application coding task admitted by THIS process:\n * resolves once its terminal durable result has been recorded (success or\n * failure) — the only moment a waiting episode can read a non-PROCESSING\n * row. `null` for a task this process did not admit (a previous process's\n * row, already terminalized by restart reconciliation, or an unknown id):\n * there is nothing to wait for, and a caller must not spin on it.\n */\n public awaitApplicationCodingTaskSettlement(taskId: string): Promise<void> | null {\n return this.applicationCodingTaskSettlements.get(taskId)?.promise ?? null;\n }\n\n /**\n * Reconcile only a previous process's unfinished application-coding rows.\n *\n * A companion restart cannot prove the previous Claude Code subprocess is\n * still running. Retrying could duplicate a worktree mutation, while\n * reverting would destroy evidence. The safe v0 result is therefore a\n * terminal physical abort plus an explicit human-review disposition. Root\n * wires this method into ordinary startup in a later, separately reviewed\n * join; this source slice never invokes it automatically.\n */\n public async reconcileInterruptedApplicationCodingTasks(\n sessionContext?: CompanionExecutionSessionContext,\n ): Promise<{ reconciledTaskIds: string[] }> {\n const processingTasks = await this.executionsService.listActorTasks({\n status: FlowsActors_Status.PROCESSING,\n limit: 200,\n }, sessionContext);\n const reconciledTaskIds: string[] = [];\n\n for (const task of processingTasks) {\n // MEMBERSHIP, not equality with one constant: with a second declared coding\n // agent, equality silently skips every task addressed to it — a task never\n // claimed and never reported, which is worse than one that fails loudly.\n if (!isApplicationCodingAgentRef(task.actors?.actorRef)) continue;\n /*\n * A PARKED task is deliberately PROCESSING with no live child — its agent process is already\n * closed and the answer resumes the persisted session via `session/load`. That is the ONE\n * PROCESSING shape a restart must NOT terminalize: surviving the restart is the suspension's\n * whole design (`reconstructParkedCodingTaskForResume` re-selects it from the build plan).\n * Measured 2026-09-04, first live park on a restart: this sweep terminalized the parked row\n * and nulled its suspension three seconds before the operator's answer arrived, so the\n * restart-durability door refused with \"no coding task is awaiting an answer\". Only a FRESH,\n * RESUMABLE suspension is exempt — an expired `parkedUntil`, or an agent that cannot\n * `session/load`, leaves a question nobody can answer on the same session, and terminalizing\n * it for review is then the honest outcome.\n */\n const parkedOutput = (task as { output?: { disposition?: unknown; suspension?: unknown } }).output;\n if (parkedOutput?.disposition === ApplicationCodingTaskDisposition.AWAITING_OPERATOR_INPUT) {\n const parsedSuspension = CodingAgent_SessionSuspensionSchema.safeParse(parkedOutput.suspension);\n const stillAnswerable = parsedSuspension.success\n && parsedSuspension.data.resumable\n && Date.parse(parsedSuspension.data.parkedUntil) > Date.now();\n if (stillAnswerable) continue;\n }\n let currentSnapshot: GitWorktreeSnapshot | null = null;\n let captureError: unknown = null;\n try {\n currentSnapshot = await this.gitChangeSetService.captureWorktreeSnapshot();\n } catch (error) {\n captureError = error;\n }\n\n const updatePayload = CompanionUpdateActorTaskRequestSchema.parse({\n status: FlowsActors_Status.ABORTED,\n output: {\n succeeded: false,\n disposition: ApplicationCodingTaskDisposition.INTERRUPTED_REQUIRES_REVIEW,\n recoveryEvidence: currentSnapshot\n ? {\n headSha: currentSnapshot.headSha,\n dirtyFileCount: Object.keys(currentSnapshot.files).length,\n capturedAt: currentSnapshot.capturedAt,\n }\n : null,\n ...(captureError ? { recoveryCaptureError: buildOutputErrorPayload(captureError) } : {}),\n },\n });\n await this.executionsService.updateActorTask(task._id, updatePayload, sessionContext);\n reconciledTaskIds.push(task._id);\n }\n\n return { reconciledTaskIds };\n }\n\n /**\n * Readiness snapshot for the status route. HONESTY CONTRACT: the\n * underlying `isAvailable()` checks ONLY that the provider registry\n * exposes an AGENT_CLIENT_PROTOCOL contract for anthropic — it does NOT\n * guarantee the ACP adapter is installed, spawnable, or authenticated. A\n * `true` here can still be followed by a spawn/auth failure at run time.\n */\n /**\n * The cross-process workspace-mutation lock path (P-19b) — one lock for\n * every mutating coding run against this application worktree.\n */\n public getWorkspaceMutationLockPath(): string {\n return resolveWorkspaceMutationLockPath(this.companionContext.saasRoot);\n }\n\n /**\n * Cancel the in-flight coding run, if there is one.\n *\n * Cooperative by construction: this signals the session, and the runner sends\n * `session/cancel` and waits before killing anything. The run therefore\n * TERMINALISES NORMALLY — with stop reason `cancelled` and a captured change\n * set — rather than vanishing. That distinction is the whole point: an\n * operator who stops a run still needs to know what it had already written.\n *\n * Returns the task that was asked to stop, or `null` when nothing is running.\n * Idempotent: cancelling an already-cancelled run signals an aborted\n * controller again, which is a no-op.\n */\n public cancelActiveApplicationCodingTask(): { taskId: string; startedAt: string } | null {\n const active = this.activeRun;\n if (!active) {\n return null;\n }\n this.logDebug('Cancelling active application coding task', { taskId: active.taskId });\n active.abortController.abort();\n return { taskId: active.taskId, startedAt: active.startedAt };\n }\n\n public getStatus(): CompanionCodingAgentStatusResponse {\n return {\n // Reports a fact this service can actually establish: whether the coding\n // agent is registered. It deliberately does NOT claim the transport is\n // usable — that depends on the provider configuration and on an agent\n // process this service has not started, and a status field that overstates\n // its knowledge is worse than one that is narrow about it.\n // Every declared agent must resolve, not merely the default: a registry\n // missing the SELECTED agent reports healthy while dispatch refuses.\n codingAgentRegistered: APPLICATION_CODING_AGENT_REFS.every(\n (ref) => this.agentsService.getAgent(ref) !== undefined,\n ),\n activeRun: this.activeRun ? { taskId: this.activeRun.taskId, startedAt: this.activeRun.startedAt } : null,\n // The answerable set: what is parked waiting for an operator response.\n pendingQuestions: this.listPendingCodingQuestions(),\n limits: {\n defaultTimeoutMs: DISPATCH_DEFAULT_TIMEOUT_MS,\n hardMaxTimeoutMs: DISPATCH_HARD_MAX_TIMEOUT_MS,\n defaultMaxCapturedBytes: DISPATCH_DEFAULT_MAX_CAPTURED_BYTES,\n hardMaxCapturedBytes: DISPATCH_HARD_MAX_CAPTURED_BYTES,\n },\n lockFilePath: this.getWorkspaceMutationLockPath(),\n };\n }\n\n /**\n * Persist only replayable task identity and guard evidence, never\n * prompt/context bytes.\n *\n * CORRELATION BACK TO THE EPISODE runs through `input.candidateRef`, which is\n * the assessment episode's working-subject identity for the iteration that\n * composed this task — the same value the private checkpoint carries as\n * `basis.episode.candidateRef`. It is recorded here deliberately so the join\n * exists in BOTH directions: the checkpoint names the taskId once the task is\n * admitted, and this row names the candidate that caused it, so an auditor\n * starting from a workspace mutation can reach the episode without scanning\n * every checkpoint.\n *\n * A dedicated `episodeRef` column is NOT added: no caller supplies one yet\n * (the coding revision owner lands later), and a field with no producer is a\n * dormant surface that later readers mistake for a guarantee. The candidate\n * ref is exact per ITERATION, which is the granularity an auditor wants.\n */\n private async createApplicationCodingTask(\n task: ApplicationCodingTaskContract,\n baseline: GitWorktreeSnapshot,\n sessionContext?: CompanionExecutionSessionContext,\n ): Promise<DispatchedTaskRow> {\n const payload = CompanionCreateActorTaskRequestSchema.parse({\n title: `Application coding task ${task.taskRef}`,\n /* The cross-plane join key — the board's build-plan row this task executes (Phase 4, R5). */\n workbenchBuildPlanTaskId: sanitizeWorkbenchCreationPlaneIdentity(task.taskRef),\n description: `Typed application coding task for ${task.objectiveRef}; acceptance remains outside the coding host.`,\n topic: Actor_Task_Topics.IMPLEMENTATION,\n status: FlowsActors_Status.PROCESSING,\n // The SELECTED agent, resolved once at creation and carried on the row —\n // so a task records which agent it was addressed to, and a selection\n // changed between creation and claim cannot silently redirect it.\n actors: { actorRef: resolveSelectedApplicationCodingAgentBinding().ref },\n input: {\n taskRef: task.taskRef,\n objectiveRef: task.objectiveRef,\n candidateRef: task.candidateRef,\n mutationScope: task.mutationScope,\n contextPlan: {\n planRef: task.contextPlan.planRef,\n objectiveRef: task.contextPlan.objectiveRef,\n },\n contextSelection: {\n planRef: task.contextSelection.planRef,\n selectedSourceRefs: task.contextSelection.selectedSources.map((source) => source.sourceRef),\n selectedSourceCount: task.contextSelection.selectedSources.length,\n },\n verificationIntent: task.verificationIntent,\n installedSkillRefs: task.installedSkillRefs,\n baseline: {\n headSha: baseline.headSha,\n dirtyFileCount: Object.keys(baseline.files).length,\n capturedAt: baseline.capturedAt,\n },\n },\n context: {},\n startedAt: new Date().toISOString(),\n });\n return this.executionsService.createActorTask(payload, sessionContext);\n }\n\n /**\n * Executes the normal Agent invocation and lands the full working-result\n * evidence. This method runs inside the worktree lock and therefore is the\n * sole typed path allowed to observe its own before/after Git boundary.\n */\n private async executeApplicationCodingTask(\n task: ApplicationCodingTaskContract,\n renderedPrompt: string,\n verificationPlans: readonly ApplicationCodingTaskVerificationPlan[],\n durableTask: DispatchedTaskRow,\n baseline: GitWorktreeSnapshot,\n /**\n * Present when this run ANSWERS a parked question rather than starting the\n * task: the agent session is resumed by id via `session/load` and the answer\n * is delivered as the next turn. The task's mutation scope, verification plan\n * and original baseline are unchanged — the resume is held to exactly the\n * bounds the first run was.\n */\n resume?: { readonly continuationOfSessionId: string; readonly answerPrompt: string },\n ): Promise<void> {\n let runSession: CompanionExecutionSessionContext | undefined;\n let runStep: ReturnType<CompanionTraceabilityService['createStep']> | undefined;\n const traceabilityErrors: unknown[] = [];\n const traceBestEffort = async (operation: string, write: () => Promise<void>): Promise<void> => {\n try {\n await write();\n } catch (error) {\n // Traceability is required evidence, but it must not become a control\n // flow escape that leaves the durable task PROCESSING after possible\n // source changes. The final task row records this failure and remains\n // visibly non-accepted for explicit follow-up.\n traceabilityErrors.push(error);\n this.logger.error('Application coding-task trace operation failed', {\n taskId: durableTask._id,\n taskRef: task.taskRef,\n operation,\n error: describeCaughtError(error),\n });\n }\n };\n await traceBestEffort('initialize-session', async () => {\n runSession = this.traceabilityService.createInternalSession({\n label: 'application-coding-task-run',\n metadata: { taskId: durableTask._id, taskRef: task.taskRef },\n });\n if (!runSession) return;\n await this.traceabilityService.registerAlias(runSession, CompanionTraceAliasKind.ACTOR_TASK, durableTask._id);\n runStep = this.createOperationTraceStep(runSession, 'application-coding-task-run');\n });\n const traceContext: AgentTraceContext = {\n label: `application-coding-task:${task.taskRef}`,\n attributes: {\n taskId: durableTask._id,\n taskRef: task.taskRef,\n objectiveRef: task.objectiveRef,\n candidateRef: task.candidateRef,\n },\n };\n const invocation: FlowsActors_Agent_Invocation<\n typeof CodingAgent_RunTaskInputSchema,\n typeof CodingAgent_RunTaskOutputSchema,\n typeof CodingAgent_OperationContext_BaseSchema\n > = {\n agentRef: APPLICATION_CODING_AGENT_REF,\n initiator: {},\n invocationContext: [],\n // A resume delivers the operator's ANSWER as the turn and re-enters the\n // parked session; a first run delivers the rendered task.\n input: resume\n ? { prompt: resume.answerPrompt, continuationOfSessionId: resume.continuationOfSessionId }\n : { prompt: renderedPrompt },\n output: { finalMessage: '', stopReason: CodingAgent_StopReason.END_TURN },\n executionContext: { callTimestamp: new Date().toISOString() },\n artifactBindings: [],\n };\n\n const startedAtMs = Date.now();\n let runError: unknown = null;\n let agentOutput = '';\n let codingUsage: CodingAgent_Usage | undefined;\n let codingDeniedPermissionCount: number | undefined;\n let codingPermissionDecisions: CodingAgent_RunTaskOutput['permissionDecisions'];\n let agentStopReason: CodingAgent_StopReason | undefined;\n /*\n * Counted in full, RETAINED in part.\n *\n * The previous shape pushed every notification into an unbounded array and\n * then persisted only its length — so a 30-minute run grew memory the\n * process never read, and the tool-call and diff frames (the reason to\n * observe a session at all) were collected and discarded. Now the count is a\n * counter, and only the frames a reader would actually open are retained, up\n * to a fixed ceiling.\n */\n let codingSessionEventCount = 0;\n const retainedCodingSessionFrames: Array<{ readonly kind: string; readonly payload: unknown }> = [];\n await traceBestEffort('record-start', () => this.traceOperationStart({\n sessionContext: runSession,\n step: runStep,\n type: 'application-coding-task-run-start',\n summary: `Run application coding task ${task.taskRef}`,\n payload: this.buildApplicationCodingTaskTraceSummary(task),\n artifactFileName: 'application-coding-task-input.txt',\n artifactContent: renderedPrompt,\n }));\n try {\n const response = await this.agentsService.invokeAgent(\n invocation,\n traceContext,\n {\n workspaceRootPath: this.companionContext.saasRoot,\n // Hold the agent to the task's declared scope WHILE it runs, not only\n // in the change set afterwards. The post-hoc assessment stays — it is\n // the authoritative record, because an agent can write a file it never\n // asked permission for — but a refusal in the moment is the only one\n // that prevents the write rather than reporting it.\n isPermittedCodingLocation: buildApplicationCodingTaskLocationPredicate(\n this.companionContext.saasRoot,\n task.mutationScope.allowedPathPrefixes,\n task.mutationScope.prohibitedPathPrefixes,\n ),\n onCodingSessionEvent: (event) => {\n codingSessionEventCount += 1;\n if (\n retainedCodingSessionFrames.length < RETAINED_CODING_SESSION_FRAME_LIMIT\n && RETAINED_CODING_SESSION_EVENT_KINDS.has(event.kind)\n ) {\n retainedCodingSessionFrames.push(event);\n }\n this.publishCodingSessionFrame(durableTask._id, { channel: 'event', payload: event });\n },\n // The JUDGMENT half of the interactive lane: classify each end-of-turn\n // message so the engine ladder can auto-continue a self-pause and park\n // a genuine question. The engine fails OPEN if this throws, so a\n // classifier fault degrades to \"the turn is complete\" rather than\n // hanging the run — this method may therefore throw freely.\n classifyCodingTurnEnd: (input) => this.classifyCodingTurnEnd(input),\n onCodingSessionStateChange: (state) => {\n this.publishCodingSessionFrame(durableTask._id, { channel: 'state', payload: state });\n },\n ...(this.activeRun ? { codingSessionAbortSignal: this.activeRun.abortController.signal } : {}),\n },\n );\n const codingOutput = response.output as Partial<CodingAgent_RunTaskOutput> | undefined;\n // The agent runtime publishes provider-learned facts on `executionContext`.\n codingUsage = (response.executionContext as { usage?: CodingAgent_Usage } | undefined)?.usage;\n codingDeniedPermissionCount = codingOutput?.deniedPermissionCount;\n codingPermissionDecisions = codingOutput?.permissionDecisions;\n const text = codingOutput?.finalMessage;\n agentStopReason = codingOutput?.stopReason;\n // A PARKED run stopped WITHOUT finishing to ask the operator a question.\n // Its `finalMessage` is the question and its partial edits are NOT a final\n // change set — so it must skip assessment, verification and the\n // terminal disposition entirely, and instead record an answerable,\n // non-terminal state. Handled here, before the CANCELLED/empty checks,\n // because a question is a non-empty END_TURN message that would otherwise\n // read as a completed working result.\n if (codingOutput?.suspension) {\n await this.recordParkedApplicationCodingTask({\n task,\n verificationPlans,\n durableTask,\n baseline,\n suspension: codingOutput.suspension,\n output: codingOutput,\n usage: codingUsage,\n codingSessionEventCount,\n retainedCodingSessionFrames,\n startedAtMs,\n runSession,\n runStep,\n traceBestEffort,\n });\n return;\n }\n // A CANCELLED turn is not a completed one, and its partial change set must\n // not be read as a working result. Refused here rather than downstream so\n // the disposition names the actual reason.\n if (agentStopReason === CodingAgent_StopReason.CANCELLED) {\n throw new Error('Application coding Agent turn was cancelled before it completed.');\n }\n if (typeof text !== 'string' || text.trim().length === 0) {\n throw new Error('Application coding Agent returned no final message.');\n }\n agentOutput = text;\n } catch (error) {\n runError = error;\n }\n\n let changeSet: GitChangeSetCapture | null = null;\n let captureError: unknown = null;\n try {\n changeSet = await this.gitChangeSetService.captureChangeSet(baseline);\n } catch (error) {\n captureError = error;\n }\n\n const scopeAssessment = changeSet\n ? assessApplicationCodingTaskMutationScope(changeSet, task.mutationScope.allowedPathPrefixes, task.mutationScope.prohibitedPathPrefixes)\n : null;\n /*\n * Did Wildo's IN-FLIGHT guards actually run for this agent?\n *\n * The permission ceiling and the task mutation scope are both enforced in\n * the client's answer to `session/request_permission`, and the scope half is\n * enforced against the `locations` that request DECLARES. So there are TWO\n * ways a run reaches the end with the mutation scope never consulted, and\n * until 2026-09-09 only the first was reported:\n *\n * 1. NO REQUEST AT ALL — the agent writes without asking. Codex's design\n * (its safety model is a sandbox) and OpenCode's default. Nothing is\n * answered, so nothing is checked.\n *\n * 2. REQUESTS RAISED, NONE CARRYING A LOCATION — the agent asks, the\n * client answers, and the scope predicate has nothing to check the\n * answer against, because `locations.some(...)` over an empty array is\n * vacuously satisfied. Under an UNRESTRICTED ceiling this is EVERY\n * shell command: `execute` is admitted by the ceiling, and a shell\n * command declares no locations because its effect is not derivable\n * from the command string. A run can therefore write outside its\n * declared scope through a shell command with a full, well-formed\n * permission-decision record showing it was allowed.\n *\n * Shape 2 is not a hole to be closed by deriving locations from a command —\n * a shell command is UNSCOPED BY NATURE, and parsing one to guess its writes\n * would be an invented, defeatable answer (`sh -c \"$CMD\"`, a redirect\n * through a substituted path). The honest treatment is to say so.\n *\n * Both shapes are ADMISSIBLE by decision (2026-09-06/09): a different agent\n * architecture is not a reason to refuse a tool, the dogfood lane authors\n * UNRESTRICTED deliberately, and the framework's directive is that\n * restrictions arrive as judge-style guards rather than refusals wired into\n * the mechanism. What is NOT acceptable is the consequence going unrecorded\n * while the configuration reads as though a gate were in place.\n *\n * Keyed on the run's OWN evidence rather than on a provider declaration: an\n * agent that changes behaviour between versions cannot silently keep an\n * old, reassuring claim. (The provider's declaration is used too, at\n * DISPATCH, where it refuses a ceiling narrower than UNRESTRICTED against an\n * agent that cannot honour one — a claim before the run and evidence after\n * it, which are different jobs.)\n */\n const raisedNoPermissionRequest = (codingPermissionDecisions?.length ?? 0) === 0;\n // An ALLOWED decision that declared no path: the ceiling admitted the act and\n // the scope predicate was handed nothing to judge it by.\n const allowedActsWithNoDeclaredLocation = (codingPermissionDecisions ?? []).filter(\n (decision) => decision.allowed && decision.locations.length === 0,\n ).length;\n const mutationScopeWentUnconsulted = raisedNoPermissionRequest || allowedActsWithNoDeclaredLocation > 0;\n const mutatedFileCount = changeSet?.files.length ?? 0;\n if (!runError && mutationScopeWentUnconsulted && mutatedFileCount > 0) {\n // Best-effort and FEATURE-DETECTED, the same posture the audit emits take:\n // this observes a run, and an observation that can fail the run it\n // observes is worse than no observation. A partially-bound logger must not\n // turn a completed coding task into an error — measured the hard way, when\n // a `warn` the test double did not implement hung fifteen runs.\n this.logger.warn?.(\n (raisedNoPermissionRequest\n ? 'Coding run mutated the workspace without raising a single permission request — '\n + \"Wildo's permission ceiling and task mutation scope were NOT enforced in flight for this agent. \"\n : `Coding run mutated the workspace after ${allowedActsWithNoDeclaredLocation} permitted act(s) that `\n + 'declared no file location — typically shell commands, which are unscoped by nature — so the task '\n + 'mutation scope had nothing to check those acts against and was NOT enforced in flight for them. ')\n + 'The change set taken after the run is the only record of what it touched'\n + (scopeAssessment && !scopeAssessment.allowed\n ? ', and it detected a write outside the task\\'s declared scope AFTER the fact.'\n : '.'),\n {\n taskRef: task.taskRef,\n objectiveRef: task.objectiveRef,\n mutationScopeRef: task.mutationScope.scopeRef,\n mutatedFileCount,\n scopeAssessmentAllowed: scopeAssessment?.allowed ?? null,\n raisedNoPermissionRequest,\n allowedActsWithNoDeclaredLocation,\n inFlightMutationScopeConsulted: false,\n },\n );\n }\n\n // Verification is deliberately sequential. Each check has a fixed\n // semantic meaning, but several checks can still contend for the same\n // application package/cache if started together. The ordered outcomes are\n // easier to inspect and avoid turning a bounded coding task into an\n // accidental local-build fan-out.\n const shouldVerify = !runError && !captureError && scopeAssessment?.allowed === true;\n const { verification, infrastructureError: verificationInfrastructureError } = shouldVerify\n ? await this.executeVerificationPlans(verificationPlans)\n : { verification: [] as Array<{ checkRef: string; outcome: VerificationOutcome }>, infrastructureError: null as unknown };\n const failedVerification = verification.find(({ outcome }) => !outcome.success) ?? null;\n\n if (agentOutput) {\n await traceBestEffort('write-agent-output', () =>\n this.traceOperationArtifact(runSession, runStep, 'application-coding-task-agent-output.txt', agentOutput));\n }\n if (changeSet?.fullDiffText) {\n await traceBestEffort('write-change-set', () =>\n this.traceOperationArtifact(runSession, runStep, 'application-coding-task-change-set.diff', changeSet.fullDiffText));\n }\n\n const disposition = runError\n ? ApplicationCodingTaskDisposition.AGENT_EXECUTION_FAILED\n : captureError\n ? ApplicationCodingTaskDisposition.CHANGE_SET_CAPTURE_FAILED\n : !scopeAssessment?.allowed\n ? ApplicationCodingTaskDisposition.MUTATION_SCOPE_VIOLATION\n : failedVerification\n ? ApplicationCodingTaskDisposition.VERIFICATION_FAILED\n : traceabilityErrors.length > 0\n ? ApplicationCodingTaskDisposition.TRACEABILITY_FAILED\n : ApplicationCodingTaskDisposition.WORKING_RESULT_RECORDED;\n const succeeded = disposition === ApplicationCodingTaskDisposition.WORKING_RESULT_RECORDED;\n const output = {\n succeeded,\n disposition,\n durationMs: Date.now() - startedAtMs,\n agentOutputTail: agentOutput.slice(-OUTPUT_TAIL_CHARS),\n // Recorded on the durable row because it is the difference between \"the\n // agent finished\" and \"the agent stopped\": a turn that ended on\n // `max_tokens` or `refusal` leaves a partial change set that looks exactly\n // like a complete one from the diff alone.\n ...(agentStopReason ? { agentStopReason } : {}),\n ...(codingSessionEventCount > 0 ? { codingSessionEventCount } : {}),\n ...(retainedCodingSessionFrames.length > 0 ? { codingSessionFrames: retainedCodingSessionFrames } : {}),\n // #2: the run's real cost, recorded on the durable row.\n //\n // This is what the previous transport structurally could not report, and\n // it was captured by the runner and dropped here — so the budget still saw\n // nothing. `usage` is optional in every field by contract, so absence is\n // preserved as absence rather than written as zero.\n ...(codingUsage ? { usage: codingUsage } : {}),\n ...(codingDeniedPermissionCount !== undefined\n ? { deniedPermissionCount: codingDeniedPermissionCount }\n : {}),\n // WHY each permission was decided, beside how many were refused. A refusal an operator\n // cannot explain is a refusal they cannot act on — see the field's contract.\n ...(codingPermissionDecisions && codingPermissionDecisions.length > 0\n ? { permissionDecisions: codingPermissionDecisions }\n : {}),\n ...(runError ? { error: buildOutputErrorPayload(runError) } : {}),\n ...(captureError ? { changeSetCaptureError: buildOutputErrorPayload(captureError) } : {}),\n ...(verificationInfrastructureError ? { verificationInfrastructureError: buildOutputErrorPayload(verificationInfrastructureError) } : {}),\n ...(traceabilityErrors.length > 0 ? { traceabilityErrors: traceabilityErrors.map(buildOutputErrorPayload) } : {}),\n ...(scopeAssessment ? { scopeAssessment } : {}),\n verification,\n ...(changeSet ? {\n changeSetSummary: {\n baselineHeadSha: changeSet.baselineHeadSha,\n postRunHeadSha: changeSet.postRunHeadSha,\n headMovedDuringRun: changeSet.headMovedDuringRun,\n stats: changeSet.stats,\n },\n } : { changeSetSummary: null }),\n };\n\n try {\n const updatePayload = CompanionUpdateActorTaskRequestSchema.parse({\n status: succeeded ? FlowsActors_Status.COMPLETED : FlowsActors_Status.FAILED,\n output,\n ...(changeSet ? { artifacts: [buildChangeSetArtifact(durableTask._id, changeSet)] } : {}),\n });\n await this.executionsService.updateActorTask(durableTask._id, updatePayload, runSession);\n } catch (error) {\n // Do not turn a failed durable PATCH into a retry: the agent may already\n // have changed files and re-execution would duplicate an unclassified\n // effect. The PROCESSING row is deliberately visible for the explicit\n // restart-review hook, while the trace records why it was not terminal.\n this.logger.error('Failed to persist terminal application coding-task result', {\n taskId: durableTask._id,\n taskRef: task.taskRef,\n error: describeCaughtError(error),\n });\n await traceBestEffort('record-terminal-patch-failure', () => this.traceOperationFailure({\n sessionContext: runSession,\n step: runStep,\n type: 'application-coding-task-terminal-patch-failure',\n summary: `Failed to persist terminal result for application coding task ${task.taskRef}`,\n error,\n payload: output,\n }));\n return;\n }\n\n if (succeeded) {\n await traceBestEffort('record-success', () => this.traceOperationSuccess({\n sessionContext: runSession,\n step: runStep,\n type: 'application-coding-task-run-success',\n summary: `Recorded working result for application coding task ${task.taskRef}`,\n payload: output,\n }));\n return;\n }\n await traceBestEffort('record-failure', () => this.traceOperationFailure({\n sessionContext: runSession,\n step: runStep,\n type: 'application-coding-task-run-failure',\n summary: `Application coding task ${task.taskRef} requires follow-up`,\n error: runError ?? captureError ?? verificationInfrastructureError ?? traceabilityErrors[0] ?? new Error(`Application coding task disposition: ${disposition}`),\n payload: output,\n }));\n }\n\n // ================================================================\n // Interactive lane — classifier, live relay, park & resume\n // ================================================================\n\n /**\n * Classify a coding agent's end-of-turn message through the dedicated\n * structured classifier agent. Throws on any fault; the ENGINE ladder wraps\n * that into `CLASSIFIER_UNAVAILABLE` and settles, so this never has to invent\n * a safe default of its own.\n */\n private async classifyCodingTurnEnd(input: {\n readonly finalMessage: string;\n readonly turnIndex: number;\n }): Promise<CodingAgent_EndOfTurnClassification> {\n const prompt = [\n 'A coding agent ended its turn with the message below. Classify what the message means so an '\n + 'autonomous runner can decide whether to continue automatically, or to surface a question to '\n + 'the operator.',\n '',\n '# Agent end-of-turn message',\n input.finalMessage,\n ].join('\\n');\n const invocation: FlowsActors_Agent_Invocation<any, any> = {\n agentRef: APPLICATION_CODING_TURN_CLASSIFIER_AGENT_REF,\n initiator: {},\n invocationContext: [],\n input: { prompt, schema: CodingTurnEndClassificationOutputSchema },\n output: { object: {} },\n executionContext: {},\n artifactBindings: [],\n };\n const response = await this.agentsService.invokeAgent(invocation);\n const raw = (response.output as { object?: unknown } | undefined)?.object;\n const parsed = CodingTurnEndClassificationOutputSchema.safeParse(raw);\n if (!parsed.success) {\n // A malformed classifier answer is a classifier fault: let the ladder fail\n // open rather than guess which situation the model meant.\n throw new Error('Coding turn-end classifier returned an unparseable result.');\n }\n return parsed.data.classification;\n }\n\n /** Fan one live frame out to a task's SSE subscribers. Best-effort, never throws into the run. */\n private publishCodingSessionFrame(taskId: string, frame: CodingSessionLiveFrame): void {\n const listeners = this.codingSessionSubscribers.get(taskId);\n if (!listeners) return;\n for (const listener of listeners) {\n try {\n listener(frame);\n } catch {\n // A subscriber must never be able to fail the run it observes.\n }\n }\n }\n\n /**\n * Subscribe to a task's live coding frames. Returns an unsubscribe function.\n *\n * Frames flow only while a run is ACTIVE for that task; a subscriber that\n * attaches after the run parked or finished simply receives nothing further,\n * which is why the SSE endpoint sends the current pending question up front.\n */\n public subscribeToCodingSession(taskId: string, listener: (frame: CodingSessionLiveFrame) => void): () => void {\n let listeners = this.codingSessionSubscribers.get(taskId);\n if (!listeners) {\n listeners = new Set();\n this.codingSessionSubscribers.set(taskId, listeners);\n }\n listeners.add(listener);\n return () => {\n const set = this.codingSessionSubscribers.get(taskId);\n if (!set) return;\n set.delete(listener);\n if (set.size === 0) this.codingSessionSubscribers.delete(taskId);\n };\n }\n\n /** The questions currently awaiting an operator answer, for status/UX. */\n public listPendingCodingQuestions(): Array<{ taskId: string; taskRef: string; question: string; parkedAt: string; resumable: boolean }> {\n return [...this.parkedCodingSessions.values()].map((parked) => ({\n taskId: parked.durableTask._id,\n taskRef: parked.task.taskRef,\n question: parked.suspension.question,\n parkedAt: parked.parkedAt,\n resumable: parked.suspension.resumable,\n }));\n }\n\n /**\n * Record a run that parked on a question: persist the non-terminal durable row\n * (status PROCESSING, disposition AWAITING_OPERATOR_INPUT, question on the\n * output) and retain the answerable state in memory for the resume door.\n *\n * Deliberately skips change-set assessment and verification: a parked run's\n * edits are partial by definition, and assessing them as a final change set is\n * exactly the \"read a suspended turn as complete\" mistake the suspension field\n * exists to prevent.\n */\n private async recordParkedApplicationCodingTask(params: {\n task: ApplicationCodingTaskContract;\n verificationPlans: readonly ApplicationCodingTaskVerificationPlan[];\n durableTask: DispatchedTaskRow;\n baseline: GitWorktreeSnapshot;\n suspension: CodingAgent_SessionSuspension;\n output: Partial<CodingAgent_RunTaskOutput>;\n usage: CodingAgent_Usage | undefined;\n codingSessionEventCount: number;\n retainedCodingSessionFrames: Array<{ readonly kind: string; readonly payload: unknown }>;\n startedAtMs: number;\n runSession: CompanionExecutionSessionContext | undefined;\n runStep: ReturnType<CompanionTraceabilityService['createStep']> | undefined;\n traceBestEffort: (operation: string, write: () => Promise<void>) => Promise<void>;\n }): Promise<void> {\n const { task, durableTask, baseline, suspension, output, verificationPlans } = params;\n\n this.parkedCodingSessions.set(durableTask._id, {\n durableTask,\n task,\n verificationPlans,\n baseline,\n suspension,\n parkedAt: new Date().toISOString(),\n });\n\n const durableOutput = {\n succeeded: false,\n disposition: ApplicationCodingTaskDisposition.AWAITING_OPERATOR_INPUT,\n durationMs: Date.now() - params.startedAtMs,\n // The question the operator must answer, front and centre.\n pendingQuestion: suspension.question,\n suspension,\n agentOutputTail: (output.finalMessage ?? '').slice(-OUTPUT_TAIL_CHARS),\n ...(output.stopReason ? { agentStopReason: output.stopReason } : {}),\n ...(output.turnCount ? { turnCount: output.turnCount } : {}),\n ...(output.continuations && output.continuations.length > 0 ? { continuations: output.continuations } : {}),\n ...(params.codingSessionEventCount > 0 ? { codingSessionEventCount: params.codingSessionEventCount } : {}),\n ...(params.retainedCodingSessionFrames.length > 0 ? { codingSessionFrames: params.retainedCodingSessionFrames } : {}),\n ...(params.usage ? { usage: params.usage } : {}),\n ...(output.deniedPermissionCount !== undefined ? { deniedPermissionCount: output.deniedPermissionCount } : {}),\n ...(output.permissionDecisions && output.permissionDecisions.length > 0 ? { permissionDecisions: output.permissionDecisions } : {}),\n };\n\n // Status stays PROCESSING: the task is genuinely still in flight, waiting on\n // the operator. It is not COMPLETED (nothing was accepted) and not FAILED\n // (nothing went wrong) — the disposition carries the real state.\n const updatePayload = CompanionUpdateActorTaskRequestSchema.parse({\n status: FlowsActors_Status.PROCESSING,\n output: durableOutput,\n });\n await this.executionsService.updateActorTask(durableTask._id, updatePayload, params.runSession);\n\n await params.traceBestEffort('record-awaiting-input', () => this.traceOperationStart({\n sessionContext: params.runSession,\n step: params.runStep,\n type: 'application-coding-task-awaiting-input',\n summary: `Application coding task ${task.taskRef} is awaiting an operator answer`,\n payload: { taskId: durableTask._id, question: suspension.question, resumable: suspension.resumable },\n }));\n }\n\n /** The in-process answerable state for a parked task, if this process is the one that parked it. */\n public getParkedCodingSessionState(taskId: string): ParkedCodingSessionState | null {\n return this.parkedCodingSessions.get(taskId) ?? null;\n }\n\n /**\n * Load the DURABLE facts needed to RECONSTRUCT a parked task's answerable state\n * after the in-process map has lost it (a companion restart).\n *\n * Returns the build-plan `taskRef` and the persisted `suspension` — enough for\n * the build-dispatch layer to re-compose the task contract and rebuild a\n * {@link ParkedCodingSessionState}. `null` when the row is not a parked coding\n * task (wrong actor, no suspension, or not found).\n */\n public async loadPersistedParkedCodingTask(\n taskId: string,\n sessionContext?: CompanionExecutionSessionContext,\n ): Promise<{ taskRef: string; suspension: CodingAgent_SessionSuspension; durableTask: DispatchedTaskRow } | null> {\n let durableTask: DispatchedTaskRow;\n try {\n durableTask = await this.executionsService.getActorTask(taskId, sessionContext) as DispatchedTaskRow;\n } catch {\n return null;\n }\n const row = durableTask as { actors?: { actorRef?: string }; input?: unknown; output?: unknown };\n if (row.actors?.actorRef !== APPLICATION_CODING_AGENT_REF) return null;\n const taskRef = isRecordValue(row.input) && typeof row.input.taskRef === 'string' ? row.input.taskRef : null;\n const suspensionRaw = isRecordValue(row.output) ? row.output.suspension : undefined;\n const parsedSuspension = CodingAgent_SessionSuspensionSchema.safeParse(suspensionRaw);\n if (!taskRef || !parsedSuspension.success) return null;\n return { taskRef, suspension: parsedSuspension.data, durableTask };\n }\n\n /**\n * Answer a parked coding task's question and resume the SAME agent session.\n *\n * The IN-PROCESS door: it answers a task THIS process parked. For a task whose\n * in-process state was lost to a restart, the caller reconstructs a\n * {@link ParkedCodingSessionState} (from the build plan) and uses\n * {@link resumeParkedCodingTask} directly.\n */\n public async respondToApplicationCodingTaskQuestion(\n taskId: string,\n answer: string,\n ): Promise<ApplicationCodingTaskRunAdmission> {\n // A missing answer is a VALIDATION 400 regardless of whether a task is parked\n // — it is a malformed request, not a state conflict.\n this.admitTypedInput(() => {\n if (answer.trim().length === 0) throw new Error('empty answer');\n return answer;\n }, 'An answer is required to resume a parked coding task.');\n const parked = this.parkedCodingSessions.get(taskId);\n if (!parked) {\n throw this.buildDispatchConflictError(\n `No coding task is awaiting an answer under id ${taskId} in this process. `\n + 'A companion restart drops in-flight answerable state; re-dispatch the task instead.',\n );\n }\n return this.resumeParkedCodingTask(parked, answer);\n }\n\n /**\n * Run a resume against an EXPLICIT parked state — from the in-process map or\n * reconstructed from the build plan after a restart.\n *\n * Runs under the worktree mutation lock exactly like a fresh dispatch (a resume\n * mutates the same worktree) and re-enters the turn ladder through\n * `session/load`, so the agent continues with its full context. The mutation\n * scope and verification plan are the parked contract's; a resume is held to the\n * same bounds as the first run.\n */\n public async resumeParkedCodingTask(\n parked: ParkedCodingSessionState,\n answer: string,\n ): Promise<ApplicationCodingTaskRunAdmission> {\n const trimmedAnswer = this.admitTypedInput(() => {\n const value = answer.trim();\n if (value.length === 0) throw new Error('empty answer');\n return value;\n }, 'An answer is required to resume a parked coding task.');\n const taskId = parked.durableTask._id;\n if (!parked.suspension.resumable) {\n throw this.buildDispatchConflictError(\n `Coding task ${taskId} parked on a question, but its agent does not support session resume, `\n + 'so the answer cannot be delivered to the same session. Re-dispatch the task with the answer folded into the objective.',\n );\n }\n if (this.activeRun) {\n throw this.buildDispatchConflictError(\n `A coding-agent run is already active (task ${this.activeRun.taskId}). Answers are serialized behind the same worktree lock.`,\n );\n }\n\n // Taken out of the answerable set for the duration of the resume; a resume\n // that parks again re-registers it through the same suspension branch.\n this.parkedCodingSessions.delete(taskId);\n\n const admission = createDeferred<ApplicationCodingTaskRunAdmission>();\n const resumeRun = withDedicatedFileLock(\n this.getWorkspaceMutationLockPath(),\n async () => {\n this.activeRun = { taskId, startedAt: new Date().toISOString(), abortController: new AbortController() };\n const settlement = createDeferred<void>();\n this.applicationCodingTaskSettlements.set(taskId, { promise: settlement.promise, resolve: () => settlement.resolve(undefined) });\n admission.resolve({\n taskId,\n status: FlowsActors_Status.PROCESSING,\n taskRef: parked.task.taskRef,\n baselineHeadSha: parked.baseline.headSha,\n baselineDirtyFileCount: Object.keys(parked.baseline.files).length,\n });\n try {\n await this.executeApplicationCodingTask(\n parked.task,\n renderApplicationCodingTaskAgentPrompt(parked.task),\n parked.verificationPlans,\n parked.durableTask,\n parked.baseline,\n { continuationOfSessionId: parked.suspension.sessionId, answerPrompt: trimmedAnswer },\n );\n } finally {\n this.activeRun = null;\n this.applicationCodingTaskSettlements.get(taskId)?.resolve();\n }\n },\n { retries: { retries: 0 } },\n );\n resumeRun.catch((error: unknown) => {\n admission.reject(this.mapLockError(error));\n this.logDebug('Application coding-task resume run terminated with error', {\n taskId,\n error: describeCaughtError(error),\n });\n });\n\n return admission.promise;\n }\n\n private buildApplicationCodingTaskTraceSummary(task: ApplicationCodingTaskContract): Record<string, unknown> {\n return {\n taskRef: task.taskRef,\n objectiveRef: task.objectiveRef,\n candidateRef: task.candidateRef,\n mutationScope: task.mutationScope,\n contextPlanRef: task.contextPlan.planRef,\n selectedSourceRefs: task.contextSelection.selectedSources.map((source) => source.sourceRef),\n verificationRef: task.verificationIntent.verificationRef,\n requiredChecks: task.verificationIntent.requiredChecks,\n installedSkillRefs: task.installedSkillRefs,\n };\n }\n\n // ================================================================\n // Verification hook (P-29c — enum vocabulary, never a command string)\n // ================================================================\n\n private buildVerificationPlan(kind: VerificationKind, requestedPath?: string): VerificationPlan {\n if (kind === VerificationKind.VITEST_PATH) {\n const sanitized = this.sanitizeRelativePath(requestedPath ?? '');\n const absoluteTestPath = join(this.companionContext.saasRoot, sanitized);\n const packageDir = this.findNearestPackageDir(dirname(absoluteTestPath));\n return {\n kind,\n path: sanitized,\n command: 'pnpm',\n args: ['exec', 'vitest', 'run', relative(packageDir, absoluteTestPath)],\n cwd: packageDir,\n };\n }\n\n // TYPECHECK — optional path points at a workspace package directory.\n const sanitized = requestedPath ? this.sanitizeRelativePath(requestedPath) : null;\n return {\n kind,\n path: sanitized,\n command: 'pnpm',\n args: ['exec', 'tsc', '--noEmit'],\n cwd: sanitized ? join(this.companionContext.saasRoot, sanitized) : this.companionContext.saasRoot,\n };\n }\n\n /**\n * The FK-resolution sweep, sourced from the `resources-registry` introspection\n * behavior — a FRESH subprocess import of the app's shared-lib, never the\n * companion's boot-time cache, so it judges exactly the bytes the mutation\n * left on disk. Fails the check when any `.isForeignKey()` field has no\n * registered relationship edge: invisible to every typecheck in the plan and\n * to the backend boot, fatal to the app's frontend at first page load\n * (`frontend_fk_resolution_failed` — wonder-crm, 2026-08-27).\n */\n private async runForeignKeyResolutionVerification(): Promise<VerificationOutcome> {\n const backendServiceKey = Object.entries(this.companionContext.servicesByKey)\n .find(([, service]) => !service.frontendType)?.[0];\n if (!backendServiceKey) {\n throw new Error('No backend service is available to run the frontend-fk-resolution verification.');\n }\n const result = await this.introspectionService.requestInfo({\n serviceKey: backendServiceKey,\n behavior: 'resources-registry',\n });\n if (!result.success) {\n throw new Error(`resources-registry introspection failed: ${JSON.stringify(result)}`);\n }\n const unresolved = (result.data as { unresolvableForeignKeyFields?: Array<{ resourceType: string; fieldName: string }> })\n .unresolvableForeignKeyFields ?? [];\n const success = unresolved.length === 0;\n return {\n kind: VerificationKind.FRONTEND_FK_RESOLUTION,\n path: null,\n success,\n message: success\n ? 'every isForeignKey() field resolves through a registered relationship'\n : `${unresolved.length} FK field(s) cannot be resolved to a resource type: `\n + unresolved.map(({ resourceType, fieldName }) => `${resourceType}.${fieldName}`).join(', ')\n + ' — declare a relationship with the corresponding foreignKeyField.',\n stdoutTail: '',\n stderrTail: '',\n };\n }\n\n /**\n * The settings-rail content sweep — the SHELL_PLACEMENT counterpart of the FK sweep,\n * and it exists for the same reason: the defect it catches is invisible to a typecheck.\n *\n * A placement naming a `destinationRef` the engine catalog does not ship is not a type\n * error. `resolveSettingsHubConfig` DROPS it, and the section silently never renders —\n * so a coding task that typo'd a ref passes `check:app-typecheck`, reports verified, and\n * leaves the application missing a settings section nobody is told about.\n *\n * WARNINGS do not fail the check. Only errors do: the verifier reports both severities,\n * and failing a coding task on an advisory would train the lane to ignore its own gate.\n */\n private async runSettingsPlacementContentVerification(): Promise<VerificationOutcome> {\n // Mirrors the FK sweep's resolution, on the other side of the same predicate: that\n // one wants a backend service, this one a FRONTEND service, because the settings rail\n // is authored in the frontend workspace and only that subprocess can import it.\n const frontendServiceKey = Object.entries(this.companionContext.servicesByKey)\n .find(([, service]) => service.frontendType)?.[0];\n if (!frontendServiceKey) {\n throw new Error('No frontend service is available to run the settings-placement-content verification.');\n }\n const result = await this.introspectionService.requestInfo({\n serviceKey: frontendServiceKey,\n behavior: 'settings-placement-content',\n });\n if (!result.success) {\n throw new Error(`settings-placement-content introspection failed: ${JSON.stringify(result)}`);\n }\n const data = result.data as {\n authored?: boolean;\n errors?: Array<{ severity: string; code: string; message: string }>;\n };\n const blocking = (data.errors ?? []).filter((error) => error.severity !== 'warning');\n const success = blocking.length === 0;\n return {\n kind: VerificationKind.SETTINGS_PLACEMENT_CONTENT,\n path: null,\n success,\n message: success\n ? (data.authored === false\n // Not a silent pass: an application with no authored rail has nothing to\n // verify, and saying so is the difference between \"checked and clean\" and\n // \"there was nothing to check\".\n ? 'no settings rail is authored — nothing to verify'\n : 'every authored placement names a destination the engine ships')\n : `${blocking.length} settings-placement error(s): `\n + blocking.map((error) => `${error.code}: ${error.message}`).join(' | '),\n stdoutTail: '',\n stderrTail: '',\n };\n }\n\n /**\n * The schema-plan drift gate — `wildo db diff --check` at the application root.\n *\n * ## Why it is not simply another argv plan\n *\n * The other CLI checks answer a two-valued question about a package that always exists.\n * This one has THREE outcomes, and collapsing any of them into \"failed\" would fail runs\n * on a question nobody asked:\n *\n * 1. **No committed lockfile** — the application has not adopted migrations. Every\n * MongoDB application is permanently in this state (a collection exists on first\n * write; there is no plan to drift from), and a PostgreSQL application is in it until\n * a human commits the initial baseline. `wildo db diff --check` deliberately EXITS\n * NON-ZERO here — correct for a CI ratchet whose baseline is missing, wrong for a\n * gate that runs on every application — so the absence is answered here instead, as\n * a pass that says it checked nothing.\n * 2. **No `backend-api/dist`** — the model is computed by IMPORTING the compiled\n * modules registry, and the build lane only ever runs `tsc --noEmit`, which emits\n * nothing. This is \"we could not ask\", not \"the application has drifted\", so it\n * THROWS and is reported as an infrastructure error. Same distinction this playbook's\n * method already draws for the typechecks, and the same reasoning\n * `reconcileDevelopmentSchemaDrift` uses when it SKIPS on a stale model rather than\n * generating a migration for a model nobody has.\n * 3. **Both present** — the spawn decides, and its own message is carried through: it\n * names the drifted tables and the command that fixes them, which is more than this\n * layer could reconstruct.\n *\n * ## Why the check is worth having at all\n *\n * It is the only check in the catalog that can see a missing table. A resource whose\n * migration was never generated typechecks green in all four packages and then refuses\n * to boot with `postgresql_table_schema_mismatch` — measured 2026-09-07, when an engine\n * resource landed with migrations for two of the three PostgreSQL-backed applications\n * and the third crash-looped until a human read the log.\n */\n private async runSchemaPlanDriftVerification(): Promise<VerificationOutcome> {\n const saasRoot = this.companionContext.saasRoot;\n const lockfilePath = join(saasRoot, 'backend-api', 'migrations', 'schema-plan.lock.json');\n if (!existsSync(lockfilePath)) {\n return {\n kind: VerificationKind.SCHEMA_PLAN_DRIFT,\n path: null,\n success: true,\n // Says it checked NOTHING rather than reporting a clean plan — the same honesty the\n // settings-placement sweep applies to an application with no authored rail.\n message: 'no schema-plan lockfile — this application has not adopted migrations, so there is no accepted plan to drift from (every MongoDB application is in this state permanently)',\n stdoutTail: '',\n stderrTail: '',\n };\n }\n\n const modulesRegistryPath = join(saasRoot, 'backend-api', 'dist', 'modules-registry.backend.js');\n if (!existsSync(modulesRegistryPath)) {\n // THROWN on purpose: `executeVerificationPlans` classifies a throw as an infrastructure\n // error and reports it apart from a failing check. A `success: false` here would say the\n // application has drifted, which is a claim about a model that was never computed.\n throw new Error(\n `Cannot check schema-plan drift: ${modulesRegistryPath} does not exist. The plan is computed by importing `\n + \"the compiled backend registry, and this build never emitted one (`tsc --noEmit` does not). Build backend-api, \"\n + 'or run this check under `wildo local dev`, whose watcher maintains that dist.',\n );\n }\n\n const outcome = await this.runVerification({\n kind: VerificationKind.SCHEMA_PLAN_DRIFT,\n path: null,\n command: 'wildo',\n args: ['db', 'diff', '--check'],\n cwd: saasRoot,\n });\n if (!outcome.success && /ENOENT|not found/i.test(outcome.message)) {\n // The CLI is a GLOBAL install (`platform/factory/scripts/install.sh`) and is not linked\n // into an application's `node_modules/.bin` — verified on both dogfood applications. So\n // \"wildo is not on PATH\" is an absent tool, never a drifted schema.\n throw new Error(`Cannot check schema-plan drift: the \\`wildo\\` CLI could not be executed (${outcome.message}).`);\n }\n return outcome;\n }\n\n /**\n * Run a resolved verification plan set and return one outcome per check.\n *\n * Extracted from the coding-task dispatch so the SAME executor serves a second caller: the\n * `DETERMINISTIC_CLI` playbook tier, which verifies an already-built application and dispatches no\n * agent (issue #147). The alternative was a second loop that re-derived which kinds branch away\n * from the argv path — and the two would drift the first time a `VerificationKind` was added,\n * silently, because a missed kind falls through to a typecheck that passes.\n *\n * A thrown error is an INFRASTRUCTURE failure, not a failing check: the subprocess could not be\n * run at all. It is recorded as a failed outcome so the caller sees which check was affected, and\n * surfaced separately so a caller can tell \"the application is broken\" from \"we could not ask\".\n */\n private async executeVerificationPlans(\n plans: readonly ApplicationCodingTaskVerificationPlan[],\n ): Promise<{\n verification: Array<{ checkRef: string; outcome: VerificationOutcome }>;\n infrastructureError: unknown;\n }> {\n const verification: Array<{ checkRef: string; outcome: VerificationOutcome }> = [];\n let infrastructureError: unknown = null;\n for (const plan of plans) {\n try {\n verification.push({\n checkRef: plan.checkRef,\n // The FK-resolution check is not a CLI command: it runs in the companion's\n // introspection subprocess (fresh working-tree import), so it branches before\n // the argv-plan path.\n outcome: plan.kind === VerificationKind.FRONTEND_FK_RESOLUTION\n ? await this.runForeignKeyResolutionVerification()\n : plan.kind === VerificationKind.SETTINGS_PLACEMENT_CONTENT\n ? await this.runSettingsPlacementContentVerification()\n : plan.kind === VerificationKind.SCHEMA_PLAN_DRIFT\n ? await this.runSchemaPlanDriftVerification()\n : await this.runVerification(this.buildVerificationPlan(plan.kind, plan.path ?? undefined)),\n });\n } catch (error) {\n infrastructureError ??= error;\n verification.push({\n checkRef: plan.checkRef,\n outcome: {\n kind: plan.kind,\n path: plan.path,\n success: false,\n message: describeCaughtError(error),\n stdoutTail: '',\n stderrTail: '',\n },\n });\n }\n }\n return { verification, infrastructureError };\n }\n\n /**\n * Run named verification checks against the application, outside any agent dispatch.\n *\n * The public door for the `DETERMINISTIC_CLI` tier. Check refs resolve through the same closed\n * `APPLICATION_CODING_TASK_VERIFICATION_CATALOG` a coding task uses, so an unknown ref is refused\n * here rather than becoming an unrun check that reports success by absence.\n *\n * Deliberately takes NO worktree lock and captures NO change set: this reads the application, and\n * pretending otherwise would serialize verification against the single-flight coding lane for no\n * reason.\n */\n public async runApplicationVerificationChecks(\n checkRefs: readonly string[],\n ): Promise<{\n verification: Array<{ checkRef: string; outcome: VerificationOutcome }>;\n infrastructureError: unknown;\n }> {\n return this.executeVerificationPlans(resolveApplicationCodingTaskVerificationPlans(checkRefs));\n }\n\n private async runVerification(plan: VerificationPlan): Promise<VerificationOutcome> {\n try {\n const result = await executeBoundedSubprocess({\n command: plan.command,\n args: plan.args,\n cwd: plan.cwd,\n env: buildVerificationEnv(),\n timeoutMs: VERIFICATION_TIMEOUT_MS,\n maxCapturedBytes: VERIFICATION_MAX_CAPTURED_BYTES,\n });\n return {\n kind: plan.kind,\n path: plan.path,\n success: true,\n message: `${plan.command} ${plan.args.join(' ')} passed`,\n stdoutTail: result.stdout.slice(-OUTPUT_TAIL_CHARS),\n stderrTail: result.stderr.slice(-OUTPUT_TAIL_CHARS),\n };\n } catch (error) {\n const details = (error as { details?: { stdout?: string; stderr?: string } }).details;\n return {\n kind: plan.kind,\n path: plan.path,\n success: false,\n message: describeCaughtError(error),\n stdoutTail: (details?.stdout ?? '').slice(-OUTPUT_TAIL_CHARS),\n stderrTail: (details?.stderr ?? '').slice(-OUTPUT_TAIL_CHARS),\n };\n }\n }\n\n /**\n * Run one admission-time validation and convert ANY refusal into a typed\n * VALIDATION error, preserving the original message as context.\n *\n * Deliberately a wrapper rather than N rewritten throw sites: the pure\n * resolver in the models layer has no error builder and should not grow one,\n * and a future admission check gets the same classification by being placed\n * here rather than by remembering to.\n */\n private admitTypedInput<T>(validate: () => T, message: string): T {\n try {\n return validate();\n } catch (error) {\n throw this.errorBuilder.buildError(ErrorType.VALIDATION, undefined, {\n customMessageReference: ErrorCustomMessageReference.VALIDATION,\n context: {\n message,\n validationError: describeCaughtError(error),\n },\n });\n }\n }\n\n /**\n * Sanitize an app-root-relative path from the wire: rejects absolute\n * paths, `..` escapes, backslashes, NUL bytes, and flag-lookalikes\n * (leading `-` would be parsed as an argv flag by the fixed commands).\n */\n private sanitizeRelativePath(requestedPath: string): string {\n const candidate = requestedPath.trim();\n const reject = (reason: string): never => {\n throw this.errorBuilder.buildError(ErrorType.VALIDATION, undefined, {\n customMessageReference: ErrorCustomMessageReference.VALIDATION,\n context: {\n message: `Invalid verification path: ${reason}`,\n requestedPath,\n },\n });\n };\n\n if (!candidate) reject('path is empty');\n if (candidate.includes('\\0')) reject('path contains a NUL byte');\n if (candidate.includes('\\\\')) reject('use forward slashes');\n if (isAbsolute(candidate)) reject('path must be relative to the application root');\n if (candidate.startsWith('-')) reject('path must not start with a dash');\n const normalized = normalize(candidate);\n if (normalized.split(sep).includes('..')) reject('path must not escape the application root');\n\n const absolute = join(this.companionContext.saasRoot, normalized);\n const relativeFromRoot = relative(this.companionContext.saasRoot, absolute);\n if (relativeFromRoot.startsWith('..') || isAbsolute(relativeFromRoot)) {\n reject('path resolves outside the application root');\n }\n return normalized;\n }\n\n /** Nearest ancestor dir (within the app root) holding a package.json. */\n private findNearestPackageDir(startDir: string): string {\n let current = startDir;\n const root = this.companionContext.saasRoot;\n while (current.startsWith(root)) {\n if (existsSync(join(current, 'package.json'))) {\n return current;\n }\n const parent = dirname(current);\n if (parent === current) break;\n current = parent;\n }\n return root;\n }\n\n // ================================================================\n // Error + traceability helpers (service-owned wrappers, P-13 pattern)\n // ================================================================\n\n private buildDispatchConflictError(message: string): unknown {\n return this.errorBuilder.buildError(ErrorType.CONFLICT, undefined, {\n customMessageReference: ErrorCustomMessageReference.CONFLICT,\n context: { message },\n });\n }\n\n /** Map proper-lockfile ELOCKED contention onto the 409 vocabulary. */\n private mapLockError(error: unknown): unknown {\n if ((error as { code?: string })?.code === 'ELOCKED') {\n return this.buildDispatchConflictError(\n 'The workspace-mutation lock is held by another process (companion run or CLI). '\n + 'Dispatch is single-flight across processes (P-20); retry after the active run completes. '\n + 'If you are a dispatched coding-agent run: dispatching from a dispatched run is forbidden (P-35).',\n );\n }\n return error;\n }\n\n private createOperationTraceStep(\n sessionContext: CompanionExecutionSessionContext | undefined,\n label: string,\n ) {\n return sessionContext\n ? this.traceabilityService.createStep(sessionContext, {\n kind: 'coding-agent-dispatch',\n label,\n })\n : undefined;\n }\n\n private async traceOperationStart(input: {\n sessionContext?: CompanionExecutionSessionContext;\n step?: ReturnType<CompanionTraceabilityService['createStep']>;\n type: string;\n summary: string;\n payload?: unknown;\n artifactFileName?: string;\n artifactContent?: unknown;\n }): Promise<void> {\n if (!input.sessionContext) return;\n\n await this.traceabilityService.traceEvent({\n session: input.sessionContext,\n minimumLevel: CompanionTraceabilityLevel.DEBUG,\n type: input.type,\n summary: input.summary,\n ...(input.payload !== undefined ? { payload: input.payload } : {}),\n ...(input.step ? { step: input.step } : {}),\n });\n if (input.artifactFileName && input.artifactContent !== undefined) {\n await this.traceabilityService.writeArtifact({\n session: input.sessionContext,\n minimumLevel: CompanionTraceabilityLevel.DEBUG_VERBOSE,\n fileName: input.artifactFileName,\n content: input.artifactContent,\n ...(input.step ? { step: input.step } : {}),\n });\n }\n }\n\n private async traceOperationSuccess(input: {\n sessionContext?: CompanionExecutionSessionContext;\n step?: ReturnType<CompanionTraceabilityService['createStep']>;\n type: string;\n summary: string;\n payload?: unknown;\n artifactFileName?: string;\n artifactContent?: unknown;\n }): Promise<void> {\n if (!input.sessionContext) return;\n\n if (input.artifactFileName && input.artifactContent !== undefined) {\n await this.traceabilityService.writeArtifact({\n session: input.sessionContext,\n minimumLevel: CompanionTraceabilityLevel.DEBUG_VERBOSE,\n fileName: input.artifactFileName,\n content: input.artifactContent,\n ...(input.step ? { step: input.step } : {}),\n });\n }\n await this.traceabilityService.traceEvent({\n session: input.sessionContext,\n minimumLevel: CompanionTraceabilityLevel.DEBUG,\n type: input.type,\n summary: input.summary,\n ...(input.payload !== undefined ? { payload: input.payload } : {}),\n ...(input.step ? { step: input.step } : {}),\n });\n }\n\n private async traceOperationFailure(input: {\n sessionContext?: CompanionExecutionSessionContext;\n step?: ReturnType<CompanionTraceabilityService['createStep']>;\n type: string;\n summary: string;\n error: unknown;\n payload?: unknown;\n }): Promise<void> {\n if (!input.sessionContext) return;\n\n await this.traceabilityService.traceEvent({\n session: input.sessionContext,\n minimumLevel: CompanionTraceabilityLevel.DEBUG,\n type: input.type,\n summary: input.summary,\n payload: {\n ...(input.payload && typeof input.payload === 'object'\n ? input.payload as Record<string, unknown>\n : { input: input.payload }),\n error: buildOutputErrorPayload(input.error),\n },\n ...(input.step ? { step: input.step } : {}),\n });\n }\n\n private async traceOperationArtifact(\n sessionContext: CompanionExecutionSessionContext | undefined,\n step: ReturnType<CompanionTraceabilityService['createStep']> | undefined,\n fileName: string,\n content: unknown,\n ): Promise<void> {\n if (!sessionContext) return;\n await this.traceabilityService.writeArtifact({\n session: sessionContext,\n minimumLevel: CompanionTraceabilityLevel.DEBUG_VERBOSE,\n fileName,\n content,\n ...(step ? { step } : {}),\n });\n }\n}\n\ninterface VerificationPlan {\n kind: VerificationKind;\n path: string | null;\n command: string;\n args: string[];\n cwd: string;\n}\n\n/**\n * Change-set artifact persisted on the task row (P-19: file list + stats\n * + head SHAs + attribution classes). `fullDiffText` is deliberately\n * stripped — the raw diff lives in the traceability artifact only.\n *\n * Persisted as `FlowsActors_IO_PartKind.STRUCTURED` with the capture in\n * `content.data`. History: on 2026-07-03 this was temporarily JSON-encoded\n * into a TEXT artifact because the zod-to-mongoose converter flattened\n * nested discriminated unions (`artifacts[]` on the task row) onto their\n * FIRST variant, making `content.text` a required Mongoose path for every\n * artifact. The converter now merges nested union variants into an\n * all-optional superset schema, so the natural STRUCTURED shape persists\n * again (requires a saas-backend-lib dist carrying that fix).\n */\nfunction buildChangeSetArtifact(taskId: string, changeSet: GitChangeSetCapture): ArtifactInstance {\n const { fullDiffText: _fullDiffText, ...structuredCapture } = changeSet;\n return {\n ref: `coding-agent-change-set-${taskId}`,\n type: FlowsActors_IO_PartKind.STRUCTURED,\n name: 'coding-agent-change-set',\n description: 'Read-only git change-set capture with per-file attribution (P-19)',\n origin: { taskId },\n content: { data: structuredCapture },\n createdAt: new Date().toISOString(),\n };\n}\n\n/** Same minimal allowlist the CLI spawn uses (P-18). */\nfunction buildVerificationEnv(): NodeJS.ProcessEnv {\n // Same minimal identity allowlist the CLI spawn uses (P-18) — incl.\n // USER/LOGNAME so a verification hook that shells out to per-user\n // tooling behaves like the agent run. Kept in lockstep with\n // `ClaudeCliCompanionService`'s allowlist.\n const env: NodeJS.ProcessEnv = {};\n for (const key of ['PATH', 'HOME', 'USER', 'LOGNAME', 'SHELL', 'TERM']) {\n const value = process.env[key];\n if (value !== undefined) env[key] = value;\n }\n return env;\n}\n\nfunction buildOutputErrorPayload(error: unknown): unknown {\n if (isWildoBackendError(error)) return error;\n if (error instanceof Error) {\n return {\n message: error.message,\n name: error.name,\n ...(error.stack ? { stack: error.stack } : {}),\n };\n }\n return { message: String(error) };\n}\n\nfunction createDeferred<T>(): {\n promise: Promise<T>;\n resolve: (value: T) => void;\n reject: (error: unknown) => void;\n} {\n let settled = false;\n let resolveFn!: (value: T) => void;\n let rejectFn!: (error: unknown) => void;\n const promise = new Promise<T>((resolve, reject) => {\n resolveFn = resolve;\n rejectFn = reject;\n });\n return {\n promise,\n resolve: (value) => {\n if (settled) return;\n settled = true;\n resolveFn(value);\n },\n reject: (error) => {\n if (settled) return;\n settled = true;\n rejectFn(error);\n },\n };\n}\n"]}
1
+ {"version":3,"file":"coding-agent-dispatch.companion.service.js","sourceRoot":"","sources":["../../../../../src/claude-cli/services/coding-agent-dispatch.companion.service.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0EG;;;;;;;;;;;;;AAEH,OAAO,EACL,gDAAgD,GAEjD,MAAM,sCAAsC,CAAC;AAC9C,OAAO,EACL,+BAA+B,EAC/B,qCAAqC,GACtC,MAAM,sEAAsE,CAAC;AAC9E,OAAO,EAAE,UAAU,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,GAAG,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAChF,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AACjE,OAAO,EAAE,UAAU,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAChE,OAAO,EACL,wBAAwB,EACxB,sBAAsB,EACtB,4BAA4B,EAC5B,+BAA+B,EAC/B,iCAAiC,GAClC,MAAM,wCAAwC,CAAC;AAChD,OAAO,EAAE,8BAA8B,EAAE,MAAM,oDAAoD,CAAC;AACpG,OAAO,EACL,0BAA0B,EAC1B,wBAAwB,EACxB,gCAAgC,EAChC,2BAA2B,EAC3B,yBAAyB,EACzB,gCAAgC,EAChC,wBAAwB,GAGzB,MAAM,yCAAyC,CAAC;AACjD,OAAO,EAAE,kCAAkC,EAAE,MAAM,8DAA8D,CAAC;AAClH,OAAO,EACL,iCAAiC,EACjC,8BAA8B,EAC9B,oBAAoB,EACpB,sBAAsB,EACtB,sBAAsB,EACtB,4BAA4B,EAC5B,sBAAsB,GAGvB,MAAM,yCAAyC,CAAC;AAEjD,OAAO,EAAE,MAAM,EAAE,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AO,GAAG,IAAI,CAAC;YACf,QAAQ,CAAC,KAAK,CAAC,CAAC;QAClB,CAAC;KACF,CAAC;AACJ,CAAC","sourcesContent":["/**\n * Application coding-task host — the typed Flows/Actors coding path.\n *\n * `runApplicationCodingTask` admits one typed `MetaWorkflow_ApplicationCodingTaskContract`\n * (the episode runtime's coding revision owner is the caller), renders its\n * prompt from the sealed contract, creates an `Actors_Task` row, spawns the\n * Claude CLI in the background against the application worktree, captures\n * a read-only git change set with per-file attribution, runs the contract's\n * registered verification checks, then PATCHes the task with status/output/\n * artifacts. One admission never spans the multi-minute run (P-16) —\n * callers await the settlement or poll `/tasks/actors/:taskId`. The raw\n * `POST /coding-agent/dispatch` endpoint (caller-composed prompt) was\n * deleted at the first-activation hard cut.\n *\n * # Locking & recursion cap (P-20 / P-19b / P-35)\n *\n * Runs are single-flight, serialized by a cross-process lock on the\n * dedicated target `<saasRoot>/.wildo-saas/state/workspace-mutation.lock`\n * (`withDedicatedFileLock` from `@wildo-ai/platform-config-lib`,\n * proper-lockfile pattern — an in-memory mutex alone is forbidden because\n * the CLI mutates the same worktree from other processes). An in-memory\n * flag fronts the lock for fast 409s. The lock is held for the WHOLE run.\n *\n * The P-35 recursion cap falls out structurally: a dispatched run that\n * calls dispatch (it has shell access and can read the machine-local\n * token) always finds the lock held by ITS OWN run and is rejected 409 —\n * a dispatched run can never dispatch. Deliberately, the lock does NOT\n * gate Paul's parallel sessions (P-19b): CLAUDE.md forbids session\n * coordination; per-file attribution is the compensation, not exclusion.\n *\n * ⚠️ **THE CAP IS A SIDE EFFECT OF THE LOCK BEING GLOBAL, AND #48 PROPOSES\n * MAKING IT PER-SCOPE.** Admission by disjoint mutation scopes deletes this\n * refusal silently: a recursing run asks for a task in ANOTHER module, is\n * found disjoint, and is admitted. Nothing throws, nothing logs, and the\n * first symptom is a fan-out nobody asked for — this repository's \"a\n * construct that refuses needs its paired path\" lesson running BACKWARDS,\n * with a refusal removed as a side effect, which is the harder direction to\n * notice.\n *\n * So the cap must become an EXPLICIT guard in the same change: a run's own\n * dispatch identity refused at admission regardless of scope disjointness.\n * Note that identity is the hard part and is not solved here — the child's\n * environment is composed by this service, but an HTTP request from the\n * agent's shell carries none of it, and the machine-local token the agent\n * reads is the same one an operator uses. Whoever scopes the lock owns\n * finding that channel; do not assume it exists.\n *\n * It is TRIPWIRED rather than left to memory. The single-flight tests below\n * dispatch the SAME scope twice, so they keep passing under scope-aware\n * admission and would let the cap vanish green. `refuses a second dispatch\n * whose mutation scope is DISJOINT — the P-35 recursion cap (#48)` varies\n * the scope on purpose and goes red instead.\n *\n * # Traceability (P-21)\n *\n * L2 runs dispatch through `AgentsBackendService.invokeAgent`, so they DO\n * reach the engine `AgentCallTraceSink` (on success and on failure, gated by\n * the agent-traceability policy and silent when no sink is bound) and they DO\n * run through the provider's Bottleneck limiter, which `executeAgentViaACP`\n * schedules the session on. The pre-ACP direct claude-cli lane bypassed both;\n * that is history, not the current shape. Two things still do not come free:\n * a NONE policy level or an unbound sink means no engine trace at all, so this\n * service also owns its companion-traceability events (DEBUG) and artifacts\n * (DEBUG_VERBOSE). The background phase runs under an INTERNAL trace session\n * (`createInternalSession`) because the HTTP request session ends at the\n * 202-style response.\n *\n * # Run limits (P-18)\n *\n * Defaults 30 min / 10 MiB; request-overridable up to hard caps\n * 60 min / 32 MiB. The byte cap REJECTS (kills the run), it does not\n * truncate. Args stay `--print` + `--model` (no extraArgs field), prompt\n * on stdin, env = `{ PATH, HOME, SHELL, TERM }` (composed inside\n * the ACP session runner).\n */\n\nimport {\n MetaWorkflow_ApplicationCodingTaskContractSchema,\n type MetaWorkflow_ApplicationCodingTaskContract,\n} from '@wildo-ai/saas-models/meta-workflows';\nimport {\n ApplicationSchemaPlanObligation,\n assessApplicationSchemaPlanObligation,\n} from '../../core/config/application-schema-plan-obligation.companion.utils';\nimport { isAbsolute, join, normalize, relative, sep, dirname } from 'node:path';\nimport { existsSync, readFileSync, realpathSync } from 'node:fs';\nimport { appendFile, mkdir, writeFile } from 'node:fs/promises';\nimport {\n CODING_ANSWERS_FILE_NAME,\n CodingQuestionAnswerer,\n getFamilyPackageRelativePath,\n renderCodingQuestionAnswerEntry,\n renderCodingQuestionAnswersHeader,\n} from '@wildo-ai/application-creation-runtime';\nimport { ApplicationSpecificationFamily } from '@wildo-ai/saas-specifications/application-creation';\nimport {\n AgentAnswerAttemptDecision,\n decideAgentAnswerAttempt,\n ParkedQuestionAnswerOutputSchema,\n ParkedQuestionAnswerVerdict,\n readParkedQuestionAnswers,\n renderParkedQuestionAnswerPrompt,\n withParkedQuestionAnswer,\n type ParkedQuestionAnswerOutput,\n type ParkedQuestionAnswerRecord,\n} from '../models/parked-question-answer.models';\nimport { PARKED_QUESTION_ANSWERER_AGENT_REF } from '../models/parked-question-answerer.actors-system.definitions';\nimport {\n applicationCodingExclusiveSubject,\n CODING_RUN_WINDOW_RETENTION_MS,\n CodingRunConcurrency,\n describeRunConcurrency,\n isConcurrentRunSubject,\n selectBudgetCountingFailures,\n collectRunClaimedPaths,\n type CodingRunConcurrencyRecord,\n type CodingRunWindow,\n} from '../models/concurrent-coding-runs.models';\n\nimport { inject, injectable } from 'inversify';\nimport {\n ActorsSystemBackendService,\n AgentsBackendService,\n ErrorBuilderBackendService,\n LoggerService,\n SAAS_SERVICE_TYPES,\n executeBoundedSubprocess,\n describeCaughtError,\n isActorExecutionSubjectBusyError,\n type ActorExecutionConclusion,\n type ActorExecutionOpenRequest,\n type ActorExecutionRunOptions,\n type ActorExecutionSuspensionRequest,\n type OpenedActorExecution,\n} from '@wildo-ai/saas-backend-lib';\nimport {\n Actor_Task_Topics,\n type AgentTraceContext,\n ErrorCustomMessageReference,\n ErrorType,\n FlowsActors_IO_PartKind,\n FlowsActors_Status,\n isWildoBackendError,\n type ArtifactInstance,\n type FlowsActors_Agent_Invocation,\n HumanDecision_FieldKind,\n HumanDecision_ResponseIntent,\n type HumanDecision_Request,\n} from '@wildo-ai/saas-models';\nimport {\n CodingAgent_EndOfTurnClassification,\n CodingAgent_OperationContext_BaseSchema,\n CodingAgent_RunTaskInputSchema,\n CodingAgent_RunTaskOutputSchema,\n CodingAgent_SessionSuspensionSchema,\n CodingAgent_StopReason,\n type CodingAgent_RunTaskOutput,\n type CodingAgent_SessionSuspension,\n type CodingAgent_Usage,\n} from '@wildo-ai/external-connectors-models';\nimport {\n getWorkspaceMutationLockPath as resolveWorkspaceMutationLockPath,\n withDedicatedFileLock,\n} from '@wildo-ai/platform-config-lib';\n\nimport {\n sanitizeWorkbenchCreationPlaneIdentity,\n Workbench_ParkedCodingQuestionOptionRef,\n WORKBENCH_PARKED_CODING_QUESTION_FIELD_REF,\n WORKBENCH_TASK_CORRELATION_DOMAIN,\n WorkbenchTaskCorrelationRef,\n} from '@wildo-ai/platform-core-shared';\nimport { COMPANION_SERVICE_TYPES } from '../../core/inject/models/service-types';\nimport type { CompanionContext } from '../../core/context/companion-context';\nimport type {\n CompanionExecutionSessionContext,\n} from '../../core/traceability/companion-traceability.models';\nimport { CompanionTraceabilityLevel, CompanionTraceAliasKind } from '../../core/traceability/companion-traceability.models';\nimport { CompanionTraceabilityService } from '../../core/traceability/companion-traceability.service';\nimport { CompanionIntrospectionService } from '../../core/introspection/services/companion-introspection.companion.service';\nimport { CompanionExecutionsCompanionService } from '../../executions/services/companion-executions.companion.service';\nimport { CompanionActorTasksListQuerySchema, CompanionExecutionsListQuerySchema, type CompanionCodingAgentStatusResponse } from '../../companion-api/companion-api.schemas';\nimport { GitChangeSetCompanionService, isConcurrentHostLanePath, isOutsideApplicationRootPath } from './git-change-set.companion.service';\nimport { CodingRunWriteRegisterCompanionService } from './coding-run-write-register.companion.service';\nimport { PlaybookLaneBoundaryDecision } from '@wildo-ai/application-creation-runtime';\nimport {\n APPLICATION_CREATION_AUTONOMY_POSTURE,\n LaneBoundaryTreatment,\n laneBoundaryTreatmentFor,\n} from '../../meta-workflows/models/playbook-run-checkpoint.models';\nimport { AcceptOrigin, AcceptedChangeCommitCompanionService, NothingToAcceptError } from './accepted-change-commit.companion.service';\nimport {\n APPLICATION_CODING_TURN_CLASSIFIER_AGENT_REF,\n CodingTurnEndClassificationOutputSchema,\n APPLICATION_CODING_AGENT_REFS,\n APPLICATION_CODING_SYSTEM_REF,\n APPLICATION_CODING_WORKTREE_SUBJECT,\n isApplicationCodingAgentRef,\n resolveSelectedApplicationCodingAgentBinding,\n} from '../../meta-workflows/models/application-coding-agent.actors-system.definitions';\nimport {\n ChangeSetAttributionClass,\n ApplicationCodingTaskDisposition,\n CodingRunFailureAttribution,\n deriveCodingRunFailureAttribution,\n APPLICATION_CODING_CONTRACT_REFUSAL_MARKER,\n type ApplicationCodingTaskRunAdmission,\n type CodingRunOrigin,\n type ApplicationCodingTaskVerificationPlan,\n DISPATCH_DEFAULT_MAX_CAPTURED_BYTES,\n DISPATCH_DEFAULT_TIMEOUT_MS,\n DISPATCH_HARD_MAX_CAPTURED_BYTES,\n DISPATCH_HARD_MAX_TIMEOUT_MS,\n VerificationKind,\n renderApplicationCodingTaskAgentPrompt,\n resolveApplicationCodingTaskVerificationPlans,\n type GitChangeSetCapture,\n type GitWorktreeSnapshot,\n} from '../models/coding-agent-dispatch.models';\nimport { CodingSessionFrameRetention, type CodingSessionRetentionSummary } from '../models/coding-session-frame-retention';\nimport { isInfrastructureShapedAgentFailure, isProviderAccountAgentFailure } from '../../core/runtime/dev-compile-quiet.companion';\nimport type { Actors_Memory_Context } from '@wildo-ai/saas-models';\nimport { diagnoseCarriedVerificationFailure } from '../../meta-workflows/models/carried-verification-failure.models';\nimport {\n NothingToRearmError,\n readBuildTaskRearm,\n withBuildTaskRearm,\n type BuildTaskRearm,\n type BuildTaskRearmReason,\n} from '../../meta-workflows/models/build-task-rearm.models';\nimport {\n APPLICATION_CODING_RUN_CHECKPOINT_KIND,\n ApplicationCodingRunCheckpointSchema,\n isParkedCodingRunAnswerable,\n type ApplicationCodingRunCheckpoint,\n} from '../models/application-coding-run-checkpoint.models';\n\n/** Fixed, non-overridable limits for the verification hook subprocess. */\nconst VERIFICATION_TIMEOUT_MS = 10 * 60_000;\nconst VERIFICATION_MAX_CAPTURED_BYTES = 10 * 1024 * 1024;\n\n\n/** Tail size persisted on the task row; full streams go to traceability artifacts. */\nconst OUTPUT_TAIL_CHARS = 16_000;\n\ninterface ActiveRunState {\n taskId: string;\n startedAt: string;\n /** Cancels the in-flight coding session. Cooperative first, kill second. */\n abortController: AbortController;\n /** Whether it shares the tree with a wave (#1528); a concurrent run takes the workspace lock only to commit. */\n mode: CodingRunConcurrency;\n}\n\n/**\n * The trace half of one coding run: the internal session its writes are attributed to, and the\n * errors tracing itself raised — which feed the run's disposition, because required evidence that\n * could not be recorded makes a working result a `TRACEABILITY_FAILED` one.\n *\n * Opened BEFORE the engine drives the run (#1359) because the session is also the scope every actor\n * plane write of that run carries, and the driver takes its scope when the run starts.\n */\ninterface CodingRunTrace {\n readonly runSession: CompanionExecutionSessionContext | undefined;\n readonly runStep: ReturnType<CompanionTraceabilityService['createStep']> | undefined;\n readonly traceabilityErrors: unknown[];\n readonly traceBestEffort: (operation: string, write: () => Promise<void>) => Promise<void>;\n}\n\n/**\n * How one coding run's executor ENDED, as the engine's execution driver is told to record it.\n *\n * Two ways, and neither is a throw. `parked`: the agent stopped to ask the operator, so the run\n * waits on its execution with the question and its resume inputs. `concluded`: the disposition\n * ladder classified the run — and a `FAILED` conclusion is a REPORTED outcome of a dispatch that\n * succeeded (the agent ran, files may have changed, verification said no), which is why it is a\n * classification with its full output rather than an exception that would lose it.\n *\n * `afterSettle` runs once the rows have moved: the success/failure trace names a result the durable\n * row already carries, never one it might still fail to.\n */\nenum CodingRunEnding {\n /** The agent stopped to ask the operator; the run waits on its execution and can be continued. */\n PARKED = 'parked',\n /** The disposition ladder classified the run — a working result or a reported failure, both terminal. */\n CONCLUDED = 'concluded',\n}\n\ntype CodingRunResult =\n | { readonly kind: CodingRunEnding.PARKED; readonly suspension: ActorExecutionSuspensionRequest; readonly output: unknown; readonly afterSettle: () => Promise<void> }\n | { readonly kind: CodingRunEnding.CONCLUDED; readonly conclusion: ActorExecutionConclusion; readonly output: unknown; readonly afterSettle: () => Promise<void> };\n\n/**\n * How many change-set file entries ride on the durable row's summary.\n *\n * A build task's change-set is a handful of files by construction — the task declares its mutation\n * scope — so this bounds the pathological case rather than the ordinary one. Chosen over \"all of\n * them\" because the row is read by a judge whose brief is assembled per run, and over \"none of them\"\n * because that is what made the judge answer INDETERMINATE about work it could not see.\n */\nconst CHANGE_SET_SUMMARY_FILE_LIMIT = 40;\n\n/** Local narrow: is this an indexable object (not null, not an array)? */\nfunction isRecordValue(value: unknown): value is Record<string, unknown> {\n return typeof value === 'object' && value !== null && !Array.isArray(value);\n}\n\n/**\n * What a settled application coding run ACTUALLY did, read back from its durable row.\n *\n * Admission and settlement are different instants, and the gap between them is the whole run. A\n * caller that reports the first as the second says a green thing about work that has not happened\n * — which is what `bottom_up.build-dispatch` did on its first playbook run: `finishedAt` equalled\n * the coding run's `startedAt` to the millisecond. So this is the shape a waiting caller reports\n * INSTEAD of its own admission.\n *\n * `succeeded` is the durable row's own verdict, never re-derived here: the disposition ladder that\n * produced it (agent failure → capture failure → verification failure → traceability failure →\n * working result) lives at the one site that can see all four, and a second opinion computed from\n * a subset would disagree with it eventually.\n */\nexport interface ApplicationCodingTaskSettledOutcome {\n readonly taskId: string;\n /** The build-plan task this run was dispatched for, when the row records one. */\n readonly taskRef: string | null;\n /** The durable actor-task status: COMPLETED, FAILED, ABORTED, CANCELLED — or AWAITING_APPROVAL for a parked run (#1359). */\n readonly status: string;\n readonly succeeded: boolean;\n readonly disposition: string | null;\n /**\n * The run PARKED asking the operator a question, so it is neither finished nor failed. Its row\n * WAITS (`AWAITING_APPROVAL`), and reporting that as a failure would tell an operator to\n * re-dispatch work that is one answer away from continuing. Read from the STATUS, not from the\n * question left on the output — a withdrawn park keeps its output and is waiting for nobody.\n */\n readonly awaitingAnswer: boolean;\n /** Named, not counted: a caller that must say WHY a run failed cannot do it from a number. */\n readonly failedVerificationRefs: readonly string[];\n /**\n * Every verification check the run gated on, pass or fail. The `dispatch-outcome-sound` treatment's\n * first criterion reads exactly this — \"every required verification check succeeded\" — and it cannot\n * be answered from the failures alone: a run that ran NO checks and a run that passed three are\n * indistinguishable once only the empty failure list survives.\n */\n readonly verification: ReadonlyArray<{ readonly checkRef: string; readonly success: boolean }>;\n /** The run's change-set as the host sealed it (shas, whether HEAD moved, stats), carried verbatim. */\n readonly changeSetSummary: Record<string, unknown> | null;\n /**\n * What the run changed OUTSIDE its declared scope, RECORDED rather than refused (2026-09-13). It may\n * include a parallel session's edits, which is why it is evidence for a reviewer and not a verdict.\n */\n readonly scopeAssessment: Record<string, unknown> | null;\n /**\n * Why the agent's turn ended. A turn that stopped on `max_tokens` or `refusal` leaves a partial change\n * set that looks exactly like a complete one from the diff alone.\n */\n readonly agentStopReason: string | null;\n}\n\n/** One live frame relayed to an SSE subscriber: an agent event or a ladder state change. */\nexport interface CodingSessionLiveFrame {\n readonly channel: 'event' | 'state';\n readonly payload: unknown;\n}\n\ninterface VerificationOutcome {\n kind: VerificationKind;\n path: string | null;\n success: boolean;\n message: string;\n stdoutTail: string;\n stderrTail: string;\n}\n\n/**\n * What changed inside the run window outside the sealed task scope — RECORDED for the reviewer, never\n * a reason to fail the run. See {@link assessApplicationCodingTaskMutationScope} for why.\n */\ninterface ApplicationCodingTaskScopeAssessment {\n /**\n * Changed-during-run paths (application-relative) that fall outside `allowedPathPrefixes` or inside\n * `prohibitedPathPrefixes`. This run's work OR a parallel session's — the change set cannot tell\n * which, so this is a list to read, not a verdict.\n *\n * Never a path ABOVE the application root (#1020). Such a path is keyed `../…` and lands in the\n * change set as `OUTSIDE_APPLICATION_ROOT` — visible and counted there — but a task scope is\n * application-relative by contract and could never have admitted it, so listing it here would only\n * ever name other sessions' edits elsewhere in the repository. Measured: 38 of 39 on one run.\n */\n outOfScopePaths: string[];\n /**\n * Every changed path the scope list above DELIBERATELY drops, each with the attribution class that\n * dropped it: committed inside the window, written by a concurrent companion lane, or above the\n * application root.\n *\n * The exclusions themselves are right and unchanged — a task scope is application-relative and could\n * never have admitted a `../…` path (#1020); a commit inside the window empties the dirty set every\n * other class is computed from; a concurrent lane's writes are not this run's to answer for. What was\n * missing is that a reader could not tell a deliberate exclusion from an omission.\n *\n * The evaluation treatment's judge found that twice in one hour on 2026-09-16, about a DIFFERENT\n * class each time — first `outside_application_root` (\"the evidence therefore does not account for\n * it\"), then `committed_during_run` (\"only labeled `committed_during_run`; it is not listed in\n * `outOfScopePaths` or otherwise accounted for\"). Reporting one class and excluding three is what\n * made the second finding inevitable, so this is total over the predicate rather than a list of the\n * classes anyone has complained about so far.\n */\n excludedFromScopeAssessment: Array<{ path: string; attribution: ChangeSetAttributionClass }>;\n /**\n * A commit landed inside the run window, so this window's attribution is\n * INCOMPLETE: a commit empties the dirty set every other class here is\n * computed from, and a parallel session's commit is indistinguishable from\n * the agent's own.\n *\n * RECORDED, NOT REFUSED — decided 2026-08-19, and the reasoning is the same\n * rule the plan applies to every other strictness in this vertical: exactness\n * is retained where a protected, accepted-state or real-effect consumer needs\n * it, and nowhere else. A coding run produces a WORKING result; it mutates no\n * accepted truth. Refusing the whole run here bought no protection of\n * anything accepted, while on a shared tree with parallel sessions ANY commit\n * overlapping ANY run — including one touching nothing the agent touched —\n * failed that run, with no worktree isolation to fall back on (ruled out for\n * this application) and no remedy a single session can enforce.\n *\n * What replaces the refusal is visibility that a consumer cannot miss: the\n * committed paths are recovered into the change set as\n * `COMMITTED_DURING_RUN`, and this flag rides on the recorded result. The\n * OBLIGATION moves with it — whatever later accepts this working result must\n * treat `historyMutated` as attribution it cannot rely on, and must not\n * promote it without review. That obligation belongs to whoever reviews and\n * commits the result: no code reads `historyMutated`.\n */\n historyMutated: boolean;\n}\n\n/**\n * Which changed-during-run paths fall outside the task's declared scope. RECORDED, NOT REFUSED.\n *\n * Decided by Paul, 2026-09-13, after measuring what the refusal cost. `build-task-company-config` made\n * its two in-scope edits, stopped at `end_turn`, and was recorded failed — against three\n * `marketing/website` files a parallel Claude Code session edited inside the run window. The capture\n * compares a snapshot at dispatch with one at the end, so a file that was clean at dispatch and dirty\n * at the end is `RUN_EXCLUSIVE` whoever wrote it. On a tree where several sessions work at once, that\n * made EVERY coding run fail the moment anyone touched anything else: the intended use — hand the\n * Wildo lane a change and keep editing elsewhere meanwhile — could not work at all.\n *\n * The same reasoning was already applied twice and is now applied everywhere: a commit landing\n * mid-run (2026-08-19) and a concurrent research lane (2026-09-09) were each excluded because they\n * cannot be attributed. A parallel session's uncommitted edit is the same fact, and it cannot be\n * listed by root, so the refusal itself is what goes. This is also the application-creation\n * directive: mutation is free, git makes every change visible and reversible, and acceptance is the\n * commit — a restriction arrives later as a judge reading this list, never as a refusal in the lane.\n *\n * What stays enforced is the agent's OWN act: an edit whose permission request declares a location\n * outside the scope is still denied in flight by the runner. What this list adds is visibility for\n * what that guard cannot see — shell commands, which declare no location, and other people's edits.\n * One limit on that: for an application nested inside its repository, a NEW untracked file created\n * OUTSIDE the application is not listed, because `ls-files --others` run from the application root sees\n * only untracked files beneath it. A shell write escaping the application is visible here when it\n * modifies a tracked file, not when it creates one. Verification runs regardless.\n */\nfunction assessApplicationCodingTaskMutationScope(\n changeSet: GitChangeSetCapture,\n allowedPrefixes: readonly string[],\n prohibitedPrefixes: readonly string[],\n): ApplicationCodingTaskScopeAssessment {\n const normalizedAllowed = allowedPrefixes.map(normalizeApplicationRelativePrefix);\n const normalizedProhibited = prohibitedPrefixes.map(normalizeApplicationRelativePrefix);\n /*\n * Committed paths are deliberately EXCLUDED from the scope decision. They are\n * present in `changeSet.files` (as `COMMITTED_DURING_RUN`) so nothing is\n * invisible, but nobody can attribute them: a parallel session's commit and\n * the agent's own look identical from here, so listing them would record\n * other people's work as this run's. `historyMutated` carries that fact forward\n * instead, for whoever reviews the result.\n */\n /*\n * A disappearance is only listed when the run can be held responsible for it, and a commit\n * landing inside the window is precisely when it cannot.\n *\n * `disappearedFromBaseline` is \"dirty at baseline, no longer dirty post-run\", which has two\n * causes that look identical from here: the agent reverted or deleted the file (attributable,\n * and a real boundary breach if the path is out of scope), or a commit emptied the dirty set\n * (not attributable — a parallel session's commit and the agent's own are indistinguishable,\n * which is the exact reasoning the `COMMITTED_DURING_RUN` exclusion above already applies).\n *\n * Including them unconditionally made the two treatments contradict each other: the committed\n * PATHS were excluded as unattributable while the disappearance THAT SAME COMMIT CAUSED was\n * used to fail the run. Measured 2026-08-28 on wonder-crm — a run that stopped cleanly at\n * `end_turn`, honoured every permission decision and wrote NOTHING (`runExclusive: 0`,\n * `appearedDuringRun: 0`) was recorded `mutation_scope_violation` against 13 engine paths it\n * never touched, because a human committed at 17:47:56 and 17 baseline-dirty files left the\n * set. The field's own contract already said they \"are NOT attributed change-set entries\".\n *\n * So the exclusion is conditional, not blanket: with no commit in the window a disappearance\n * IS the run's doing and is still listed. Only the case the run cannot be responsible for is\n * dropped, and it stays visible — the paths remain on `disappearedFromBaseline`, and\n * `historyMutated` tells the reviewer the window is unattributable.\n */\n const disappearancesAttributableToTheRun = changeSet.headMovedDuringRun\n ? []\n : changeSet.disappearedFromBaseline;\n\n /*\n * A CONCURRENT_HOST_LANE path is excluded for the same reason a committed one\n * is, and the exclusion is applied in the same place for the same reason: it\n * belongs to a companion lane that runs INSIDE this window and is not this\n * run's to write. The research dispatch takes no workspace-mutation lock by\n * design — it mutates nothing but its own evidence store — and that store is\n * committable and therefore fully visible here, so before this filter (2026-09-09,\n * while this check still refused) one `POST /api/companion/research` overlapping\n * a coding run failed the coding run as `MUTATION_SCOPE_VIOLATION` against files\n * it never touched. Today nothing refuses; the filter keeps another lane's\n * writes off the out-of-scope list the reviewer reads, so that list names only\n * paths that could be this run's.\n *\n * Both halves are filtered, and the second is easy to miss: an entry carries\n * an attribution class, while a DISAPPEARANCE is a bare path — so the\n * disappearance of an evidence file a research round rewrote or deleted would\n * otherwise be listed. One predicate answers both (its own contract says why it\n * is exported).\n */\n /*\n * And a path ABOVE THE APPLICATION ROOT is excluded on the same terms (#1020): the scope this list\n * is compared against is application-relative, so `../engine/…` can never be admitted by it, and on a\n * monorepo checkout such a path is another session's edit — 38 of the 39 paths one run was recorded\n * against. The entry stays in the change set as `OUTSIDE_APPLICATION_ROOT` and is counted; the bare\n * disappearance is filtered by the same predicate, for the reason given above.\n */\n /*\n * THE exclusion predicate, named once and read twice: by the scope list that drops these entries and\n * by the record that names them. Deriving both from one function is the point — the previous shape\n * excluded three classes and reported one, which is how the judge came to read an unexplained gap\n * twice in an hour, about a different class each time.\n */\n const isExcludedFromScopeAssessment = (attribution: ChangeSetAttributionClass): boolean =>\n attribution === ChangeSetAttributionClass.COMMITTED_DURING_RUN\n || attribution === ChangeSetAttributionClass.CONCURRENT_HOST_LANE\n || attribution === ChangeSetAttributionClass.OUTSIDE_APPLICATION_ROOT;\n const outOfScopePaths = [\n ...changeSet.files\n .filter((entry) => !isExcludedFromScopeAssessment(entry.attribution))\n .map((entry) => entry.path),\n ...disappearancesAttributableToTheRun.filter((path) => !isConcurrentHostLanePath(path) && !isOutsideApplicationRootPath(path)),\n ]\n .filter((path) => {\n const normalizedPath = normalizeApplicationRelativePrefix(path);\n const inAllowedScope = normalizedAllowed.some((prefix) => matchesApplicationRelativePrefix(normalizedPath, prefix));\n const inProhibitedScope = normalizedProhibited.some((prefix) => matchesApplicationRelativePrefix(normalizedPath, prefix));\n return !inAllowedScope || inProhibitedScope;\n });\n /*\n * Everything the scope list deliberately drops, named WITH THE CLASS that dropped it, so the record\n * reconciles itself instead of leaving a reader to infer an omission. Derived from the predicate\n * above, so a class added to the exclusion tomorrow is reported here the same day.\n */\n const excludedFromScopeAssessment = changeSet.files\n .filter((entry) => isExcludedFromScopeAssessment(entry.attribution))\n .map((entry) => ({ path: entry.path, attribution: entry.attribution }));\n return {\n // No field here gates the run: all are recorded for whoever reviews and commits this result.\n outOfScopePaths,\n excludedFromScopeAssessment,\n historyMutated: changeSet.headMovedDuringRun,\n };\n}\n\n/**\n * The LIVE counterpart of {@link assessApplicationCodingTaskMutationScope}:\n * decides, while the agent is still running, whether one absolute path is\n * inside the task's declared mutation scope.\n *\n * Deliberately reuses the SAME normalisation and boundary matching as the\n * post-hoc assessment. Two predicates answering \"is this path in scope?\" with\n * different rules would make the record contradict the guard — a path the live\n * guard permitted listed as out of scope afterwards, or a refused one missing\n * from that list's reasoning. (The post-hoc assessment only records since\n * 2026-09-13; the agreement still matters, because the reviewer reads both.)\n *\n * It NARROWS and never widens: the permission ceiling still decides the KIND of\n * operation, and this only refuses a path that ceiling would otherwise allow.\n * A path outside the workspace is refused outright rather than reasoned about.\n */\n/*\n * The option refs and the field ref moved to `@wildo-ai/platform-core-shared` on 2026-09-19, beside\n * the `workbenchParkedCodingQuestions` row that carries them to a browser. They are re-exported here\n * under their old names so this file's callers are unchanged, and there is ONE declaration.\n */\nexport { Workbench_ParkedCodingQuestionOptionRef as ParkedCodingQuestionOptionRef } from '@wildo-ai/platform-core-shared';\nexport { WORKBENCH_PARKED_CODING_QUESTION_FIELD_REF as PARKED_CODING_QUESTION_FIELD_REF } from '@wildo-ai/platform-core-shared';\n\n/**\n * Exported for tests that build the service without its constructor (field initializers do not run\n * under `Object.create`), so they read the PRODUCTION classification rather than a copy of it.\n */\nexport const CODING_RUN_OPTIONS: ActorExecutionRunOptions<CodingRunResult> = {\n suspendOn: (result) => (result.kind === CodingRunEnding.PARKED ? result.suspension : null),\n concludeAs: (result) => (result.kind === CodingRunEnding.CONCLUDED ? result.conclusion : null),\n};\n\n/**\n * Project a parked coding run as a decision a person can be shown.\n *\n * ONE free-text field, because that is what ACP gives us: `CodingAgent_SessionSuspension` carries the\n * agent's end-of-turn message and nothing structured. The payload's field set is general enough to\n * carry that as its degenerate case, which is the point of modelling a question as a field set rather\n * than as \"the question\".\n *\n * `resumable: false` is surfaced in the description rather than hidden: the question is still real,\n * but answering starts a NEW session that must restate the task context — a degradation the person\n * deciding should see, not one the caller should smooth over.\n */\nfunction projectParkedCodingQuestionAsDecision(parked: {\n /** The TASK id — the lane's handle everywhere (the answer door, the live stream, the board row). */\n readonly taskId: string;\n readonly taskRef: string;\n readonly suspension: { readonly question: string; readonly resumable: boolean };\n readonly parkedAt: string;\n}): HumanDecision_Request {\n return {\n decisionId: parked.taskId,\n title: parked.taskRef,\n description: parked.suspension.resumable\n ? 'The coding agent stopped to ask. Answering resumes the same session.'\n : 'The coding agent stopped to ask. This session cannot be re-entered, so answering starts a NEW one that must restate the task context.',\n fields: [{\n ref: WORKBENCH_PARKED_CODING_QUESTION_FIELD_REF,\n question: parked.suspension.question,\n kind: HumanDecision_FieldKind.FREE_TEXT,\n }],\n options: [\n { ref: Workbench_ParkedCodingQuestionOptionRef.ANSWER, label: 'Answer and continue', intent: HumanDecision_ResponseIntent.PROCEED_WITH_VALUES },\n { ref: Workbench_ParkedCodingQuestionOptionRef.CANCEL, label: 'Cancel this run', intent: HumanDecision_ResponseIntent.ABORT },\n ],\n requestedAt: parked.parkedAt,\n };\n}\n\nexport function buildApplicationCodingTaskLocationPredicate(\n workspaceRootPath: string,\n allowedPrefixes: readonly string[],\n prohibitedPrefixes: readonly string[],\n): (absolutePath: string) => boolean {\n const normalizedAllowed = allowedPrefixes.map(normalizeApplicationRelativePrefix);\n const normalizedProhibited = prohibitedPrefixes.map(normalizeApplicationRelativePrefix);\n\n /*\n * Compare against BOTH the configured root and its physical realpath.\n *\n * Agents report CANONICAL absolute paths. Measured live on 2026-08-27: with a\n * workspace under `/var/folders/...` (a macOS symlink to `/private/var/...`),\n * the agent's permission request named the `/private/...` form while the\n * configured root was the `/var/...` form, so an IN-SCOPE edit was refused and\n * the run reported the agent declining to do its job. A scope predicate that\n * silently denies everything is worse than one that denies nothing, because\n * it looks like the agent failing rather than the guard misfiring.\n */\n const candidateRoots = applicationRootSpellings(workspaceRootPath);\n\n return (absolutePath: string): boolean => {\n if (!isAbsolute(absolutePath)) {\n return false;\n }\n const relativePath = candidateRoots\n .map((root) => relative(root, absolutePath))\n .find((candidate) => candidate && !candidate.startsWith('..') && !isAbsolute(candidate));\n if (!relativePath) {\n return false;\n }\n const normalizedPath = normalizeApplicationRelativePrefix(relativePath.split(sep).join('/'));\n const inAllowedScope = normalizedAllowed.some((prefix) => matchesApplicationRelativePrefix(normalizedPath, prefix));\n const inProhibitedScope = normalizedProhibited.some((prefix) => matchesApplicationRelativePrefix(normalizedPath, prefix));\n return inAllowedScope && !inProhibitedScope;\n };\n}\n\n/**\n * The configured application root and, when it differs, its physical realpath — the two spellings an\n * agent's absolute path may use (see the predicate above). An unresolvable root is left as authored;\n * a relative check against it still refuses anything outside it.\n */\nfunction applicationRootSpellings(workspaceRootPath: string): string[] {\n const roots = [workspaceRootPath];\n try {\n const physicalRoot = realpathSync.native(workspaceRootPath);\n if (physicalRoot !== workspaceRootPath) roots.push(physicalRoot);\n } catch {\n // Left as authored.\n }\n return roots;\n}\n\nfunction normalizeApplicationRelativePrefix(value: string): string {\n return value.replace(/\\\\/g, '/').replace(/^\\.\\//, '').replace(/\\/+$/, '');\n}\n\n/** Prefix matches require a path boundary: `src/app` does not admit `src/application`. */\nfunction matchesApplicationRelativePrefix(path: string, prefix: string): boolean {\n return path === prefix || path.startsWith(`${prefix}/`);\n}\n\n@injectable()\nexport class CodingAgentDispatchCompanionService {\n private readonly logDebug: (message: string, context?: Record<string, unknown>) => void;\n\n /**\n * The CANCEL HANDLE of the coding session this process is driving — nothing more (#1361).\n *\n * Until 2026-09-20 this was also the single-flight flag (the \"fast 409\" in front of the lockfile),\n * and the status route's answer to \"is a run active\". Both now read the actor plane: a coding run\n * holds the engine's lease on the `worktree` subject, so the refusal and the badge are as true\n * after a restart, or from a second process, as inside the one driving the run. What cannot live\n * on a row is an `AbortController`, so that is what stays here.\n */\n private readonly activeRuns = new Map<string, ActiveRunState>();\n\n /**\n * Every coding run's time in the tree, kept for the runs that overlap it (#1528): a concurrent run\n * records which runs shared the tree with it and which paths they both changed. Pruned to\n * {@link CODING_RUN_WINDOW_RETENTION_MS}; in-process, because the comparison is only ever made by\n * the process that drove both runs.\n */\n private codingRunWindows: CodingRunWindow[] = [];\n\n /**\n * Who wants to know that a run's writes were committed by the loop (#1534).\n *\n * A commit LANDS a task, so every derived board that reads landing is stale the moment one is made.\n * The workbench's `accept` invalidates the creation-plane projection itself; the loop cannot,\n * because the projection already depends on THIS service and injecting it back would be a cycle.\n * So the dependency points the way it already does: the projection subscribes here.\n */\n private readonly runAcceptedListeners: Array<() => void> = [];\n\n public registerRunAcceptedListener(listener: () => void): void {\n this.runAcceptedListeners.push(listener);\n }\n\n /**\n * Who wants to know that a build task's RUN STATE changed (#1310) — every trigger is listed on\n * {@link announceRunStateChanged}: selected, started (fresh or resumed), settled, refused before\n * admission, re-armed, and a generation step opening and ending.\n *\n * Wider than {@link registerRunAcceptedListener} on purpose. Each moves the creation boards through\n * actor-plane state no file signature can see: a selected or started run is in flight to the\n * next-task selection, a settled one changes its dispatch row and can LAND a task declaring no\n * product (the RAN-not-PROVEN mark), a refusal leaves a counted failure, and a re-arm releases a task\n * the loop guard or attempt budget was holding — which is what un-stucks the eligibility board's\n * all-stuck gate. Same direction as the accepted-run seam, for the same reason: the projection\n * depends on this service, so it subscribes here.\n *\n * One timing is deliberate rather than exact: a run that PARKS inside a fresh chain is announced\n * when that chain ends, after the answering agent's turn, so for about one model call a cached\n * board may still count it as in flight. Announcing at the park would re-derive the boards and\n * then again at the chain's end, for a window that closes on its own.\n */\n private readonly runStateChangedListeners: Array<() => void> = [];\n\n public registerRunStateChangedListener(listener: () => void): void {\n this.runStateChangedListeners.push(listener);\n }\n\n /**\n * Tell the run-state-changed listeners, each isolated from the others.\n *\n * Called at every change to a build task's run state that no file shows:\n *\n * - **SELECTED** — {@link openSelectedApplicationCodingExecution} opened a PENDING execution, which\n * the next-task selection already counts as in flight, whichever door opened it;\n * - **STARTED** — a fresh run ADMITTED (after its active-run entry exists), and a resumed run once\n * the engine has moved its rows back to PROCESSING (inside `resumeParkedRunHoldingLock`'s\n * executor, the one moment its start is true);\n * - **SETTLED** — LAST in the `finally` of each TOP-LEVEL chain, a fresh run's background body and\n * `resumeBody`, after the parked-question answering, the active-run release and the settlement\n * resolve, so a board re-derived because of it reads the chain's final state. Never from inside\n * `resumeParkedRunHoldingLock`'s own `finally`, which is a step of a chain some caller settles.\n * Every ending reaches it, including the ones that returned early;\n * - **RE-ARMED** — {@link rearmBuildTask}, even when one of its updates threw.\n *\n * Public because a GENERATION STEP's execution and a coding dispatch refused before admission are\n * opened and settled by the build dispatch service, so that service announces those.\n */\n public announceRunStateChanged(): void {\n for (const listener of this.runStateChangedListeners) {\n try { listener(); } catch (error) { this.logDebug('A run-state-changed listener threw', { error: describeCaughtError(error) }); }\n }\n }\n /**\n * Per-process settlement signal of every application coding task THIS\n * process admitted: resolved when the background run has recorded its\n * terminal durable result (or given up trying). This is the \"owner's\n * completion hook\" the episode driver waits on instead of polling the\n * Actor Task row; a task admitted by a previous process has no entry here,\n * which is correct — restart reconciliation already terminalized it.\n */\n private readonly applicationCodingTaskSettlements = new Map<string, { readonly promise: Promise<void>; resolve(): void }>();\n\n /**\n * The driver's reading of what a coding run's executor returned — see {@link CodingRunResult}.\n * One object for a first run and a resumed one, so the two cannot be read by different ladders.\n */\n private readonly codingRunOptions: ActorExecutionRunOptions<CodingRunResult> = CODING_RUN_OPTIONS;\n\n /**\n * Live-frame subscribers keyed by task id. Fed by the coding session's own\n * event stream and the ladder's state transitions while a run is active;\n * drained by the SSE endpoint. Best-effort throughout — a slow or throwing\n * subscriber never touches the run it observes.\n */\n private readonly codingSessionSubscribers = new Map<string, Set<(frame: CodingSessionLiveFrame) => void>>();\n\n constructor(\n @inject(SAAS_SERVICE_TYPES.Logger)\n private readonly logger: LoggerService,\n @inject(SAAS_SERVICE_TYPES.ErrorBuilderService)\n private readonly errorBuilder: ErrorBuilderBackendService,\n @inject(COMPANION_SERVICE_TYPES.CompanionContext)\n private readonly companionContext: CompanionContext,\n @inject(SAAS_SERVICE_TYPES.AgentsBackendService)\n private readonly agentsService: AgentsBackendService,\n @inject(COMPANION_SERVICE_TYPES.GitChangeSetService)\n private readonly gitChangeSetService: GitChangeSetCompanionService,\n @inject(COMPANION_SERVICE_TYPES.ExecutionsService)\n private readonly executionsService: CompanionExecutionsCompanionService,\n @inject(COMPANION_SERVICE_TYPES.TraceabilityService)\n private readonly traceabilityService: CompanionTraceabilityService,\n @inject(COMPANION_SERVICE_TYPES.IntrospectionService)\n private readonly introspectionService: CompanionIntrospectionService,\n // The engine's execution driver (#1359): it opens, suspends, resumes and settles every coding run.\n @inject(SAAS_SERVICE_TYPES.ActorsSystemBackendService)\n private readonly actorsSystem: ActorsSystemBackendService,\n // Which paths each run changed, attributed and hashed — what the workbench's `accept` commits (#1454, Step 7).\n @inject(COMPANION_SERVICE_TYPES.CodingRunWriteRegisterService)\n private readonly codingRunWriteRegister: CodingRunWriteRegisterCompanionService,\n // The commit door the workbench's `accept` uses — called from here only under the posture (#1534).\n @inject(COMPANION_SERVICE_TYPES.AcceptedChangeCommitService)\n private readonly acceptedChangeCommit: AcceptedChangeCommitCompanionService,\n ) {\n this.logDebug = this.logger.debugByType('CodingAgentDispatchCompanionService');\n this.logger.setDebugTypeLogging('CodingAgentDispatchCompanionService', true);\n }\n\n /**\n * Admit one application-authored coding task onto the normal Flows/Actors\n * Claude Code path — the ONLY coding entry since the raw dispatch endpoint\n * was deleted at the first-activation hard cut. This method accepts only the\n * sealed typed task produced by application composition. The returned\n * acknowledgement is intentionally non-terminal; a completed Actor Task\n * records a working code result and its evidence, never accepted\n * application truth.\n */\n public async runApplicationCodingTask(\n rawTask: MetaWorkflow_ApplicationCodingTaskContract,\n sessionContext?: CompanionExecutionSessionContext,\n /**\n * The execution a caller opened when it SELECTED this task\n * ({@link openSelectedApplicationCodingExecution}). Admission then STARTS that execution instead\n * of opening one, so the run has one pair of ids from selection to settlement. The caller owns it\n * until this method resolves: a rejection here means the run never started, and the caller\n * settles what it opened.\n */\n selected?: OpenedActorExecution,\n /** Where the run was started from (#1454, Step 7): stamped on the row, never read by the run. */\n origin?: CodingRunOrigin,\n /**\n * CONCURRENT only from the build loop's wave (#1528), which opened `selected` in the same mode.\n * Every other door is single-flight, and single-flight refuses while any concurrent run is live.\n */\n mode: CodingRunConcurrency = CodingRunConcurrency.SINGLE_FLIGHT,\n ): Promise<ApplicationCodingTaskRunAdmission> {\n /*\n * Both admission refusals below are TYPED.\n *\n * A malformed contract surfaced as a raw `ZodError` and an unregistered\n * check ref as a plain `Error`, so the two refusals a caller can actually\n * provoke reached the transport as unclassified failures and answered 500\n * INTERNAL — indistinguishable from the host being broken. They are\n * VALIDATION: the request is refused, nothing was locked, created or run.\n */\n const task = this.admitTypedInput(\n () => MetaWorkflow_ApplicationCodingTaskContractSchema.parse(rawTask),\n 'Application coding task contract is not valid.',\n );\n // Resolve before acquiring the lock or creating a task. A semantic check\n // name is not a command and cannot silently fall back to an arbitrary\n // workspace typecheck.\n const verificationPlans = this.admitTypedInput(\n () => resolveApplicationCodingTaskVerificationPlans(task.verificationIntent.requiredChecks),\n 'Application coding task names an unregistered verification check.',\n );\n const traceStep = this.createOperationTraceStep(sessionContext, 'application-coding-task-admission');\n const renderedPrompt = renderApplicationCodingTaskAgentPrompt(task);\n await this.traceOperationStart({\n sessionContext,\n step: traceStep,\n type: 'application-coding-task-admission-start',\n summary: `Admit application coding task ${task.taskRef}`,\n payload: this.buildApplicationCodingTaskTraceSummary(task),\n artifactFileName: 'application-coding-task-input.txt',\n artifactContent: renderedPrompt,\n });\n\n // The FAST 409, read from the rows (#1361): a run holding the worktree that is not the one this\n // call was handed. The authoritative take is the driver's, at open — this only answers early,\n // with the holder named, instead of making the caller wait on the file lock to be told the same.\n await this.refuseWhileWorktreeIsHeld(selected?.executionId ?? null, sessionContext);\n if (mode === CodingRunConcurrency.SINGLE_FLIGHT) await this.refuseWhileConcurrentRunsInFlight(sessionContext);\n\n const admission = createDeferred<{ opened: OpenedActorExecution; baseline: GitWorktreeSnapshot }>();\n const runBody = async () => {\n let admitted: { opened: OpenedActorExecution; baseline: GitWorktreeSnapshot };\n // Before the baseline, never inside the run: a playbook file left uncommitted here would be\n // dirty at this run's baseline, and this run's own accept would then refuse it (#1534). A\n // concurrent run holds no lock, so it takes one for this commit only.\n await (mode === CodingRunConcurrency.CONCURRENT\n ? this.underBriefWorktreeLock(() => this.acceptPendingPlaybookRunsBeforeBaseline())\n : this.acceptPendingPlaybookRunsBeforeBaseline());\n try {\n const baseline = await this.gitChangeSetService.captureWorktreeSnapshot();\n // The run IS an actor-system execution from here on (#1359): the engine opens the\n // execution and its task, and will settle both however the run ends.\n const opened = selected\n ? await this.startSelectedApplicationCodingExecution(selected, task, baseline, sessionContext, origin)\n : await this.openApplicationCodingExecution(task, baseline, sessionContext, origin, mode);\n this.activeRuns.set(opened.taskId, {\n taskId: opened.taskId,\n startedAt: new Date().toISOString(),\n abortController: new AbortController(),\n mode,\n });\n this.openCodingRunWindow(opened.taskId, task.taskRef);\n // Started: the run has left the next-task selection's ready set, and no file says so yet.\n this.announceRunStateChanged();\n admitted = { opened, baseline };\n // Registered BEFORE the admission is resolved, so a caller that\n // awaits the settlement right after admission can never miss it.\n const settlement = createDeferred<void>();\n this.applicationCodingTaskSettlements.set(opened.taskId, { promise: settlement.promise, resolve: () => settlement.resolve(undefined) });\n admission.resolve(admitted);\n } catch (error) {\n admission.reject(this.translateWorktreeBusy(error));\n return;\n }\n\n try {\n const trace = await this.openCodingRunTrace(admitted.opened.taskId, task.taskRef);\n await this.superviseCodingRun(task.taskRef, admitted.opened.taskId, trace, (capture) =>\n this.actorsSystem.completeActorExecution(\n admitted.opened,\n async (opened) => capture(await this.executeApplicationCodingTask(task, renderedPrompt, verificationPlans, opened, admitted.baseline, trace)),\n trace.runSession,\n this.codingRunOptions,\n ));\n // Before the settlement resolves and before the worktree is released: a question the run\n // parked on is offered to the answering agent while nothing else can take the worktree (#1559).\n await this.answerParkedQuestionsHoldingLock(admitted.opened.taskId, sessionContext);\n } finally {\n this.endCodingRunWindow(admitted.opened.taskId);\n this.activeRuns.delete(admitted.opened.taskId);\n this.applicationCodingTaskSettlements.get(admitted.opened.taskId)?.resolve();\n this.announceRunStateChanged();\n }\n };\n /*\n * A SINGLE-FLIGHT run holds the workspace lock for its whole life, as it always has. A CONCURRENT\n * run holds none (#1528): the tree is shared by decision, and interference is detected and\n * repaired rather than prevented. It takes the lock only around a commit.\n */\n const backgroundRun = mode === CodingRunConcurrency.CONCURRENT\n ? runBody()\n : withDedicatedFileLock(this.getWorkspaceMutationLockPath(), runBody, { retries: { retries: 0 } });\n backgroundRun.catch((error: unknown) => {\n admission.reject(this.mapLockError(error));\n this.logDebug('Application coding-task background run chain terminated with error', {\n error: describeCaughtError(error),\n taskRef: task.taskRef,\n });\n });\n\n const admitted = await admission.promise;\n const response: ApplicationCodingTaskRunAdmission = {\n taskId: admitted.opened.taskId,\n status: FlowsActors_Status.PROCESSING,\n taskRef: task.taskRef,\n baselineHeadSha: admitted.baseline.headSha,\n baselineDirtyFileCount: Object.keys(admitted.baseline.files).length,\n };\n /*\n * The run has STARTED by now, so nothing after this point may reject: a caller reads a rejection\n * from this method as \"the run never started\" and settles its execution ABORTED (#1581, second\n * review A7). The trace is evidence ABOUT the admission, never a condition of it.\n */\n try {\n await this.traceOperationSuccess({\n sessionContext,\n step: traceStep,\n type: 'application-coding-task-admission-success',\n summary: `Admitted application coding task ${task.taskRef} as Actor Task ${admitted.opened.taskId} of execution ${admitted.opened.executionId}`,\n payload: response,\n artifactFileName: 'application-coding-task-admission.json',\n artifactContent: response,\n });\n } catch (traceError) {\n this.logDebug('The admission-success trace could not be written; the run is admitted regardless', {\n taskId: admitted.opened.taskId, error: describeCaughtError(traceError),\n });\n }\n return response;\n }\n\n /**\n * The settlement of one application coding task admitted by THIS process:\n * resolves once its terminal durable result has been recorded (success or\n * failure) — the only moment a waiting episode can read a non-PROCESSING\n * row. `null` for a task this process did not admit (a previous process's\n * row, already terminalized by restart reconciliation, or an unknown id):\n * there is nothing to wait for, and a caller must not spin on it.\n */\n public awaitApplicationCodingTaskSettlement(taskId: string): Promise<void> | null {\n return this.applicationCodingTaskSettlements.get(taskId)?.promise ?? null;\n }\n\n /**\n * Read one application coding task's OUTCOME from its durable row.\n *\n * Pairs with {@link awaitApplicationCodingTaskSettlement}: wait for the settlement, then ask this\n * what the run did. The two are deliberately separate — the settlement is an in-process fact (only\n * this process holds the deferred), while the outcome is durable and survives the restart that a\n * rebuild triggers, so a caller that lost the settlement can still answer the question.\n *\n * `null` for a row that is not an application coding task, or that cannot be read at all. An\n * unreadable row is not a failed run, and a caller must not report it as one.\n */\n public async readApplicationCodingTaskOutcome(\n taskId: string,\n sessionContext?: CompanionExecutionSessionContext,\n ): Promise<ApplicationCodingTaskSettledOutcome | null> {\n let row: { _id?: string; status?: unknown; actors?: { actorRef?: string }; input?: unknown; output?: unknown };\n try {\n row = await this.executionsService.getActorTask(taskId, sessionContext);\n } catch {\n return null;\n }\n // MEMBERSHIP, as everywhere else that classifies one of these rows: a second declared coding\n // agent must not make this silently answer \"not a coding run\".\n if (!isApplicationCodingAgentRef(row.actors?.actorRef)) return null;\n const output = isRecordValue(row.output) ? row.output : {};\n const verificationRows = (Array.isArray(output.verification) ? output.verification : [])\n .filter((entry): entry is Record<string, unknown> => isRecordValue(entry))\n .map((entry) => ({\n checkRef: typeof entry.checkRef === 'string' ? entry.checkRef : 'unknown',\n success: isRecordValue(entry.outcome) && entry.outcome.success === true,\n }));\n const failedVerificationRefs = verificationRows.filter((entry) => !entry.success).map((entry) => entry.checkRef);\n return {\n taskId: typeof row._id === 'string' ? row._id : taskId,\n taskRef: isRecordValue(row.input) && typeof row.input.taskRef === 'string' ? row.input.taskRef : null,\n status: typeof row.status === 'string' ? row.status : 'UNKNOWN',\n succeeded: output.succeeded === true,\n disposition: typeof output.disposition === 'string' ? output.disposition : null,\n // The STATUS says it, since #1359: a parked run waits as `AWAITING_APPROVAL`. The output still\n // carries the question while it waits, but a withdrawn park keeps that output and is not waiting.\n awaitingAnswer: row.status === FlowsActors_Status.AWAITING_APPROVAL,\n failedVerificationRefs,\n verification: verificationRows,\n changeSetSummary: isRecordValue(output.changeSetSummary) ? output.changeSetSummary : null,\n scopeAssessment: isRecordValue(output.scopeAssessment) ? output.scopeAssessment : null,\n agentStopReason: typeof output.agentStopReason === 'string' ? output.agentStopReason : null,\n };\n }\n\n /**\n * Settle what a previous process left behind: coding runs still `PROCESSING`, and parked\n * questions a restarted host can no longer show as answerable.\n *\n * A companion restart cannot prove the previous coding subprocess is still running. Retrying\n * could duplicate a worktree mutation, while reverting would destroy evidence. The safe result is\n * therefore a terminal abort plus an explicit human-review disposition carrying what the worktree\n * looked like when the restart found it.\n *\n * Since #1359 the engine's execution driver does the settling, exactly as it does for playbook\n * runs, and this method supplies the two things only the coding lane knows:\n *\n * 1. **What an ORPHAN's task should say** — the recovery evidence. The driver lists the\n * `PROCESSING` executions of `application-coding.system` and settles each `ABORTED`.\n * 2. **Which PARKS survive a restart: every one whose session can be re-entered.** A parked run\n * is `AWAITING_APPROVAL`, never `PROCESSING`, so the orphan sweep cannot touch it — the\n * exemption this method used to carry by hand (measured 2026-09-04: the sweep terminalized a\n * parked row three seconds before the operator's answer arrived) is a property of the status.\n * What is aborted here is only a park no host could answer on its session — a non-resumable one,\n * or one whose checkpoint cannot be read ({@link isParkedCodingRunAnswerable}). A park is NOT\n * aborted for its age: that reaped every question that waited longer than fifteen minutes (#1533).\n */\n public async reconcileInterruptedApplicationCodingTasks(\n sessionContext?: CompanionExecutionSessionContext,\n ): Promise<{ reconciledTaskIds: string[] }> {\n const reconciledTaskIds: string[] = [];\n const interruptedWhileRunning: string[] = [];\n\n await this.actorsSystem.reconcileOrphanedActorExecutions(APPLICATION_CODING_SYSTEM_REF, sessionContext, {\n describeOrphan: async (orphan) => {\n reconciledTaskIds.push(...orphan.tasks.map((task) => task._id));\n /*\n * A PENDING orphan was SELECTED and never admitted — usually a restart during the compile-quiet\n * wait. It touched nothing, so it has no writes to recover and nothing to review, and it was no\n * attempt: recorded like a refused dispatch, `{ failure }` and no disposition, so the build\n * board does not count it as a started run that \"requires review\" (#1581, second review A4).\n */\n if (orphan.status === FlowsActors_Status.PENDING) {\n return { failure: { message: 'Selected, and the companion stopped before the run was admitted; nothing ran.' } };\n }\n interruptedWhileRunning.push(...orphan.tasks.map((task) => task._id));\n return this.describeInterruptedCodingRun();\n },\n });\n await this.recoverInterruptedRunWrites(interruptedWhileRunning, sessionContext);\n\n const waiting = await this.actorsSystem.listSuspendedActorExecutions(APPLICATION_CODING_SYSTEM_REF, sessionContext);\n for (const row of waiting) {\n const checkpoint = ApplicationCodingRunCheckpointSchema.safeParse(row.checkpoint?.context);\n if (checkpoint.success && isParkedCodingRunAnswerable(checkpoint.data)) continue;\n await this.actorsSystem.abortSuspendedActorExecution(row._id, await this.describeInterruptedCodingRun(), sessionContext);\n reconciledTaskIds.push(...row.tasks.map((task) => task._id));\n }\n\n return { reconciledTaskIds };\n }\n\n /**\n * Give a run the host stopped under an OWNER for what it wrote, and accept that under the posture.\n *\n * ## Why this exists\n *\n * A run interrupted mid-task leaves its writes in the tree and is settled\n * INTERRUPTED_REQUIRES_REVIEW. Nothing recorded WHICH files it wrote — its baseline lived in memory\n * — so nobody could accept them, and its retry could not claim them either: to the retry they were\n * already dirty at its own baseline (`baseline_dirty_ambiguous`). Measured 2026-09-24 on\n * scratch-journey: an interrupted `build-task-user-menu-placement` left `app-shell.config.ts` dirty;\n * the retry found the work done and recorded no files; a sibling task's edit to the same file was\n * refused as ambiguous; and every shell surface that file carries stopped landing, including one\n * that had landed hours earlier. The build sat at 91/95 with its work done.\n *\n * ## What it does\n *\n * The run's task input now carries its baseline's dirty files, so the change set is the same\n * capture a finished run gets, against the same baseline, recorded in the same write register.\n * Then the ordinary posture decides: under notify-and-proceed it is committed with the\n * INTERRUPTED_RUN_RECOVERY origin (forced, like the end-of-wave repair, because \"already dirty\"\n * and \"edited since\" are exactly what an interruption produces); under a posture that keeps\n * acceptance with a person, the record simply waits for the workbench's Accept, which could not\n * act on an interrupted run before because there was no record.\n *\n * A run started before its input carried `files` has no baseline to diff against and is left as\n * it was. BEST-EFFORT throughout: this runs on the boot path, and a boot path must not fail closed\n * on a repair (`continuity-drift-and-cas-basis.md`, Rule 3).\n */\n private async recoverInterruptedRunWrites(taskIds: readonly string[], sessionContext?: CompanionExecutionSessionContext): Promise<void> {\n const recoveredTaskRefs: string[] = [];\n for (const taskId of taskIds) {\n try {\n const row = await this.executionsService.getActorTask(taskId, sessionContext) as { input?: unknown };\n const input = isRecordValue(row.input) ? row.input : undefined;\n const baseline = input && isRecordValue(input.baseline) ? input.baseline : undefined;\n const taskRef = input && typeof input.taskRef === 'string' ? input.taskRef : undefined;\n if (!taskRef || !baseline || !isRecordValue(baseline.files)\n || typeof baseline.headSha !== 'string' || typeof baseline.capturedAt !== 'string') continue;\n const snapshot: GitWorktreeSnapshot = {\n headSha: baseline.headSha,\n capturedAt: baseline.capturedAt,\n files: baseline.files as GitWorktreeSnapshot['files'],\n };\n const changeSet = await this.gitChangeSetService.captureChangeSet(snapshot);\n if (changeSet.files.length === 0) continue;\n await this.codingRunWriteRegister.record({ taskId, taskRef, changeSet });\n recoveredTaskRefs.push(taskRef);\n } catch (error) {\n this.logger.warn('Could not recover the writes of an interrupted coding run; it stays for review', {\n taskId, error: describeCaughtError(error),\n });\n }\n }\n if (recoveredTaskRefs.length === 0) return;\n const results = await this.reconcileAcceptance(recoveredTaskRefs, AcceptOrigin.INTERRUPTED_RUN_RECOVERY);\n this.logger.warn('Recovered the writes of coding run(s) interrupted by a restart', { recoveredTaskRefs, results });\n }\n\n /**\n * Write a run's baseline onto its own task, for a run whose task was opened before the baseline\n * existed: a GENERATION STEP, whose window captures it after the execution is open. A coding run\n * carries it from its start ({@link buildApplicationCodingTaskInput}). Best-effort: the step runs\n * whether or not its recovery evidence could be written.\n */\n private async recordRunBaselineOnTask(taskId: string, baseline: GitWorktreeSnapshot, sessionContext?: CompanionExecutionSessionContext): Promise<void> {\n try {\n const row = await this.executionsService.getActorTask(taskId, sessionContext) as { input?: unknown };\n const input = isRecordValue(row.input) ? row.input : {};\n await this.executionsService.updateActorTask(taskId, {\n input: {\n ...input,\n baseline: { headSha: baseline.headSha, capturedAt: baseline.capturedAt, dirtyFileCount: Object.keys(baseline.files).length, files: baseline.files },\n },\n }, sessionContext);\n } catch (error) {\n this.logger.warn('Could not record a generation step\\'s baseline; an interruption would leave its writes for review', {\n taskId, error: describeCaughtError(error),\n });\n }\n }\n\n /**\n * The build system's startup sweep (#1359), with the same recovery the coding sweep has. A\n * generation step interrupted mid-pass leaves the files it had written, and its re-dispatch SKIPS\n * them as fresh, so they never enter any later change set. Measured 2026-09-24: an interrupted\n * `i18n-labels` pass left ten label files uncommitted that no later run would ever commit.\n */\n public async reconcileInterruptedBuildGenerationSteps(\n buildSystemRef: string,\n sessionContext?: CompanionExecutionSessionContext,\n ): Promise<{ aborted: readonly string[] }> {\n const interrupted: string[] = [];\n const { aborted } = await this.actorsSystem.reconcileOrphanedActorExecutions(buildSystemRef, sessionContext, {\n describeOrphan: async (orphan) => {\n interrupted.push(...orphan.tasks.map((task) => task._id));\n return { failure: { message: 'The host running this generation step stopped before it concluded.' } };\n },\n });\n await this.recoverInterruptedRunWrites(interrupted, sessionContext);\n return { aborted };\n }\n\n /**\n * What a reviewer needs to see on a coding run the host stopped under: where HEAD is and how\n * dirty the tree is NOW. A capture that fails is recorded as such — an interrupted run with no\n * evidence is still an interrupted run, and must not stay `PROCESSING` because git was unavailable.\n */\n private async describeInterruptedCodingRun(): Promise<Record<string, unknown>> {\n let currentSnapshot: GitWorktreeSnapshot | null = null;\n let captureError: unknown = null;\n try {\n currentSnapshot = await this.gitChangeSetService.captureWorktreeSnapshot();\n } catch (error) {\n captureError = error;\n }\n return {\n succeeded: false,\n disposition: ApplicationCodingTaskDisposition.INTERRUPTED_REQUIRES_REVIEW,\n recoveryEvidence: currentSnapshot\n ? {\n headSha: currentSnapshot.headSha,\n dirtyFileCount: Object.keys(currentSnapshot.files).length,\n capturedAt: currentSnapshot.capturedAt,\n }\n : null,\n ...(captureError ? { recoveryCaptureError: buildOutputErrorPayload(captureError) } : {}),\n };\n }\n\n /**\n * Readiness snapshot for the status route. HONESTY CONTRACT: the\n * underlying `isAvailable()` checks ONLY that the provider registry\n * exposes an AGENT_CLIENT_PROTOCOL contract for anthropic — it does NOT\n * guarantee the ACP adapter is installed, spawnable, or authenticated. A\n * `true` here can still be followed by a spawn/auth failure at run time.\n */\n /**\n * The cross-process workspace-mutation lock path (P-19b) — one lock for\n * every mutating coding run against this application worktree.\n */\n public getWorkspaceMutationLockPath(): string {\n return resolveWorkspaceMutationLockPath(this.companionContext.saasRoot);\n }\n\n /**\n * Cancel the in-flight coding run, if there is one.\n *\n * Cooperative by construction: this signals the session, and the runner sends\n * `session/cancel` and waits before killing anything. The run therefore\n * TERMINALISES NORMALLY — with stop reason `cancelled` and a captured change\n * set — rather than vanishing. That distinction is the whole point: an\n * operator who stops a run still needs to know what it had already written.\n *\n * Returns the task that was asked to stop, or `null` when nothing is running.\n * Idempotent: cancelling an already-cancelled run signals an aborted\n * controller again, which is a no-op.\n */\n public cancelActiveApplicationCodingTask(): { taskId: string; startedAt: string } | null {\n // Every run this process drives: a wave is cancelled as one (#1528). The first is named, as before.\n const active = [...this.activeRuns.values()];\n if (active.length === 0) {\n return null;\n }\n for (const run of active) {\n this.logDebug('Cancelling active application coding task', { taskId: run.taskId });\n run.abortController.abort();\n }\n return { taskId: active[0]!.taskId, startedAt: active[0]!.startedAt };\n }\n\n /**\n * The run holding the worktree right now, from the actor plane (#1361) — what the creation board's\n * coding-lane badge shows. It read this process's cancel handle until 2026-09-20, so a run driven\n * by another process, or selected and not yet admitted, showed as \"idle\". A status read does not\n * fail because the plane is unreachable: it then answers what this process is driving.\n */\n private async readActiveCodingRun(): Promise<{ taskId: string; startedAt: string } | null> {\n try {\n const holder = await this.actorsSystem.readExclusiveSubjectHolder(APPLICATION_CODING_SYSTEM_REF, APPLICATION_CODING_WORKTREE_SUBJECT);\n return holder ? { taskId: holder.tasks[0]?._id ?? holder._id, startedAt: holder.createdAt ?? new Date().toISOString() } : null;\n } catch {\n const active = this.activeRuns.values().next().value as ActiveRunState | undefined;\n return active ? { taskId: active.taskId, startedAt: active.startedAt } : null;\n }\n }\n\n public async getStatus(): Promise<CompanionCodingAgentStatusResponse> {\n return {\n // Reports a fact this service can actually establish: whether the coding\n // agent is registered. It deliberately does NOT claim the transport is\n // usable — that depends on the provider configuration and on an agent\n // process this service has not started, and a status field that overstates\n // its knowledge is worse than one that is narrow about it.\n // Every declared agent must resolve, not merely the default: a registry\n // missing the SELECTED agent reports healthy while dispatch refuses.\n codingAgentRegistered: APPLICATION_CODING_AGENT_REFS.every(\n (ref) => this.agentsService.getAgent(ref) !== undefined,\n ),\n activeRun: await this.readActiveCodingRun(),\n // The answerable set: what is parked waiting for an operator response.\n pendingQuestions: await this.listPendingCodingQuestions(),\n limits: {\n defaultTimeoutMs: DISPATCH_DEFAULT_TIMEOUT_MS,\n hardMaxTimeoutMs: DISPATCH_HARD_MAX_TIMEOUT_MS,\n defaultMaxCapturedBytes: DISPATCH_DEFAULT_MAX_CAPTURED_BYTES,\n hardMaxCapturedBytes: DISPATCH_HARD_MAX_CAPTURED_BYTES,\n },\n lockFilePath: this.getWorkspaceMutationLockPath(),\n };\n }\n\n /**\n * Persist only replayable task identity and guard evidence, never\n * prompt/context bytes.\n *\n * CORRELATION BACK TO THE EPISODE runs through `input.candidateRef`, which is\n * the assessment episode's working-subject identity for the iteration that\n * composed this task — the same value the private checkpoint carries as\n * `basis.episode.candidateRef`. It is recorded here deliberately so the join\n * exists in BOTH directions: the checkpoint names the taskId once the task is\n * admitted, and this row names the candidate that caused it, so an auditor\n * starting from a workspace mutation can reach the episode without scanning\n * every checkpoint.\n *\n * A dedicated `episodeRef` column is NOT added: no caller supplies one yet\n * (the coding revision owner lands later), and a field with no producer is a\n * dormant surface that later readers mistake for a guarantee. The candidate\n * ref is exact per ITERATION, which is the granularity an auditor wants.\n */\n private async openApplicationCodingExecution(\n task: MetaWorkflow_ApplicationCodingTaskContract,\n baseline: GitWorktreeSnapshot,\n sessionContext?: CompanionExecutionSessionContext,\n origin?: CodingRunOrigin,\n mode: CodingRunConcurrency = CodingRunConcurrency.SINGLE_FLIGHT,\n ): Promise<OpenedActorExecution> {\n /*\n * ONE EXECUTION PER CODING RUN (#1359), opened by the engine's driver.\n *\n * Until 2026-09-20 this created a bare task with no execution parent, so a coding run had no row\n * saying \"this is a run\" and nowhere to hold a pending question or its resume inputs. Per RUN\n * rather than per build phase, because a parked run releases the worktree lock and the\n * dispatcher moves on: several questions can stand while a sibling runs, and an execution has\n * one `suspension`.\n */\n return this.actorsSystem.openActorExecution(this.buildApplicationCodingExecutionRequest(task, baseline, sessionContext, origin, mode));\n }\n\n /**\n * Open a coding run's execution at the moment its task is SELECTED — `PENDING`, not started.\n *\n * A build dispatch selects a task and then waits: for the compile watchers to go quiet, then for\n * the worktree lock. That stretch can be minutes, and until #1359 it existed only in an in-memory\n * dispatch record — so a dispatch that failed inside it failed nowhere durable, and a companion\n * restart forgot it had been selected at all. The row says `PENDING` for exactly that stretch;\n * `runApplicationCodingTask` starts it at admission, and the caller settles it `ABORTED` if the run\n * never gets that far — the host declined to start it, which is no attempt of the task's (#1581) —\n * or `FAILED` when the task's own contract was refused as invalid.\n *\n * The input carries no baseline yet: a baseline is captured under the lock this run has not taken.\n */\n public async openSelectedApplicationCodingExecution(\n rawTask: MetaWorkflow_ApplicationCodingTaskContract,\n sessionContext?: CompanionExecutionSessionContext,\n origin?: CodingRunOrigin,\n mode: CodingRunConcurrency = CodingRunConcurrency.SINGLE_FLIGHT,\n ): Promise<OpenedActorExecution> {\n const task = this.admitTypedInput(\n () => MetaWorkflow_ApplicationCodingTaskContractSchema.parse(rawTask),\n 'Application coding task contract is not valid.',\n );\n await this.refuseWhileWorktreeIsHeld(null, sessionContext);\n if (mode === CodingRunConcurrency.SINGLE_FLIGHT) await this.refuseWhileConcurrentRunsInFlight(sessionContext);\n const opened = await this.actorsSystem\n .openActorExecution({ ...this.buildApplicationCodingExecutionRequest(task, null, sessionContext, origin, mode), deferred: true })\n .catch((error: unknown) => { throw this.translateWorktreeBusy(error); });\n // SELECTED: a PENDING execution is already in flight to the next-task selection (#1310), whichever\n // door opened it — the resource operation, `POST /build/dispatch-next`, the playbook build tier.\n this.announceRunStateChanged();\n return opened;\n }\n\n /**\n * Run `critical` holding the workspace lock BRIEFLY, waiting for it rather than refusing (#1528).\n *\n * For a concurrent run's commits: the tree is shared on purpose, but git's index admits one writer,\n * and a generation step or a CLI writer may hold the lock for its whole duration. Waiting up to about\n * ten minutes is right here, where the single-flight lane's fail-fast would drop a finished run's\n * commit; a commit that still cannot get the lock is left for the wave reconciliation.\n */\n private underBriefWorktreeLock<T>(critical: () => Promise<T>): Promise<T> {\n return withDedicatedFileLock(this.getWorkspaceMutationLockPath(), critical, {\n retries: { retries: 120, minTimeout: 500, maxTimeout: 5_000 },\n });\n }\n\n /**\n * The live coding runs — selected, admitted or running — from the actor plane, so the answer holds\n * across processes and restarts (#1528). A parked run is not live: its agent is closed.\n */\n public async listInFlightCodingRuns(sessionContext?: CompanionExecutionSessionContext): Promise<Array<{\n readonly executionId: string; readonly taskRef: string | null; readonly exclusiveSubject?: string; readonly createdAt?: string;\n }>> {\n const rows = (await Promise.all([FlowsActors_Status.PENDING, FlowsActors_Status.PROCESSING].map((status) =>\n this.executionsService.listActorExecutions(CompanionExecutionsListQuerySchema.parse({ systemRef: APPLICATION_CODING_SYSTEM_REF, status, limit: 200 }), sessionContext)))).flat();\n return rows.map((row) => {\n const execution = row as { _id?: unknown; exclusiveSubject?: string; createdAt?: string; standaloneTasks?: Array<{ input?: unknown }> };\n const input = execution.standaloneTasks?.[0]?.input;\n return {\n executionId: String(execution._id),\n taskRef: isRecordValue(input) && typeof input.taskRef === 'string' ? input.taskRef : null,\n ...(execution.exclusiveSubject ? { exclusiveSubject: execution.exclusiveSubject } : {}),\n ...(execution.createdAt ? { createdAt: execution.createdAt } : {}),\n };\n });\n }\n\n /** The live run of one build task, or `null` — what the wave skips, so no task is built twice at once. */\n public async findInFlightRunForBuildTask(\n buildTaskRef: string,\n sessionContext?: CompanionExecutionSessionContext,\n ): Promise<{ readonly executionId: string } | null> {\n const live = (await this.listInFlightCodingRuns(sessionContext)).find((run) => run.taskRef === buildTaskRef);\n return live ? { executionId: live.executionId } : null;\n }\n\n /**\n * Refuse (409) a SINGLE-FLIGHT run while any concurrent run is live (#1528).\n *\n * Two reasons, and the second is why it is explicit rather than incidental. A single-flight run was\n * promised the tree to itself. And the single-flight door is the one an agent can reach from its own\n * shell: until concurrency, the global lock refused a running agent's dispatch as a SIDE EFFECT (the\n * P-35 recursion cap). A concurrent run does not hold that lock, so without this a recursing agent\n * would be admitted beside its own wave.\n */\n private async refuseWhileConcurrentRunsInFlight(sessionContext?: CompanionExecutionSessionContext): Promise<void> {\n const concurrent = (await this.listInFlightCodingRuns(sessionContext)).filter((run) => isConcurrentRunSubject(run.exclusiveSubject));\n if (concurrent.length === 0) return;\n throw this.buildDispatchConflictError(\n `${concurrent.length} coding run(s) of a parallel build wave are live (${concurrent.map((run) => run.taskRef ?? run.executionId).join(', ')}). `\n + 'A single run cannot start beside them; it runs after the wave, or as part of the next one.',\n );\n }\n\n /** Record that a run entered the tree, for the runs it will overlap (#1528). */\n private openCodingRunWindow(taskId: string, taskRef: string): void {\n const now = Date.now();\n this.codingRunWindows = this.codingRunWindows\n .filter((window) => window.taskId !== taskId && (window.endedAtMs === undefined || now - window.endedAtMs < CODING_RUN_WINDOW_RETENTION_MS));\n this.codingRunWindows.push({ taskId, taskRef, startedAtMs: now });\n }\n\n /** End a run's window if nothing closed it — a parked run, or one that ended without a result. Idempotent. */\n private endCodingRunWindow(taskId: string): void {\n const endedAtMs = Date.now();\n this.codingRunWindows = this.codingRunWindows.map((window) => window.taskId === taskId && window.endedAtMs === undefined\n ? { ...window, endedAtMs }\n : window);\n }\n\n /**\n * Close a run's window with the paths it changed, and say which runs shared the tree with it and\n * which of those paths they changed too (#1528). `null` when it overlapped nothing — a run alone in\n * the tree records nothing new.\n */\n private closeCodingRunWindow(taskId: string, changedPaths: readonly string[]): CodingRunConcurrencyRecord | null {\n const window = this.codingRunWindows.find((candidate) => candidate.taskId === taskId);\n if (!window) return null;\n const endedAtMs = Date.now();\n const record = describeRunConcurrency(this.codingRunWindows, { taskId, startedAtMs: window.startedAtMs, endedAtMs }, changedPaths);\n this.codingRunWindows = this.codingRunWindows.map((candidate) => candidate.taskId === taskId\n ? { ...candidate, endedAtMs, changedPaths: [...changedPaths] }\n : candidate);\n return record.overlappingTaskRefs.length > 0 ? record : null;\n }\n\n /**\n * REPAIR at the end of a wave (#1528): accept each finished run's writes again, now that nothing is\n * writing, with the door's WAVE_RECONCILIATION origin.\n *\n * Under concurrency the ordinary accept refuses exactly what siblings in one tree produce — a path\n * already dirty when the run started, a path edited since — and those tasks would sit unlanded with\n * their work done. At the end of the wave the tree holds the merged result of every run, so\n * committing each run's registered paths commits that result. Only paths the register holds, only\n * under the posture that lets the system accept, and never a path another lane produced.\n */\n public async reconcileWaveAcceptance(taskRefs: readonly string[]): Promise<Array<{ readonly taskRef: string; readonly committedPaths: number; readonly error?: string }>> {\n return this.reconcileAcceptance(taskRefs, AcceptOrigin.WAVE_RECONCILIATION);\n }\n\n /** Force-accept each task's latest registered run, under the posture, with the caller's origin. */\n private async reconcileAcceptance(\n taskRefs: readonly string[],\n origin: AcceptOrigin,\n ): Promise<Array<{ readonly taskRef: string; readonly committedPaths: number; readonly error?: string }>> {\n if (laneBoundaryTreatmentFor(APPLICATION_CREATION_AUTONOMY_POSTURE, PlaybookLaneBoundaryDecision.APPROVE_RESULT) !== LaneBoundaryTreatment.NOTIFY_AND_PROCEED) return [];\n const results: Array<{ taskRef: string; committedPaths: number; error?: string }> = [];\n await this.underBriefWorktreeLock(async () => {\n for (const taskRef of taskRefs) {\n try {\n const outcome = await this.acceptedChangeCommit.acceptCodingRun({ taskRef, force: true, origin });\n // A pathspec already at HEAD is not a repair: count paths only when a commit was made.\n results.push({ taskRef, committedPaths: outcome.alreadyCommitted ? 0 : outcome.committedPaths.length });\n } catch (error) {\n // Nothing left to commit is the usual answer: the run's own accept already took everything.\n results.push({ taskRef, committedPaths: 0, ...(error instanceof NothingToAcceptError ? {} : { error: describeCaughtError(error) }) });\n }\n }\n });\n if (results.some((result) => result.committedPaths > 0)) {\n for (const listener of this.runAcceptedListeners) {\n try { listener(); } catch (error) { this.logDebug('A run-accepted listener threw', { error: describeCaughtError(error) }); }\n }\n }\n return results;\n }\n\n /**\n * Refuse (409) while another coding run holds the worktree, NAMING it — the holder is read from the\n * actor plane, so the message is true after a restart and from a second process. `exceptExecutionId`\n * is the execution the caller itself opened at selection, which holds the subject legitimately.\n */\n private async refuseWhileWorktreeIsHeld(exceptExecutionId: string | null, sessionContext?: CompanionExecutionSessionContext): Promise<void> {\n const holder = await this.actorsSystem.readExclusiveSubjectHolder(APPLICATION_CODING_SYSTEM_REF, APPLICATION_CODING_WORKTREE_SUBJECT, sessionContext);\n if (!holder || holder._id === exceptExecutionId) return;\n throw this.buildDispatchConflictError(\n `A coding-agent run is already active (task ${holder.tasks[0]?._id ?? 'unknown'}, execution ${holder._id}, ${holder.status}`\n + `${holder.createdAt ? `, started ${holder.createdAt}` : ''}). Application coding tasks share one working tree.`,\n );\n }\n\n /** The driver's own refusal — two callers raced past the fast 409 — in this lane's 409 shape. */\n private translateWorktreeBusy(error: unknown): unknown {\n return isActorExecutionSubjectBusyError(error)\n ? this.buildDispatchConflictError('A coding-agent run took the working tree first. Application coding tasks share one working tree.')\n : error;\n }\n\n /** Admission of a run that was opened at selection: start it, completing its input with the baseline. */\n private async startSelectedApplicationCodingExecution(\n selected: OpenedActorExecution,\n task: MetaWorkflow_ApplicationCodingTaskContract,\n baseline: GitWorktreeSnapshot,\n sessionContext?: CompanionExecutionSessionContext,\n origin?: CodingRunOrigin,\n ): Promise<OpenedActorExecution> {\n await this.actorsSystem.startActorExecution(selected, { taskInput: this.buildApplicationCodingTaskInput(task, baseline, origin) }, sessionContext);\n return selected;\n }\n\n private buildApplicationCodingExecutionRequest(\n task: MetaWorkflow_ApplicationCodingTaskContract,\n baseline: GitWorktreeSnapshot | null,\n sessionContext?: CompanionExecutionSessionContext,\n origin?: CodingRunOrigin,\n mode: CodingRunConcurrency = CodingRunConcurrency.SINGLE_FLIGHT,\n ): ActorExecutionOpenRequest<CompanionExecutionSessionContext> {\n return {\n systemRef: APPLICATION_CODING_SYSTEM_REF,\n // A single-flight run holds the application's working tree while it runs (#1361); a concurrent\n // one holds only its own task, so two runs of one task can never overlap (#1528).\n exclusiveSubject: applicationCodingExclusiveSubject(mode, task.taskRef),\n // The SELECTED agent, resolved once at creation and carried on the row —\n // so a task records which agent it was addressed to, and a selection\n // changed between creation and claim cannot silently redirect it. The\n // system declares one actor per binding under the binding's own ref.\n actorRef: resolveSelectedApplicationCodingAgentBinding().ref,\n scope: sessionContext,\n task: {\n title: `Application coding task ${task.taskRef}`,\n description: `Typed application coding task for ${task.objectiveRef}; acceptance is a commit, made by the loop under the autonomy posture or by a person on the workbench.`,\n topic: Actor_Task_Topics.IMPLEMENTATION,\n input: this.buildApplicationCodingTaskInput(task, baseline, origin),\n /*\n * The cross-plane join, carried in the GENERIC correlation envelope rather than in a\n * `workbenchBuildPlanTaskId` column on the actor-task row (#1348).\n *\n * The engine owns the slot and validates only that keys and values are non-empty strings;\n * this domain owns the keys. The value is the board's row identity — sanitized, which is the\n * ref verbatim today — so the creation plane can match its build-plan row to this task\n * without the generic platform row knowing what a build-plan task is.\n */\n correlation: {\n domain: WORKBENCH_TASK_CORRELATION_DOMAIN,\n refs: {\n [WorkbenchTaskCorrelationRef.BUILD_PLAN_TASK]: sanitizeWorkbenchCreationPlaneIdentity(task.taskRef),\n // The thread the dispatch came from (#1454, Step 7), the same key a playbook run carries.\n ...(origin?.conversationId ? { [WorkbenchTaskCorrelationRef.CONVERSATION]: origin.conversationId } : {}),\n },\n },\n },\n };\n }\n\n /**\n * The task row's INPUT — replayable task identity and guard evidence, never prompt/context bytes\n * (see the contract above `openApplicationCodingExecution`). `baseline` is `null` between\n * selection and admission, and says so rather than being absent: a reader can tell a run that has\n * not captured one from a row that forgot to record it.\n */\n private buildApplicationCodingTaskInput(\n task: MetaWorkflow_ApplicationCodingTaskContract,\n baseline: GitWorktreeSnapshot | null,\n origin?: CodingRunOrigin,\n ): Record<string, unknown> {\n return {\n taskRef: task.taskRef,\n // Read back by the dispatch projection, so the row says which conversation started it.\n ...(origin?.conversationId ? { conversationId: origin.conversationId } : {}),\n objectiveRef: task.objectiveRef,\n candidateRef: task.candidateRef,\n mutationScope: task.mutationScope,\n contextPlan: {\n planRef: task.contextPlan.planRef,\n objectiveRef: task.contextPlan.objectiveRef,\n },\n contextSelection: {\n planRef: task.contextSelection.planRef,\n selectedSourceRefs: task.contextSelection.selectedSources.map((source) => source.sourceRef),\n selectedSourceCount: task.contextSelection.selectedSources.length,\n },\n verificationIntent: task.verificationIntent,\n installedSkillRefs: task.installedSkillRefs,\n baseline: baseline\n ? {\n headSha: baseline.headSha,\n dirtyFileCount: Object.keys(baseline.files).length,\n capturedAt: baseline.capturedAt,\n /*\n * The dirty files themselves, not only their count: the one record that survives a\n * restart mid-run, so the next start can tell what THIS run wrote from what was already\n * there ({@link recoverInterruptedRunWrites}). Paths and fingerprints only — no content.\n */\n files: baseline.files,\n }\n : null,\n };\n }\n\n /**\n * Open the trace half of one coding run — see {@link CodingRunTrace}. Best-effort like every\n * trace write here: a session that cannot be opened is recorded as a traceability error and the\n * run proceeds with no scope, which the actor plane accepts.\n */\n private async openCodingRunTrace(taskId: string, taskRef: string): Promise<CodingRunTrace> {\n let runSession: CompanionExecutionSessionContext | undefined;\n let runStep: ReturnType<CompanionTraceabilityService['createStep']> | undefined;\n const traceabilityErrors: unknown[] = [];\n const traceBestEffort = async (operation: string, write: () => Promise<void>): Promise<void> => {\n try {\n await write();\n } catch (error) {\n // Traceability is required evidence, but it must not become a control\n // flow escape that leaves the durable task PROCESSING after possible\n // source changes. The final task row records this failure and remains\n // visibly non-accepted for explicit follow-up.\n traceabilityErrors.push(error);\n this.logger.error('Application coding-task trace operation failed', {\n taskId,\n taskRef,\n operation,\n error: describeCaughtError(error),\n });\n }\n };\n await traceBestEffort('initialize-session', async () => {\n runSession = this.traceabilityService.createInternalSession({\n label: 'application-coding-task-run',\n metadata: { taskId, taskRef },\n });\n if (!runSession) return;\n await this.traceabilityService.registerAlias(runSession, CompanionTraceAliasKind.ACTOR_TASK, taskId);\n runStep = this.createOperationTraceStep(runSession, 'application-coding-task-run');\n });\n return { runSession, runStep, traceabilityErrors, traceBestEffort };\n }\n\n /**\n * ACCEPT a run's writes when the autonomy posture says the system accepts (#1534).\n *\n * **Why here.** A build task LANDS only when its declared product is COMMITTED, and until this\n * existed nothing in the loop committed — so an unattended build stopped after its first task,\n * and the 2026-09-23 run was carried by an operator's shell loop running `git add -A` in the gaps\n * between dispatches. `one-source-of-truth.md` D5 had already decided the posture (YOLO: the system\n * commits, the creator is notified and can override); what was missing was the mechanism.\n *\n * **Why it is safe HERE and nowhere later.** This runs inside `afterSettle`, which\n * `superviseCodingRun` awaits inside `withDedicatedFileLock(workspace mutation lock)`. No other\n * coding run can be live, so the commit cannot land inside another run's baseline→post window —\n * which is what destroys change-set attribution, and why the shell loop had to wait for a gap.\n *\n * **The posture is asked through the ONE table**, `laneBoundaryTreatmentFor`, as an APPROVE_RESULT\n * boundary — never by testing for YOLO here. So GUIDED keeps acceptance a person's act on the\n * workbench, YOLO_LIGHT and YOLO accept, and a posture added tomorrow is classified there once.\n *\n * **It never widens what is committed.** No `force`: every refusal the door applies to a person\n * applies here. A path it cannot vouch for stays uncommitted and the task stays visibly unlanded.\n *\n * **Best effort, and loud.** A failed accept costs the task its landing, never the run — the run's\n * result is already settled. It is logged at WARN because a silent failure here recreates exactly\n * the stall this exists to remove.\n */\n private async acceptUnderAutonomyPosture(taskRef: string, taskId: string): Promise<void> {\n const treatment = laneBoundaryTreatmentFor(APPLICATION_CREATION_AUTONOMY_POSTURE, PlaybookLaneBoundaryDecision.APPROVE_RESULT);\n if (treatment !== LaneBoundaryTreatment.NOTIFY_AND_PROCEED) return;\n try {\n const accept = () => this.acceptedChangeCommit.acceptCodingRun({\n taskRef,\n origin: AcceptOrigin.AUTONOMY_POSTURE,\n });\n // A concurrent run holds no lock (#1528), and git's index takes one writer: the commit is serialized.\n const outcome = this.activeRuns.get(taskId)?.mode === CodingRunConcurrency.CONCURRENT\n ? await this.underBriefWorktreeLock(accept)\n : await accept();\n this.logger.info('Accepted a build-task run under the autonomy posture', {\n taskId,\n taskRef,\n posture: APPLICATION_CREATION_AUTONOMY_POSTURE,\n commitSha: outcome.commitSha,\n committedPaths: outcome.committedPaths.length,\n refusedPaths: outcome.refusedPaths,\n alreadyCommitted: outcome.alreadyCommitted,\n });\n for (const listener of this.runAcceptedListeners) {\n try { listener(); } catch (error) { this.logDebug('A run-accepted listener threw', { error: describeCaughtError(error) }); }\n }\n } catch (error) {\n if (error instanceof NothingToAcceptError) {\n // An empty run, or every path refused by name. The refusals are the finding; they stay visible.\n this.logger.warn('A build-task run concluded with nothing the posture could accept', {\n taskId, taskRef, reason: error.message, refusedPaths: error.refusedPaths,\n });\n return;\n }\n this.logger.warn('Could not accept a build-task run under the autonomy posture; its task stays unlanded', {\n taskId, taskRef, error: describeCaughtError(error),\n });\n }\n }\n\n /**\n * Accept every pending PLAYBOOK run under the posture, from inside the worktree window and before a\n * baseline — the third site of #1534 (see `acceptPendingPlaybookRuns` for why exactly here).\n * Best effort by construction: it must never cost the run whose window it borrows.\n */\n private async acceptPendingPlaybookRunsBeforeBaseline(): Promise<void> {\n if (laneBoundaryTreatmentFor(APPLICATION_CREATION_AUTONOMY_POSTURE, PlaybookLaneBoundaryDecision.APPROVE_RESULT) !== LaneBoundaryTreatment.NOTIFY_AND_PROCEED) return;\n try {\n const outcome = await this.acceptedChangeCommit.acceptPendingPlaybookRuns(AcceptOrigin.AUTONOMY_POSTURE);\n if (outcome.accepted > 0) {\n for (const listener of this.runAcceptedListeners) {\n try { listener(); } catch (error) { this.logDebug('A run-accepted listener threw', { error: describeCaughtError(error) }); }\n }\n }\n } catch (error) {\n this.logger.warn('Could not accept pending playbook runs before a baseline', { error: describeCaughtError(error) });\n }\n }\n\n /**\n * Run a build-plan GENERATION STEP inside the coding lane's attribution window, and accept what it\n * wrote under the autonomy posture — the second site of #1534's invariant.\n *\n * **Why a generation step needs this at all.** It lands on COMMITTED paths\n * (`ApplicationBuildGenerationStepLandedKind.COMMITTED_PATHS`), exactly like a coding task's\n * product, and it is EXEMPT from the loop guard because a step such as `i18n-labels` is\n * legitimately re-runnable. So an uncommitted step does not stall visibly: it is re-selected on\n * every dispatch, does nothing new, and every task that names it as a prerequisite never becomes\n * ready. The 2026-09-23 run never met this only because an operator's shell loop committed\n * everything between dispatches.\n *\n * **Why inside THIS window rather than beside it.** A coding run's attribution is a baseline→post\n * comparison, and it collapses when anything commits inside it. Until now a generation step held\n * neither half of the lane's single-flight, so it could run while a coding run was live and land\n * its writes inside that run's window. Here it takes both: the worktree lease check first — the\n * same 409 a second coding task gets, naming the holder — then the workspace mutation lock for\n * the snapshot, the step, the capture and the accept. The two are not redundant: a coding run\n * SELECTED but not yet admitted holds the lease and not the lock while it waits for the compile\n * watchers, and a step taking the lock there would fail that run's admission. A PARKED run holds\n * neither, by design — siblings run while its question waits, and anything they commit is\n * classified `committed_during_run` and excluded from its accept; a step is one more sibling. This is the lane's EXISTING single-flight,\n * extended to the other writer it always had; it restricts no agent's edits, which is what\n * #1264's \"no serialization\" constraint is about.\n *\n * **The writes go through the same register and door as a coding run's**, so the workbench's\n * Accept works on a generation-step row too, under GUIDED, with the same refusals. The capture and\n * the accept are best effort: a step whose writes could not be registered still returns its\n * result, and stays visibly unlanded.\n */\n public async runGenerationStepInWorktreeWindow<T>(input: {\n readonly taskRef: string;\n readonly taskId: string;\n readonly execute: () => Promise<T>;\n readonly sessionContext?: CompanionExecutionSessionContext;\n }): Promise<T> {\n await this.refuseWhileWorktreeIsHeld(null, input.sessionContext);\n return withDedicatedFileLock(\n this.getWorkspaceMutationLockPath(),\n async () => {\n await this.acceptPendingPlaybookRunsBeforeBaseline();\n const baseline = await this.gitChangeSetService.captureWorktreeSnapshot();\n await this.recordRunBaselineOnTask(input.taskId, baseline, input.sessionContext);\n const result = await input.execute();\n try {\n const changeSet = await this.gitChangeSetService.captureChangeSet(baseline);\n await this.codingRunWriteRegister.record({ taskId: input.taskId, taskRef: input.taskRef, changeSet });\n } catch (error) {\n this.logger.warn('Could not register a generation step\\'s writes; it stays unlanded until they are committed', {\n taskId: input.taskId, taskRef: input.taskRef, error: describeCaughtError(error),\n });\n return result;\n }\n await this.acceptUnderAutonomyPosture(input.taskRef, input.taskId);\n return result;\n },\n { retries: { retries: 0 } },\n ).catch((error: unknown) => { throw this.mapLockError(error); });\n }\n\n /**\n * Run the engine-driven half of a coding run and deal with the two ways it can go wrong.\n *\n * `drive` is `completeActorExecution` or `resumeActorExecution`; `capture` hands this method the\n * executor's result, because the driver answers it only when the settle ALSO succeeded — and the\n * case that needs the result most is the one where it did not.\n *\n * - The executor returned and the SETTLE failed: not retried. The agent may already have changed\n * files and re-execution would duplicate an unclassified effect. The row is deliberately left\n * for the startup reconcile, and the trace records why it is not terminal.\n * - The executor THREW: the driver already settled `FAILED` with the message. Nothing to add\n * except a log line — the executor classifies its own failures, so a throw is a defect in it.\n */\n private async superviseCodingRun(\n taskRef: string,\n taskId: string,\n trace: CodingRunTrace,\n drive: (capture: (result: CodingRunResult) => CodingRunResult) => Promise<unknown>,\n ): Promise<void> {\n let result: CodingRunResult | null = null;\n try {\n await drive((returned) => { result = returned; return returned; });\n } catch (error) {\n const returned = result as CodingRunResult | null;\n if (returned === null) {\n // Two ways to get here with no result: the executor threw (the engine settled the run\n // FAILED with the message), or the engine refused to START it — a resume of an execution\n // that is no longer waiting. Neither leaves anything for this method to record.\n this.logger.error('Application coding run ended without a result', {\n taskId, taskRef, error: describeCaughtError(error),\n });\n return;\n }\n this.logger.error('Failed to persist application coding-task result', { taskId, taskRef, error: describeCaughtError(error) });\n await trace.traceBestEffort('record-terminal-patch-failure', () => this.traceOperationFailure({\n sessionContext: trace.runSession,\n step: trace.runStep,\n type: 'application-coding-task-terminal-patch-failure',\n summary: `Failed to persist the result of application coding task ${taskRef}`,\n error,\n payload: returned.output,\n }));\n return;\n }\n await (result as CodingRunResult | null)?.afterSettle();\n }\n\n /**\n * Executes the normal Agent invocation and lands the full working-result\n * evidence. This method runs inside the worktree lock and therefore is the\n * sole typed path allowed to observe its own before/after Git boundary.\n */\n private async executeApplicationCodingTask(\n task: MetaWorkflow_ApplicationCodingTaskContract,\n renderedPrompt: string,\n verificationPlans: readonly ApplicationCodingTaskVerificationPlan[],\n opened: OpenedActorExecution,\n baseline: GitWorktreeSnapshot,\n trace: CodingRunTrace,\n /**\n * Present when this run ANSWERS a parked question rather than starting the\n * task: the agent session is resumed by id via `session/load` and the answer\n * is delivered as the next turn. The task's mutation scope, verification plan\n * and original baseline are unchanged — the resume is held to exactly the\n * bounds the first run was.\n */\n resume?: { readonly continuationOfSessionId: string; readonly answerPrompt: string },\n ): Promise<CodingRunResult> {\n const { runSession, runStep, traceabilityErrors, traceBestEffort } = trace;\n // The TASK id is this lane's handle — the live stream, the answer door and the board row all\n // key on it. The execution is the engine's; it is reached from the task.\n const taskId = opened.taskId;\n const traceContext: AgentTraceContext = {\n label: `application-coding-task:${task.taskRef}`,\n attributes: {\n taskId,\n taskRef: task.taskRef,\n objectiveRef: task.objectiveRef,\n candidateRef: task.candidateRef,\n },\n };\n\n\n const startedAtMs = Date.now();\n /*\n * Which of this task's checks were ALREADY failing before the agent ran?\n *\n * Verification decides the disposition, and it used to ask \"is any check red now?\" — a question\n * about the TREE, answered as though it were about the RUN. A check that was red before the\n * agent started says nothing about the agent, and failing the task on it burns the whole run.\n *\n * Measured on the first end-to-end journey run (#1273): `check:technical-doc-typecheck` was red\n * before anything was dispatched, because `technical-doc/src/generated/consumer-documentation/`\n * has never been produced in that application. `build-task-docs-find-context` ran for fifteen\n * minutes, established its findings, wrote its report — and was recorded\n * `VERIFICATION_FAILED` on a red it did not cause, at $19.33. Every documentation task names\n * that check, so every one of them would have failed the same way, forever, for the same money.\n * That is the unbounded-cost shape `findCompletedRunForBuildTask` exists to close, reached\n * through the one door it cannot see: a run that FAILS is not a completed run, so it is\n * re-offered on the next dispatch.\n *\n * The baseline is the tree as this run found it, so it is the honest reference for \"did THIS run\n * break it\". Costs one extra pass of the same checks — tens of seconds against a run measured in\n * quarter-hours and tens of dollars.\n *\n * A check that THREW at baseline is excluded: it produced no verdict, so it cannot license\n * forgiving the same check afterwards. See `unrunCheckRefs`.\n */\n const baselineVerification = await this.executeVerificationPlans(verificationPlans);\n const unrunAtBaseline = new Set(baselineVerification.unrunCheckRefs);\n const preexistingVerificationFailures = new Set(baselineVerification.verification\n .filter(({ checkRef, outcome }) => !outcome.success && !unrunAtBaseline.has(checkRef))\n .map(({ checkRef }) => checkRef));\n let runError: unknown = null;\n let agentOutput = '';\n let codingUsage: CodingAgent_Usage | undefined;\n let codingDeniedPermissionCount: number | undefined;\n let codingPermissionDecisions: CodingAgent_RunTaskOutput['permissionDecisions'];\n let codingReportedFileLocations: CodingAgent_RunTaskOutput['reportedFileLocations'];\n let agentStopReason: CodingAgent_StopReason | undefined;\n /*\n * Counted in full, RETAINED in part.\n *\n * The previous shape pushed every notification into an unbounded array and\n * then persisted only its length — so a 30-minute run grew memory the\n * process never read, and the tool-call and diff frames (the reason to\n * observe a session at all) were collected and discarded. Now the count is a\n * counter, and only the frames a reader would actually open are retained, up\n * to a fixed ceiling.\n */\n let codingSessionEventCount = 0;\n // What the row keeps of the session, and why it is not \"the first N frames\": see the model.\n const codingSessionRetention = new CodingSessionFrameRetention();\n await traceBestEffort('record-start', () => this.traceOperationStart({\n sessionContext: runSession,\n step: runStep,\n type: 'application-coding-task-run-start',\n summary: `Run application coding task ${task.taskRef}`,\n payload: this.buildApplicationCodingTaskTraceSummary(task),\n artifactFileName: 'application-coding-task-input.txt',\n artifactContent: renderedPrompt,\n }));\n try {\n // Resume the agent recorded on the durable task. The host selector may\n // have changed since admission; it must not reroute an existing session.\n // The coding system declares one actor per binding under the binding's\n // own ref, so the actor the run was opened for IS the agent to invoke.\n const agentRef = opened.actorRef;\n if (typeof agentRef !== 'string' || !isApplicationCodingAgentRef(agentRef)) {\n throw this.buildDispatchConflictError('The coding task does not identify a declared application coding agent.');\n }\n const invocation: FlowsActors_Agent_Invocation<\n typeof CodingAgent_RunTaskInputSchema,\n typeof CodingAgent_RunTaskOutputSchema,\n typeof CodingAgent_OperationContext_BaseSchema\n > = {\n agentRef,\n initiator: {},\n invocationContext: [],\n // A resume delivers the operator's ANSWER as the turn and re-enters the\n // parked session; a first run delivers the rendered task.\n input: resume\n ? { prompt: resume.answerPrompt, continuationOfSessionId: resume.continuationOfSessionId }\n : { prompt: renderedPrompt },\n output: { finalMessage: '', stopReason: CodingAgent_StopReason.END_TURN },\n executionContext: { callTimestamp: new Date().toISOString() },\n artifactBindings: [],\n };\n const response = await this.agentsService.invokeAgent(\n invocation,\n traceContext,\n {\n workspaceRootPath: this.companionContext.saasRoot,\n // Hold the agent to the task's declared scope WHILE it runs, not only\n // in the change set afterwards. The post-hoc assessment stays — it is\n // the authoritative record, because an agent can write a file it never\n // asked permission for — but a refusal in the moment is the only one\n // that prevents the write rather than reporting it.\n isPermittedCodingLocation: buildApplicationCodingTaskLocationPredicate(\n this.companionContext.saasRoot,\n task.mutationScope.allowedPathPrefixes,\n task.mutationScope.prohibitedPathPrefixes,\n ),\n onCodingSessionEvent: (event) => {\n codingSessionEventCount += 1;\n codingSessionRetention.accept(event);\n this.publishCodingSessionFrame(taskId, { channel: 'event', payload: event });\n },\n // The JUDGMENT half of the interactive lane: classify each end-of-turn\n // message so the engine ladder can auto-continue a self-pause and park\n // a genuine question. The engine fails OPEN if this throws, so a\n // classifier fault degrades to \"the turn is complete\" rather than\n // hanging the run — this method may therefore throw freely.\n classifyCodingTurnEnd: (input) => this.classifyCodingTurnEnd(input),\n onCodingSessionStateChange: (state) => {\n this.publishCodingSessionFrame(taskId, { channel: 'state', payload: state });\n },\n ...(this.activeRuns.get(taskId) ? { codingSessionAbortSignal: this.activeRuns.get(taskId)!.abortController.signal } : {}),\n },\n );\n const codingOutput = response.output as Partial<CodingAgent_RunTaskOutput> | undefined;\n // The agent runtime publishes provider-learned facts on `executionContext`.\n codingUsage = (response.executionContext as { usage?: CodingAgent_Usage } | undefined)?.usage;\n codingDeniedPermissionCount = codingOutput?.deniedPermissionCount;\n codingPermissionDecisions = codingOutput?.permissionDecisions;\n codingReportedFileLocations = codingOutput?.reportedFileLocations;\n const text = codingOutput?.finalMessage;\n agentStopReason = codingOutput?.stopReason;\n // A PARKED run stopped WITHOUT finishing to ask the operator a question.\n // Its `finalMessage` is the question and its partial edits are NOT a final\n // change set — so it must skip assessment, verification and the\n // terminal disposition entirely, and instead record an answerable,\n // non-terminal state. Handled here, before the CANCELLED/empty checks,\n // because a question is a non-empty END_TURN message that would otherwise\n // read as a completed working result.\n if (codingOutput?.suspension) {\n return this.buildParkedCodingRunResult({\n task,\n taskId,\n baseline,\n suspension: codingOutput.suspension,\n output: codingOutput,\n usage: codingUsage,\n codingSessionEventCount,\n retainedCodingSessionFrames: codingSessionRetention.frames(),\n codingSessionRetention: codingSessionRetention.summary(),\n startedAtMs,\n runSession,\n runStep,\n traceBestEffort,\n });\n }\n // A CANCELLED turn is not a completed one, and its partial change set must\n // not be read as a working result. Refused here rather than downstream so\n // the disposition names the actual reason.\n if (agentStopReason === CodingAgent_StopReason.CANCELLED) {\n throw new Error('Application coding Agent turn was cancelled before it completed.');\n }\n if (typeof text !== 'string' || text.trim().length === 0) {\n throw new Error('Application coding Agent returned no final message.');\n }\n agentOutput = text;\n } catch (error) {\n runError = error;\n }\n\n let changeSet: GitChangeSetCapture | null = null;\n let captureError: unknown = null;\n try {\n changeSet = await this.gitChangeSetService.captureChangeSet(baseline);\n } catch (error) {\n captureError = error;\n }\n /*\n * The register the workbench's `accept` commits from (#1454, Step 7): every path, attributed and\n * hashed, unbounded where the durable row's summary is bounded. Best effort — a register that\n * could not be written costs the ability to accept THIS run from the workbench, never the run.\n */\n if (changeSet) {\n try {\n // A run that shared the tree (#1528) records what it has evidence of writing: its capture also holds its siblings' files.\n const claimedPaths = this.activeRuns.get(taskId)?.mode === CodingRunConcurrency.CONCURRENT\n ? collectRunClaimedPaths({\n candidateRoots: applicationRootSpellings(this.companionContext.saasRoot),\n reportedFileLocations: codingReportedFileLocations,\n permissionDecisions: codingPermissionDecisions,\n })\n : undefined;\n await this.codingRunWriteRegister.record({ taskId, taskRef: task.taskRef, changeSet, ...(claimedPaths !== undefined ? { claimedPaths } : {}) });\n } catch (error) {\n this.logDebug('Could not record the coding run\\'s writes; accepting it from the workbench will refuse', { taskId, error: describeCaughtError(error) });\n }\n }\n\n const scopeAssessment = changeSet\n ? assessApplicationCodingTaskMutationScope(changeSet, task.mutationScope.allowedPathPrefixes, task.mutationScope.prohibitedPathPrefixes)\n : null;\n /*\n * Did Wildo's IN-FLIGHT guards actually run for this agent?\n *\n * The permission ceiling and the task mutation scope are both enforced in\n * the client's answer to `session/request_permission`, and the scope half is\n * enforced against the `locations` that request DECLARES. So there are TWO\n * ways a run reaches the end with the mutation scope never consulted, and\n * until 2026-09-09 only the first was reported:\n *\n * 1. NO REQUEST AT ALL — the agent writes without asking. Codex's design\n * (its safety model is a sandbox) and OpenCode's default. Nothing is\n * answered, so nothing is checked.\n *\n * 2. REQUESTS RAISED, NONE CARRYING A LOCATION — the agent asks, the\n * client answers, and the scope predicate has nothing to check the\n * answer against, because `locations.some(...)` over an empty array is\n * vacuously satisfied. Under an UNRESTRICTED ceiling this is EVERY\n * shell command: `execute` is admitted by the ceiling, and a shell\n * command declares no locations because its effect is not derivable\n * from the command string. A run can therefore write outside its\n * declared scope through a shell command with a full, well-formed\n * permission-decision record showing it was allowed.\n *\n * Shape 2 is not a hole to be closed by deriving locations from a command —\n * a shell command is UNSCOPED BY NATURE, and parsing one to guess its writes\n * would be an invented, defeatable answer (`sh -c \"$CMD\"`, a redirect\n * through a substituted path). The honest treatment is to say so.\n *\n * Both shapes are ADMISSIBLE by decision (2026-09-06/09): a different agent\n * architecture is not a reason to refuse a tool, the dogfood lane authors\n * UNRESTRICTED deliberately, and the framework's directive is that\n * restrictions arrive as judge-style guards rather than refusals wired into\n * the mechanism. What is NOT acceptable is the consequence going unrecorded\n * while the configuration reads as though a gate were in place.\n *\n * Keyed on the run's OWN evidence rather than on a provider declaration: an\n * agent that changes behaviour between versions cannot silently keep an\n * old, reassuring claim. (The provider's declaration is used too, at\n * DISPATCH, where it refuses a ceiling narrower than UNRESTRICTED against an\n * agent that cannot honour one — a claim before the run and evidence after\n * it, which are different jobs.)\n */\n const raisedNoPermissionRequest = (codingPermissionDecisions?.length ?? 0) === 0;\n // An ALLOWED decision that declared no path: the ceiling admitted the act and\n // the scope predicate was handed nothing to judge it by.\n const allowedActsWithNoDeclaredLocation = (codingPermissionDecisions ?? []).filter(\n (decision) => decision.allowed && decision.locations.length === 0,\n ).length;\n const mutationScopeWentUnconsulted = raisedNoPermissionRequest || allowedActsWithNoDeclaredLocation > 0;\n const mutatedFileCount = changeSet?.files.length ?? 0;\n if (!runError && mutationScopeWentUnconsulted && mutatedFileCount > 0) {\n // Best-effort and FEATURE-DETECTED, the same posture the audit emits take:\n // this observes a run, and an observation that can fail the run it\n // observes is worse than no observation. A partially-bound logger must not\n // turn a completed coding task into an error — measured the hard way, when\n // a `warn` the test double did not implement hung fifteen runs.\n this.logger.warn?.(\n (raisedNoPermissionRequest\n ? 'Coding run mutated the workspace without raising a single permission request — '\n + \"Wildo's permission ceiling and task mutation scope were NOT enforced in flight for this agent. \"\n : `Coding run mutated the workspace after ${allowedActsWithNoDeclaredLocation} permitted act(s) that `\n + 'declared no file location — typically shell commands, which are unscoped by nature — so the task '\n + 'mutation scope had nothing to check those acts against and was NOT enforced in flight for them. ')\n + 'The change set taken after the run is the only record of what it touched'\n + (scopeAssessment && scopeAssessment.outOfScopePaths.length > 0\n ? `, and it recorded ${scopeAssessment.outOfScopePaths.length} changed path(s) outside the task's declared scope `\n + '(this run\\'s or a parallel session\\'s — the change set cannot tell which).'\n : '.'),\n {\n taskRef: task.taskRef,\n objectiveRef: task.objectiveRef,\n mutationScopeRef: task.mutationScope.scopeRef,\n mutatedFileCount,\n outOfScopePathCount: scopeAssessment?.outOfScopePaths.length ?? null,\n raisedNoPermissionRequest,\n allowedActsWithNoDeclaredLocation,\n inFlightMutationScopeConsulted: false,\n },\n );\n }\n\n // Verification is deliberately sequential. Each check has a fixed\n // semantic meaning, but several checks can still contend for the same\n // application package/cache if started together. The ordered outcomes are\n // easier to inspect and avoid turning a bounded coding task into an\n // accidental local-build fan-out.\n // Out-of-scope paths never skip verification: they are recorded, not refused.\n const shouldVerify = !runError && !captureError;\n const { verification, infrastructureError: verificationInfrastructureError } = shouldVerify\n ? await this.executeVerificationPlans(verificationPlans)\n : { verification: [] as Array<{ checkRef: string; outcome: VerificationOutcome }>, infrastructureError: null as unknown };\n /*\n * Only a check this run BROKE fails the task. One that was already red is recorded and reported,\n * never attributed — see `preexistingVerificationFailures` above for what it cost when it was.\n *\n * The recording half is not decoration: a check red for every task is a project-level defect\n * that nothing else would surface, and forgiving it silently would replace a loud wrong answer\n * with a quiet one.\n */\n const carriedVerification = verification\n .filter(({ checkRef, outcome }) => !outcome.success && preexistingVerificationFailures.has(checkRef));\n const carriedVerificationFailures = carriedVerification.map(({ checkRef }) => checkRef);\n /*\n * And WHY it is red, captured while the output is in hand (#1529): the files the check names and\n * what generated them. A red nobody diagnoses is re-diagnosed by hand — on the first end-to-end run\n * that took an hour, for a fact the broken file's own banner stated.\n */\n const carriedVerificationDiagnoses = carriedVerification.map(({ checkRef, outcome }) => diagnoseCarriedVerificationFailure({\n checkRef,\n checkPath: outcome.path,\n message: outcome.message,\n stdoutTail: outcome.stdoutTail,\n stderrTail: outcome.stderrTail,\n readHead: (relativePath) => {\n try {\n return readFileSync(join(this.companionContext.saasRoot, relativePath), 'utf8').slice(0, 8_000);\n } catch {\n return undefined;\n }\n },\n }));\n const failedVerification = verification.find(\n ({ checkRef, outcome }) => !outcome.success && !preexistingVerificationFailures.has(checkRef),\n ) ?? null;\n\n if (agentOutput) {\n await traceBestEffort('write-agent-output', () =>\n this.traceOperationArtifact(runSession, runStep, 'application-coding-task-agent-output.txt', agentOutput));\n }\n if (changeSet?.fullDiffText) {\n await traceBestEffort('write-change-set', () =>\n this.traceOperationArtifact(runSession, runStep, 'application-coding-task-change-set.diff', changeSet.fullDiffText));\n }\n\n const disposition = runError\n ? ApplicationCodingTaskDisposition.AGENT_EXECUTION_FAILED\n : captureError\n ? ApplicationCodingTaskDisposition.CHANGE_SET_CAPTURE_FAILED\n : failedVerification\n ? ApplicationCodingTaskDisposition.VERIFICATION_FAILED\n : traceabilityErrors.length > 0\n ? ApplicationCodingTaskDisposition.TRACEABILITY_FAILED\n : ApplicationCodingTaskDisposition.WORKING_RESULT_RECORDED;\n const succeeded = disposition === ApplicationCodingTaskDisposition.WORKING_RESULT_RECORDED;\n /*\n * Whose failure this was (#1581). An agent failure is the HOST's only when the turn was TAKEN\n * AWAY: an operator cancelled it (this run's own abort signal), or the measured classifiers name\n * the environment (a mid-turn kill, a 529/429) or the account (quota, expired login). A timed-out\n * turn also ends `cancelled`, and it is the task's — it needed more than a turn.\n */\n const runErrorMessage = runError ? describeCaughtError(runError) : '';\n const agentTurnTakenByHost = this.activeRuns.get(taskId)?.abortController.signal.aborted === true\n || isInfrastructureShapedAgentFailure(runErrorMessage)\n || isProviderAccountAgentFailure(runErrorMessage);\n const failureAttribution = deriveCodingRunFailureAttribution({ disposition, agentTurnTakenByHost });\n // Which runs shared the tree with this one, and where they both wrote (#1528). Absent for a run alone.\n const concurrency = this.closeCodingRunWindow(taskId, (changeSet?.files ?? []).map((entry) => entry.path));\n const output = {\n succeeded,\n disposition,\n ...(failureAttribution !== null ? { failureAttribution } : {}),\n ...(concurrency ? {\n concurrency,\n /*\n * A failure while other runs were editing the same tree may be theirs. Suspected, never\n * proven: the attempt budget forgives a bounded number of these (`selectBudgetCountingFailures`).\n */\n ...(!succeeded ? { interferenceSuspected: true } : {}),\n } : {}),\n durationMs: Date.now() - startedAtMs,\n agentOutputTail: agentOutput.slice(-OUTPUT_TAIL_CHARS),\n // Recorded on the durable row because it is the difference between \"the\n // agent finished\" and \"the agent stopped\": a turn that ended on\n // `max_tokens` or `refusal` leaves a partial change set that looks exactly\n // like a complete one from the diff alone.\n ...(agentStopReason ? { agentStopReason } : {}),\n ...(codingSessionEventCount > 0 ? { codingSessionEventCount } : {}),\n // Red before this run started, and still red. Not this task's failure, and not nobody's.\n ...(carriedVerificationFailures.length > 0 ? { carriedVerificationFailures, carriedVerificationDiagnoses } : {}),\n ...(codingSessionRetention.frames().length > 0\n ? { codingSessionFrames: codingSessionRetention.frames(), codingSessionRetention: codingSessionRetention.summary() }\n : {}),\n // #2: the run's real cost, recorded on the durable row.\n //\n // This is what the previous transport structurally could not report, and\n // it was captured by the runner and dropped here — so the budget still saw\n // nothing. `usage` is optional in every field by contract, so absence is\n // preserved as absence rather than written as zero.\n ...(codingUsage ? { usage: codingUsage } : {}),\n ...(codingDeniedPermissionCount !== undefined\n ? { deniedPermissionCount: codingDeniedPermissionCount }\n : {}),\n // WHY each permission was decided, beside how many were refused. A refusal an operator\n // cannot explain is a refusal they cannot act on — see the field's contract.\n ...(codingPermissionDecisions && codingPermissionDecisions.length > 0\n ? { permissionDecisions: codingPermissionDecisions }\n : {}),\n ...(runError ? { error: buildOutputErrorPayload(runError) } : {}),\n ...(captureError ? { changeSetCaptureError: buildOutputErrorPayload(captureError) } : {}),\n ...(verificationInfrastructureError ? { verificationInfrastructureError: buildOutputErrorPayload(verificationInfrastructureError) } : {}),\n ...(traceabilityErrors.length > 0 ? { traceabilityErrors: traceabilityErrors.map(buildOutputErrorPayload) } : {}),\n ...(scopeAssessment ? { scopeAssessment } : {}),\n verification,\n ...(changeSet ? {\n changeSetSummary: {\n baselineHeadSha: changeSet.baselineHeadSha,\n postRunHeadSha: changeSet.postRunHeadSha,\n headMovedDuringRun: changeSet.headMovedDuringRun,\n stats: changeSet.stats,\n /*\n * WHICH files, beside how many — asked for by the judge itself.\n *\n * On 2026-09-16, the first run whose evidence the `dispatch-outcome-sound` treatment could\n * read answered INDETERMINATE on its in-scope criterion, and said exactly why: \"the artifact\n * does not identify the changed paths or their contents. It therefore cannot show that the\n * dispatched target/stage was implemented within <the declared scope>\". That criterion asks\n * whether a schema task added a persisted shape and a ui-behavior task added field displays —\n * a question about PATHS, answered with counts.\n *\n * Path and attribution class only. The class is what lets a reader separate the run's own\n * work from a file that was already dirty at baseline or that a parallel session committed\n * inside the window — the distinction the criterion's own guidance turns on, and one the\n * counts flatten. Contents stay out: the full diff is a trace artifact, and pasting a\n * change-set into a durable row would put the repository inside its own task record.\n *\n * BOUNDED, because a durable row is not a diff: a task that touches more files than this\n * carries the first `CHANGE_SET_SUMMARY_FILE_LIMIT` and says how many it left out, which is\n * a truthful summary rather than a silently truncated one.\n */\n files: changeSet.files.slice(0, CHANGE_SET_SUMMARY_FILE_LIMIT).map((entry) => ({\n path: entry.path,\n attribution: entry.attribution,\n changeKind: entry.changeKind,\n })),\n ...(changeSet.files.length > CHANGE_SET_SUMMARY_FILE_LIMIT\n ? { filesOmittedFromSummary: changeSet.files.length - CHANGE_SET_SUMMARY_FILE_LIMIT }\n : {}),\n },\n } : { changeSetSummary: null }),\n };\n\n /*\n * The run CONCLUDED, and the engine's driver records it (#1359): the status, this output and the\n * change-set artifact land on the task in the one move that settles the execution. `FAILED` is a\n * conclusion here, not a throw — see {@link CodingRunResult}.\n */\n return {\n kind: CodingRunEnding.CONCLUDED,\n conclusion: {\n status: succeeded ? FlowsActors_Status.COMPLETED : FlowsActors_Status.FAILED,\n taskOutput: output,\n ...(changeSet ? { taskArtifacts: [buildChangeSetArtifact(taskId, changeSet)] } : {}),\n },\n output,\n afterSettle: async () => {\n /*\n * A run that ANSWERED a question and then failed would otherwise keep its resume inputs:\n * the driver leaves a FAILED run's checkpoint in place, because for most hosts re-running\n * from it is how a failure is recovered. Here it holds the admitted contract — context\n * bytes the durable row deliberately never carries — and the question it answered is gone,\n * so there is nothing to continue. A failed coding run is re-DISPATCHED, not resumed.\n */\n if (!succeeded && resume) {\n await traceBestEffort('consume-checkpoint', () => this.actorsSystem.consumeActorExecutionCheckpoint(opened.executionId, runSession));\n }\n if (succeeded) {\n await traceBestEffort('record-success', () => this.traceOperationSuccess({\n sessionContext: runSession,\n step: runStep,\n type: 'application-coding-task-run-success',\n summary: `Recorded working result for application coding task ${task.taskRef}`,\n payload: output,\n }));\n await this.acceptUnderAutonomyPosture(task.taskRef, taskId);\n return;\n }\n await traceBestEffort('record-failure', () => this.traceOperationFailure({\n sessionContext: runSession,\n step: runStep,\n type: 'application-coding-task-run-failure',\n summary: `Application coding task ${task.taskRef} requires follow-up`,\n error: runError ?? captureError ?? verificationInfrastructureError ?? traceabilityErrors[0] ?? new Error(`Application coding task disposition: ${disposition}`),\n payload: output,\n }));\n },\n };\n }\n\n // ================================================================\n // Interactive lane — classifier, live relay, park & resume\n // ================================================================\n\n /**\n * Classify a coding agent's end-of-turn message through the dedicated\n * structured classifier agent. Throws on any fault; the ENGINE ladder wraps\n * that into `CLASSIFIER_UNAVAILABLE` and settles, so this never has to invent\n * a safe default of its own.\n */\n private async classifyCodingTurnEnd(input: {\n readonly finalMessage: string;\n readonly turnIndex: number;\n }): Promise<CodingAgent_EndOfTurnClassification> {\n const prompt = [\n 'A coding agent ended its turn with the message below. Classify what the message means so an '\n + 'autonomous runner can decide whether to continue automatically, or to surface a question to '\n + 'the operator.',\n '',\n '# Agent end-of-turn message',\n input.finalMessage,\n ].join('\\n');\n const invocation: FlowsActors_Agent_Invocation<any, any> = {\n agentRef: APPLICATION_CODING_TURN_CLASSIFIER_AGENT_REF,\n initiator: {},\n invocationContext: [],\n input: { prompt, schema: CodingTurnEndClassificationOutputSchema },\n output: { object: {} },\n executionContext: {},\n artifactBindings: [],\n };\n const response = await this.agentsService.invokeAgent(invocation);\n const raw = (response.output as { object?: unknown } | undefined)?.object;\n const parsed = CodingTurnEndClassificationOutputSchema.safeParse(raw);\n if (!parsed.success) {\n // A malformed classifier answer is a classifier fault: let the ladder fail\n // open rather than guess which situation the model meant.\n throw new Error('Coding turn-end classifier returned an unparseable result.');\n }\n return parsed.data.classification;\n }\n\n /** Fan one live frame out to a task's SSE subscribers. Best-effort, never throws into the run. */\n private publishCodingSessionFrame(taskId: string, frame: CodingSessionLiveFrame): void {\n const listeners = this.codingSessionSubscribers.get(taskId);\n if (!listeners) return;\n for (const listener of listeners) {\n try {\n listener(frame);\n } catch {\n // A subscriber must never be able to fail the run it observes.\n }\n }\n }\n\n /**\n * Subscribe to a task's live coding frames. Returns an unsubscribe function.\n *\n * Frames flow only while a run is ACTIVE for that task; a subscriber that\n * attaches after the run parked or finished simply receives nothing further,\n * which is why the SSE endpoint sends the current pending question up front.\n */\n public subscribeToCodingSession(taskId: string, listener: (frame: CodingSessionLiveFrame) => void): () => void {\n let listeners = this.codingSessionSubscribers.get(taskId);\n if (!listeners) {\n listeners = new Set();\n this.codingSessionSubscribers.set(taskId, listeners);\n }\n listeners.add(listener);\n return () => {\n const set = this.codingSessionSubscribers.get(taskId);\n if (!set) return;\n set.delete(listener);\n if (set.size === 0) this.codingSessionSubscribers.delete(taskId);\n };\n }\n\n /**\n * The questions currently awaiting an operator answer, for status/UX.\n *\n * Read from the ACTOR PLANE since #1359: every parked coding run is an execution of\n * `application-coding.system` that is `AWAITING_APPROVAL`, carrying the decision it waits on and\n * the checkpoint an answer continues from. Until then this read an in-process map, so a companion\n * restart emptied the list while the questions still stood — the board showed nothing to answer\n * for runs that were one answer away from continuing.\n *\n * Each carries a `decision` — the same `HumanDecision_Request` an interview and a clarification are\n * rendered from — so a reader needs no knowledge of ACP suspensions to show one. It is the decision\n * STORED on the execution when the run parked, not one rebuilt here: a second producer of a shared\n * contract would drift from the first the day an option changed.\n */\n public async listPendingCodingQuestions(sessionContext?: CompanionExecutionSessionContext): Promise<Array<{\n taskId: string; taskRef: string; question: string; parkedAt: string; resumable: boolean; decision: HumanDecision_Request;\n }>> {\n return (await this.listParkedCodingRuns(sessionContext)).map((parked) => ({\n taskId: parked.taskId,\n taskRef: parked.checkpoint.taskRef,\n question: parked.checkpoint.suspension.question,\n parkedAt: parked.checkpoint.parkedAt,\n resumable: parked.checkpoint.suspension.resumable,\n decision: parked.decision,\n }));\n }\n\n /**\n * Every coding run waiting on an operator, as the actor plane holds it.\n *\n * ONE system's waiting executions — not the 200 most recently updated rows of every actor, which is\n * what the task-list scans this replaced read, and why a parked coding row could fall outside the\n * window on a busy application and be reported as absent.\n *\n * A waiting row whose checkpoint does not parse is SKIPPED, never reported: it has lost the thing\n * an answer would continue, so it is not a parked run anybody can answer. The startup reconcile\n * aborts such a row for review; between restarts it is simply not offered.\n */\n private async listParkedCodingRuns(sessionContext?: CompanionExecutionSessionContext): Promise<Array<{\n executionId: string; taskId: string; checkpoint: ApplicationCodingRunCheckpoint; decision: HumanDecision_Request;\n }>> {\n const waiting = await this.actorsSystem.listSuspendedActorExecutions(APPLICATION_CODING_SYSTEM_REF, sessionContext);\n const parked: Array<{ executionId: string; taskId: string; checkpoint: ApplicationCodingRunCheckpoint; decision: HumanDecision_Request }> = [];\n for (const row of waiting) {\n const checkpoint = ApplicationCodingRunCheckpointSchema.safeParse(row.checkpoint?.context);\n const task = row.tasks[0];\n if (!checkpoint.success || !task || !row.suspension) continue;\n parked.push({ executionId: row._id, taskId: task._id, checkpoint: checkpoint.data, decision: row.suspension.decision });\n }\n return parked;\n }\n\n /**\n * A run that parked on a question, as the engine's driver is told to record it: the run waits on\n * its execution (`AWAITING_APPROVAL`) with the decision a person owes and the inputs an answer\n * continues from, and its task shows the question and what the turn cost so far.\n *\n * Deliberately skips change-set assessment and verification: a parked run's\n * edits are partial by definition, and assessing them as a final change set is\n * exactly the \"read a suspended turn as complete\" mistake the suspension field\n * exists to prevent.\n */\n private buildParkedCodingRunResult(params: {\n task: MetaWorkflow_ApplicationCodingTaskContract;\n taskId: string;\n baseline: GitWorktreeSnapshot;\n suspension: CodingAgent_SessionSuspension;\n output: Partial<CodingAgent_RunTaskOutput>;\n usage: CodingAgent_Usage | undefined;\n codingSessionEventCount: number;\n retainedCodingSessionFrames: Array<{ readonly kind: string; readonly payload: unknown }>;\n codingSessionRetention: CodingSessionRetentionSummary;\n startedAtMs: number;\n runSession: CompanionExecutionSessionContext | undefined;\n runStep: ReturnType<CompanionTraceabilityService['createStep']> | undefined;\n traceBestEffort: (operation: string, write: () => Promise<void>) => Promise<void>;\n }): CodingRunResult {\n const { task, taskId, baseline, suspension, output } = params;\n const parkedAt = new Date().toISOString();\n\n const durableOutput = {\n succeeded: false,\n disposition: ApplicationCodingTaskDisposition.AWAITING_OPERATOR_INPUT,\n durationMs: Date.now() - params.startedAtMs,\n // The question the operator must answer, front and centre.\n pendingQuestion: suspension.question,\n suspension,\n agentOutputTail: (output.finalMessage ?? '').slice(-OUTPUT_TAIL_CHARS),\n ...(output.stopReason ? { agentStopReason: output.stopReason } : {}),\n ...(output.turnCount ? { turnCount: output.turnCount } : {}),\n ...(output.continuations && output.continuations.length > 0 ? { continuations: output.continuations } : {}),\n ...(params.codingSessionEventCount > 0 ? { codingSessionEventCount: params.codingSessionEventCount } : {}),\n ...(params.retainedCodingSessionFrames.length > 0\n ? { codingSessionFrames: params.retainedCodingSessionFrames, codingSessionRetention: params.codingSessionRetention }\n : {}),\n ...(params.usage ? { usage: params.usage } : {}),\n ...(output.deniedPermissionCount !== undefined ? { deniedPermissionCount: output.deniedPermissionCount } : {}),\n ...(output.permissionDecisions && output.permissionDecisions.length > 0 ? { permissionDecisions: output.permissionDecisions } : {}),\n };\n\n // The resume inputs — see `ApplicationCodingRunCheckpointSchema` for why the CONTRACT and the\n // ORIGINAL baseline travel here rather than being re-derived when the answer arrives.\n const checkpoint: ApplicationCodingRunCheckpoint = {\n kind: APPLICATION_CODING_RUN_CHECKPOINT_KIND,\n taskRef: task.taskRef,\n contract: task,\n baseline,\n suspension,\n parkedAt,\n };\n\n return {\n kind: CodingRunEnding.PARKED,\n suspension: {\n decision: projectParkedCodingQuestionAsDecision({ taskId, taskRef: task.taskRef, suspension, parkedAt }),\n checkpointContext: checkpoint,\n taskOutput: durableOutput,\n },\n output: durableOutput,\n afterSettle: () => params.traceBestEffort('record-awaiting-input', () => this.traceOperationStart({\n sessionContext: params.runSession,\n step: params.runStep,\n type: 'application-coding-task-awaiting-input',\n summary: `Application coding task ${task.taskRef} is awaiting an operator answer`,\n payload: { taskId, question: suspension.question, resumable: suspension.resumable },\n })),\n };\n }\n\n /**\n * Has this build task ALREADY been run to a working result?\n *\n * Asked by the build dispatcher before it selects a task, and the reason is a measured money\n * leak rather than tidiness. `dispatch-next` picks `ready[0]`, and readiness is \"not landed\";\n * a task whose declared PRODUCT is never satisfied by the work it does is therefore ready\n * again the instant it finishes. Measured 2026-09-10 on Wonder CRM, where every task in the\n * plan declares `produces: []` and so can never land (#606): three consecutive dispatches\n * selected `build-task-contact-schema`, ran a full coding agent each time, and cost roughly\n * $7.50 per iteration. Nothing failed — each run succeeded — and the loop is unbounded.\n *\n * The durable actor-task rows are the right source and the only one that survives a restart:\n * an in-memory \"last dispatched\" would forget across the respawn that a rebuild triggers, and\n * the loop would resume.\n *\n * Deliberately COMPLETED only. A failed or cancelled run is exactly what an operator SHOULD be\n * able to re-dispatch, and a parked one is answered by resuming rather than by re-running.\n *\n * And a RE-ARMED completed run does not count (#1535): once the reason a task did not land is\n * fixed, `rearmBuildTask` records that on the run, and the task is offered again.\n */\n public async findCompletedRunForBuildTask(\n buildTaskRef: string,\n sessionContext?: CompanionExecutionSessionContext,\n ): Promise<{ taskId: string; completedAt?: string } | null> {\n const [first] = await this.listCountingCompletedRunsForBuildTask(buildTaskRef, sessionContext);\n return first === undefined ? null : { taskId: first.taskId, completedAt: first.completedAt };\n }\n\n /**\n * Put a build task back in the queue after the reason it did not land has been fixed (#1535).\n *\n * Every completed or failed run of the task that still counts gets a re-arm recorded on its own row, in its\n * long-term memory, with the reason and a note. Nothing about the run is rewritten: it still reads\n * as the run it was, and it now also reads as a run that was superseded, and why.\n *\n * Refuses when there is nothing to re-arm, naming why, because a re-arm that changes nothing would\n * let an operator believe a task was released when it was never held.\n */\n public async rearmBuildTask(\n buildTaskRef: string,\n request: { readonly reason: BuildTaskRearmReason; readonly note: string },\n sessionContext?: CompanionExecutionSessionContext,\n ): Promise<{ readonly rearmedRunTaskIds: readonly string[]; readonly rearm: BuildTaskRearm }> {\n // Completed runs hold a task through the anti-loop guard; failed ones through its attempt budget (#1536).\n const runs = [\n ...(await this.listCountingCompletedRunsForBuildTask(buildTaskRef, sessionContext)),\n ...(await this.listAttributableFailedRunsForBuildTask(buildTaskRef, sessionContext)),\n ];\n if (runs.length === 0) {\n throw new NothingToRearmError(\n `Build task \"${buildTaskRef}\" has no completed or failed coding run that still counts, so there is nothing to re-arm: `\n + 'it was never run, or every run is already re-armed. A task in that state is '\n + 'offered by the next dispatch on its own.',\n );\n }\n const rearm: BuildTaskRearm = { reason: request.reason, note: request.note, rearmedAt: new Date().toISOString() };\n try {\n for (const run of runs) {\n await this.executionsService.updateActorTask(run.taskId, { memory: withBuildTaskRearm(run.memory, rearm) }, sessionContext);\n }\n } finally {\n // A re-arm is actor-plane memory only — no file moves — and it releases a task the boards held as\n // stuck. Announced even when a later update threw: the runs re-armed before it did still moved.\n this.announceRunStateChanged();\n }\n return { rearmedRunTaskIds: runs.map((run) => run.taskId), rearm };\n }\n\n /**\n * The FAILED coding runs of one build task that still count against its attempt budget (#1536) —\n * newest first, re-armed runs excluded, each with what the dispatcher needs to tell the next attempt\n * why this one failed.\n *\n * Only the task's OWN failures count. Since `703d07c3` a check that was red before the run started\n * no longer fails it (the run completes and records `carriedVerificationFailures`). A CANCELLED or\n * ABORTED run is an operator's or a host's act, not an attempt, and is not listed — which includes a\n * dispatch refused before admission, settled ABORTED (#1581). A FAILED run the HOST caused\n * (`failureAttribution`, {@link deriveCodingRunFailureAttribution}) is forgiven, up to\n * `MAXIMUM_HOST_FAILURE_EXCLUSIONS`, like suspected interference: past the bound it counts, so a\n * host condition that fails every attempt still retires the task. A row older than the field counts.\n */\n public async listAttributableFailedRunsForBuildTask(\n buildTaskRef: string,\n sessionContext?: CompanionExecutionSessionContext,\n options: { readonly includeRearmed?: boolean } = {},\n ): Promise<{ taskId: string; settledAt?: string; memory: Actors_Memory_Context | undefined; output: Record<string, unknown> }[]> {\n const failed = await this.executionsService.listActorTasks(CompanionActorTasksListQuerySchema.parse({\n status: FlowsActors_Status.FAILED,\n actorRefs: [...APPLICATION_CODING_AGENT_REFS],\n limit: 200,\n }), sessionContext);\n const counting: { taskId: string; settledAt?: string; memory: Actors_Memory_Context | undefined; output: Record<string, unknown>; interferenceSuspected: boolean; hostAttributed: boolean }[] = [];\n for (const task of failed) {\n const row = task as { _id?: string; actors?: { actorRef?: string }; input?: unknown; output?: unknown; completedAt?: string; memory?: Actors_Memory_Context };\n if (!isApplicationCodingAgentRef(row.actors?.actorRef)) continue;\n if (!isRecordValue(row.input) || row.input.taskRef !== buildTaskRef) continue;\n // A re-armed failure no longer counts against the budget; a retry may still want to READ it.\n if (options.includeRearmed !== true && readBuildTaskRearm(row.memory) !== undefined) continue;\n const output = isRecordValue(row.output) ? row.output : {};\n counting.push({\n taskId: String(row._id),\n ...(row.completedAt ? { settledAt: row.completedAt } : {}),\n memory: row.memory,\n output,\n interferenceSuspected: output.interferenceSuspected === true,\n hostAttributed: output.failureAttribution === CodingRunFailureAttribution.HOST,\n });\n }\n /*\n * A run that failed while other runs shared the tree may have failed for THEIR edits (#1528). The\n * budget forgives up to MAXIMUM_INTERFERENCE_RETRIES of those, so interference cannot retire a\n * task, and a task that genuinely cannot pass still does. A retry READING its history sees them all.\n */\n return (options.includeRearmed === true ? counting : selectBudgetCountingFailures(counting))\n .map(({ interferenceSuspected: _suspected, hostAttributed: _host, ...run }) => run);\n }\n\n /**\n * The completed coding runs of one build task that the anti-loop guard still counts — newest first,\n * re-armed runs excluded. One reader, so the guard and the re-arm cannot disagree about which runs\n * hold a task.\n */\n private async listCountingCompletedRunsForBuildTask(\n buildTaskRef: string,\n sessionContext?: CompanionExecutionSessionContext,\n ): Promise<{ taskId: string; completedAt?: string; memory: Actors_Memory_Context | undefined }[]> {\n /*\n * Scoped to the CODING actors before the list is trimmed (#1359). This used to read the 200 most\n * recently updated `COMPLETED` tasks of EVERY actor, so a busy judge or labelling lane could push\n * a completed coding run out of the window — and this guard would then answer \"never ran\" and\n * reopen the loop it exists to close. What remains is a bound on coding runs alone: a build task\n * whose completed run is older than the 200 most recent COMPLETED coding runs is still missed.\n */\n const completed = await this.executionsService.listActorTasks(CompanionActorTasksListQuerySchema.parse({\n status: FlowsActors_Status.COMPLETED,\n actorRefs: [...APPLICATION_CODING_AGENT_REFS],\n limit: 200,\n }), sessionContext);\n\n const counting: { taskId: string; completedAt?: string; memory: Actors_Memory_Context | undefined }[] = [];\n for (const task of completed) {\n const row = task as { _id?: string; actors?: { actorRef?: string }; input?: unknown; completedAt?: string; memory?: Actors_Memory_Context };\n // MEMBERSHIP, not equality with one constant — the same reason\n // `reconcileInterruptedApplicationCodingTasks` gives: a second declared coding agent must\n // not make this silently answer \"never ran\".\n if (!isApplicationCodingAgentRef(row.actors?.actorRef)) continue;\n if (!isRecordValue(row.input) || row.input.taskRef !== buildTaskRef) continue;\n if (readBuildTaskRearm(row.memory) !== undefined) continue;\n counting.push({ taskId: String(row._id), completedAt: row.completedAt, memory: row.memory });\n }\n return counting;\n }\n\n /**\n * A run for this build task that is PARKED on an unanswered question.\n *\n * The sibling above answers \"has this task already run to a terminal state?\" and is what the\n * dispatcher's anti-loop guard consults. It lists `COMPLETED` tasks only, so a run that SUSPENDS is\n * invisible to it, and its task would be offered again on every dispatch, forever.\n *\n * Measured 2026-09-16 on Wonder CRM: `build-task-gdpr-data-handling-governance` suspended, and the\n * next `dispatch-next` dry run selected the same task — neither landed, nor marked, nor skipped.\n * That is the money-burning loop `buildUnlandableTaskError` was written against (#606, ~$7.50 a\n * turn), reached through the one door that guard cannot see.\n *\n * Re-dispatching a parked task is worse than re-dispatching a completed one: it starts a NEW run\n * and abandons the persisted session the operator's answer would have resumed, so the question and\n * everything the agent established are lost rather than merely repeated.\n *\n * Reads the waiting EXECUTIONS of the coding system since #1359 — see `listParkedCodingRuns` for\n * the residual that closed.\n */\n public async findParkedRunForBuildTask(\n buildTaskRef: string,\n sessionContext?: CompanionExecutionSessionContext,\n ): Promise<{ taskId: string; question: string; resumable: boolean } | null> {\n for (const parked of await this.listParkedCodingRuns(sessionContext)) {\n if (parked.checkpoint.taskRef !== buildTaskRef) continue;\n /*\n * RESUMABLE only, and matching the answer door's own predicate is the whole point. A\n * non-resumable park cannot be answered — that door refuses it — so reporting it here would\n * make the dispatcher skip the one task no operator can unblock: a dead end in both\n * directions. A non-resumable park is therefore reported as NOT parked, and a fresh dispatch\n * is the only way forward for it.\n */\n if (!parked.checkpoint.suspension.resumable) continue;\n return { taskId: parked.taskId, question: parked.checkpoint.suspension.question, resumable: true };\n }\n return null;\n }\n\n /**\n * The parked run behind one TASK id, or `null` when nothing answerable waits under it.\n *\n * The task id is the lane's handle and the execution is the engine's, so this is the join: the\n * task row names its execution, and the driver says whether that execution is waiting. Every way\n * of not being a parked coding run answers `null` — not a coding task, no execution, not waiting,\n * a checkpoint that no longer parses — because the caller's response to all of them is the same\n * refusal, and none of them is an error in the request.\n */\n private async readParkedCodingRun(\n taskId: string,\n sessionContext?: CompanionExecutionSessionContext,\n ): Promise<{ executionId: string; checkpoint: ApplicationCodingRunCheckpoint; mode: CodingRunConcurrency } | null> {\n let executionId: string | undefined;\n try {\n const row = await this.executionsService.getActorTask(taskId, sessionContext);\n if (!isApplicationCodingAgentRef(row.actors?.actorRef)) return null;\n executionId = row.wildoApplicationActorSystemExecutionId;\n } catch {\n return null;\n }\n if (!executionId) return null;\n try {\n const waiting = await this.actorsSystem.readSuspendedActorExecution(executionId, sessionContext);\n const checkpoint = ApplicationCodingRunCheckpointSchema.safeParse(waiting.row.checkpoint?.context);\n // A run parked from a wave resumes as one: it holds only its task, never the tree (#1528).\n const mode = isConcurrentRunSubject(waiting.row.exclusiveSubject) ? CodingRunConcurrency.CONCURRENT : CodingRunConcurrency.SINGLE_FLIGHT;\n return checkpoint.success ? { executionId, checkpoint: checkpoint.data, mode } : null;\n } catch {\n // `readSuspendedActorExecution` refuses an execution that is not waiting — already answered,\n // cancelled, settled. For this door that is \"nothing to answer\", not a fault.\n return null;\n }\n }\n\n /**\n * Answer a parked coding task's question, resuming the SAME agent session.\n *\n * ONE door, in-process or after a restart (#1359). The run's execution is `AWAITING_APPROVAL`\n * with the contract, the original baseline and the agent session on its checkpoint, and the\n * engine's `resumeActorExecution` continues it under the same ids: it refuses an execution that is\n * no longer waiting BEFORE moving anything — so a second answer to one question cannot run the\n * work twice — moves the rows back to `PROCESSING`, and settles whatever the continued run does,\n * including parking again on a second question.\n *\n * Runs under the worktree mutation lock exactly like a fresh dispatch (a resume\n * mutates the same worktree) and re-enters the turn ladder through\n * `session/load`, so the agent continues with its full context. The mutation\n * scope and verification plan are the parked contract's; a resume is held to the\n * same bounds as the first run, and its change set is measured from the first run's baseline.\n */\n /**\n * Append one answer to `src/build-plan/CODING-ANSWERS.md` — the record of what a person told a\n * parked coding run (#1454, Step 6). Until then the answer lived only in the agent session and\n * the run log, so a reviewer accepting the change set could not see the decision it rests on.\n *\n * Best-effort: a record that cannot be written is logged and the answer still goes to the agent\n * — the person's answer is not held hostage to a file. The file lands beside the build plan as a\n * working edit; a commit accepts it like every other decision record.\n */\n private async recordCodingQuestionAnswer(\n taskRef: string,\n question: string,\n answer: string,\n source: { readonly answeredBy?: CodingQuestionAnswerer; readonly basis?: string } = {},\n ): Promise<void> {\n const specificationsPackageRoot = this.companionContext.resolvedSpecifications?.packageRoot;\n const buildPlanPath = getFamilyPackageRelativePath(ApplicationSpecificationFamily.BUILD_PLAN);\n if (!specificationsPackageRoot || !buildPlanPath) return;\n const filePath = join(specificationsPackageRoot, dirname(buildPlanPath), CODING_ANSWERS_FILE_NAME);\n try {\n await mkdir(dirname(filePath), { recursive: true });\n const entry = renderCodingQuestionAnswerEntry({ taskRef, question, answer, answeredAt: new Date().toISOString(), ...source });\n if (existsSync(filePath)) await appendFile(filePath, entry, 'utf8');\n else await writeFile(filePath, `${renderCodingQuestionAnswersHeader()}${entry}`, 'utf8');\n } catch (error) {\n this.logDebug('Could not record the coding-question answer beside the build plan (the answer still resumes the run)', { taskRef, error: String(error) });\n }\n }\n\n public async respondToApplicationCodingTaskQuestion(\n taskId: string,\n answer: string,\n sessionContext?: CompanionExecutionSessionContext,\n ): Promise<ApplicationCodingTaskRunAdmission> {\n // A missing answer is a VALIDATION 400 regardless of whether a task is parked\n // — it is a malformed request, not a state conflict.\n const trimmedAnswer = this.admitTypedInput(() => {\n const value = answer.trim();\n if (value.length === 0) throw new Error('empty answer');\n return value;\n }, 'An answer is required to resume a parked coding task.');\n const parked = await this.readParkedCodingRun(taskId, sessionContext);\n if (!parked) {\n throw this.buildDispatchConflictError(\n `No coding task is awaiting an answer under id ${taskId}. It was already answered, cancelled or settled, `\n + 'or it is not a coding run.',\n );\n }\n const { checkpoint, executionId, mode } = parked;\n if (!checkpoint.suspension.resumable) {\n throw this.buildDispatchConflictError(\n `Coding task ${taskId} parked on a question, but its agent does not support session resume, `\n + 'so the answer cannot be delivered to the same session. Re-dispatch the task with the answer folded into the objective.',\n );\n }\n // Answers are serialized behind the same worktree: refused while another run holds it. The\n // driver re-takes the subject on resume and refuses there too; this names the holder first.\n await this.refuseWhileWorktreeIsHeld(null, sessionContext);\n if (mode === CodingRunConcurrency.SINGLE_FLIGHT) await this.refuseWhileConcurrentRunsInFlight(sessionContext);\n const task = checkpoint.contract;\n // The answer is a DECISION the change set will rest on: recorded beside the build plan before the\n // run resumes, so a resume that then fails still leaves the decision where a reviewer reads (#1454, Step 6).\n await this.recordCodingQuestionAnswer(task.taskRef, checkpoint.suspension.question, trimmedAnswer);\n const verificationPlans = this.admitTypedInput(\n () => resolveApplicationCodingTaskVerificationPlans(task.verificationIntent.requiredChecks),\n 'The parked coding task names a verification check this host no longer registers.',\n );\n\n const admission = createDeferred<ApplicationCodingTaskRunAdmission>();\n const resumeBody = async () => {\n // ONE settlement for the whole chain: the resumed turn, and any questions the answering agent\n // then answers under the same hold (#1559) — a caller awaiting it sees the chain's final state.\n const settlement = createDeferred<void>();\n this.applicationCodingTaskSettlements.set(taskId, { promise: settlement.promise, resolve: () => settlement.resolve(undefined) });\n try {\n await this.resumeParkedRunHoldingLock({\n taskId,\n executionId,\n checkpoint,\n answer: trimmedAnswer,\n verificationPlans,\n sessionContext,\n mode,\n onAdmitted: (admitted) => admission.resolve(admitted),\n });\n await this.answerParkedQuestionsHoldingLock(taskId, sessionContext);\n } finally {\n this.applicationCodingTaskSettlements.get(taskId)?.resolve();\n // A resume the driver refused never reached the executor, so nobody answered the caller.\n admission.reject(this.buildDispatchConflictError(`Coding task ${taskId} could not be resumed: it is no longer awaiting an answer.`));\n this.announceRunStateChanged();\n }\n };\n // A run parked from a wave resumes beside it, holding no lock, as it ran (#1528).\n const resumeRun = mode === CodingRunConcurrency.CONCURRENT\n ? resumeBody()\n : withDedicatedFileLock(this.getWorkspaceMutationLockPath(), resumeBody, { retries: { retries: 0 } });\n resumeRun.catch((error: unknown) => {\n admission.reject(this.mapLockError(error));\n this.logDebug('Application coding-task resume run terminated with error', {\n taskId,\n error: describeCaughtError(error),\n });\n });\n\n return admission.promise;\n }\n\n /**\n * Continue one parked run with an answer. The CALLER holds the worktree mutation lock and owns the\n * run's settlement — which is what lets the answering agent resume a run from inside the hold of\n * the run that parked, without a second acquire (the lock is not re-entrant) and without the build\n * loop taking the worktree in between (#1559).\n */\n private async resumeParkedRunHoldingLock(input: {\n readonly taskId: string;\n readonly executionId: string;\n readonly checkpoint: ApplicationCodingRunCheckpoint;\n readonly answer: string;\n readonly verificationPlans: ReturnType<typeof resolveApplicationCodingTaskVerificationPlans>;\n readonly sessionContext?: CompanionExecutionSessionContext;\n readonly mode?: CodingRunConcurrency;\n readonly onAdmitted?: (admitted: ApplicationCodingTaskRunAdmission) => void;\n }): Promise<void> {\n const { taskId, checkpoint } = input;\n const task = checkpoint.contract;\n const baseline = checkpoint.baseline;\n this.activeRuns.set(taskId, { taskId, startedAt: new Date().toISOString(), abortController: new AbortController(), mode: input.mode ?? CodingRunConcurrency.SINGLE_FLIGHT });\n this.openCodingRunWindow(taskId, task.taskRef);\n try {\n const trace = await this.openCodingRunTrace(taskId, task.taskRef);\n await this.superviseCodingRun(task.taskRef, taskId, trace, (capture) =>\n this.actorsSystem.resumeActorExecution(\n input.executionId,\n async (opened) => {\n // Admitted HERE, once the engine has moved the rows back to PROCESSING: a resume the\n // driver refuses (somebody answered first) rejects the admission instead of claiming it.\n input.onAdmitted?.({\n taskId,\n status: FlowsActors_Status.PROCESSING,\n taskRef: task.taskRef,\n baselineHeadSha: baseline.headSha,\n baselineDirtyFileCount: Object.keys(baseline.files).length,\n });\n // Started again, announced only NOW that the engine has moved its rows back to PROCESSING:\n // a read that re-derived before that would still see the run as parked.\n this.announceRunStateChanged();\n return capture(await this.executeApplicationCodingTask(\n task,\n renderApplicationCodingTaskAgentPrompt(task),\n input.verificationPlans,\n opened,\n baseline,\n trace,\n { continuationOfSessionId: checkpoint.suspension.sessionId, answerPrompt: input.answer },\n ));\n },\n trace.runSession,\n this.codingRunOptions,\n ));\n } finally {\n this.endCodingRunWindow(taskId);\n this.activeRuns.delete(taskId);\n // NOT announced here: this runs inside a chain its CALLER settles (`resumeBody`, or a fresh run\n // answering its parked questions), and that caller announces once the whole chain has settled.\n }\n }\n\n /**\n * Offer a run's parked question to the ANSWERING AGENT before it reaches the creator (#1559), and\n * keep doing so while the run parks again on a question the agent can answer.\n *\n * Runs inside the worktree hold of the run that parked, BEFORE that run's settlement resolves: the\n * build loop waits on the settlement, so it sees the chain's final outcome, and it cannot take the\n * worktree between the park and the answer — a race that would send answerable questions to a person\n * for no reason.\n *\n * Bounded three ways, all in `decideAgentAnswerAttempt`: the posture (GUIDED keeps every question with\n * the person), one verdict per question, and {@link MAXIMUM_AGENT_ANSWERS_PER_RUN} answers per run.\n * Every verdict is written to the run's task memory BEFORE anything acts on it, so a wrong\n * self-answer can be audited and a restart cannot ask the same question twice.\n *\n * Never fails the run. Every refusal, a failed model call, an unparseable answer or a failed resume\n * leaves the park exactly as it was, and the question reaches the creator as it always did.\n */\n private async answerParkedQuestionsHoldingLock(taskId: string, sessionContext?: CompanionExecutionSessionContext): Promise<void> {\n try {\n for (;;) {\n const parked = await this.readParkedCodingRun(taskId, sessionContext);\n if (!parked || !parked.checkpoint.suspension.resumable) return;\n const row = await this.executionsService.getActorTask(taskId, sessionContext);\n const question = parked.checkpoint.suspension.question;\n const decision = decideAgentAnswerAttempt({\n posture: APPLICATION_CREATION_AUTONOMY_POSTURE,\n question,\n priorRecords: readParkedQuestionAnswers(row.memory),\n });\n if (decision !== AgentAnswerAttemptDecision.ATTEMPT) {\n this.logDebug('Parked question left for the creator', { taskId, decision });\n return;\n }\n const task = parked.checkpoint.contract;\n const agentOutputTail = String((row.output as { agentOutputTail?: unknown } | undefined)?.agentOutputTail ?? '');\n const output = await this.askAnsweringAgent({ brief: renderApplicationCodingTaskAgentPrompt(task), question, agentOutputTail });\n if (!output) return;\n const answer = output.verdict === ParkedQuestionAnswerVerdict.ANSWERED ? output.answer.trim() : '';\n const record: ParkedQuestionAnswerRecord = {\n // An `answered` with no answer is not an answer; the creator is asked.\n verdict: answer.length > 0 ? ParkedQuestionAnswerVerdict.ANSWERED : ParkedQuestionAnswerVerdict.PRODUCT_DECISION,\n question,\n answer,\n basis: output.basis.trim(),\n decidedAt: new Date().toISOString(),\n };\n await this.executionsService.updateActorTask(taskId, { memory: withParkedQuestionAnswer(row.memory, record) }, sessionContext);\n this.logger.info('The answering agent returned a verdict on a parked coding question', {\n taskId, taskRef: task.taskRef, verdict: record.verdict,\n });\n if (record.verdict !== ParkedQuestionAnswerVerdict.ANSWERED) return;\n await this.recordCodingQuestionAnswer(task.taskRef, question, answer, { answeredBy: CodingQuestionAnswerer.ANSWERING_AGENT, basis: record.basis });\n await this.resumeParkedRunHoldingLock({\n taskId,\n executionId: parked.executionId,\n checkpoint: parked.checkpoint,\n answer,\n verificationPlans: resolveApplicationCodingTaskVerificationPlans(task.verificationIntent.requiredChecks),\n sessionContext,\n mode: parked.mode,\n });\n }\n } catch (error) {\n this.logger.warn('The answering agent could not handle a parked coding question; it stays with the creator', {\n taskId,\n error: describeCaughtError(error),\n });\n }\n }\n\n /** ONE structured call to the answering agent; `null` when it produced nothing usable, which leaves the question with the creator. */\n private async askAnsweringAgent(input: { readonly brief: string; readonly question: string; readonly agentOutputTail: string }): Promise<ParkedQuestionAnswerOutput | null> {\n const invocation: FlowsActors_Agent_Invocation<any, any> = {\n agentRef: PARKED_QUESTION_ANSWERER_AGENT_REF,\n initiator: {},\n invocationContext: [],\n input: { prompt: renderParkedQuestionAnswerPrompt(input), schema: ParkedQuestionAnswerOutputSchema },\n output: { object: {} },\n executionContext: {},\n artifactBindings: [],\n };\n const response = await this.agentsService.invokeAgent(invocation);\n const parsed = ParkedQuestionAnswerOutputSchema.safeParse((response.output as { object?: unknown } | undefined)?.object);\n return parsed.success ? parsed.data : null;\n }\n\n private buildApplicationCodingTaskTraceSummary(task: MetaWorkflow_ApplicationCodingTaskContract): Record<string, unknown> {\n return {\n taskRef: task.taskRef,\n objectiveRef: task.objectiveRef,\n candidateRef: task.candidateRef,\n mutationScope: task.mutationScope,\n contextPlanRef: task.contextPlan.planRef,\n selectedSourceRefs: task.contextSelection.selectedSources.map((source) => source.sourceRef),\n verificationRef: task.verificationIntent.verificationRef,\n requiredChecks: task.verificationIntent.requiredChecks,\n installedSkillRefs: task.installedSkillRefs,\n };\n }\n\n // ================================================================\n // Verification hook (P-29c — enum vocabulary, never a command string)\n // ================================================================\n\n private buildVerificationPlan(kind: VerificationKind, requestedPath?: string): VerificationPlan {\n if (kind === VerificationKind.VITEST_PATH) {\n const sanitized = this.sanitizeRelativePath(requestedPath ?? '');\n const absoluteTestPath = join(this.companionContext.saasRoot, sanitized);\n const packageDir = this.findNearestPackageDir(dirname(absoluteTestPath));\n return {\n kind,\n path: sanitized,\n command: 'pnpm',\n args: ['exec', 'vitest', 'run', relative(packageDir, absoluteTestPath)],\n cwd: packageDir,\n };\n }\n\n // TYPECHECK — optional path points at a workspace package directory.\n const sanitized = requestedPath ? this.sanitizeRelativePath(requestedPath) : null;\n return {\n kind,\n path: sanitized,\n command: 'pnpm',\n args: ['exec', 'tsc', '--noEmit'],\n cwd: sanitized ? join(this.companionContext.saasRoot, sanitized) : this.companionContext.saasRoot,\n };\n }\n\n /**\n * The FK-resolution sweep, sourced from the `resources-registry` introspection\n * behavior — a FRESH subprocess import of the app's shared-lib, never the\n * companion's boot-time cache, so it judges exactly the bytes the mutation\n * left on disk. Fails the check when any `.isForeignKey()` field has no\n * registered relationship edge: invisible to every typecheck in the plan and\n * to the backend boot, fatal to the app's frontend at first page load\n * (`frontend_fk_resolution_failed` — wonder-crm, 2026-08-27).\n */\n private async runForeignKeyResolutionVerification(): Promise<VerificationOutcome> {\n const backendServiceKey = Object.entries(this.companionContext.servicesByKey)\n .find(([, service]) => !service.frontendType)?.[0];\n if (!backendServiceKey) {\n throw new Error('No backend service is available to run the frontend-fk-resolution verification.');\n }\n const result = await this.introspectionService.requestInfo({\n serviceKey: backendServiceKey,\n behavior: 'resources-registry',\n });\n if (!result.success) {\n throw new Error(`resources-registry introspection failed: ${JSON.stringify(result)}`);\n }\n const unresolved = (result.data as { unresolvableForeignKeyFields?: Array<{ resourceType: string; fieldName: string }> })\n .unresolvableForeignKeyFields ?? [];\n const success = unresolved.length === 0;\n return {\n kind: VerificationKind.FRONTEND_FK_RESOLUTION,\n path: null,\n success,\n message: success\n ? 'every isForeignKey() field resolves through a registered relationship'\n : `${unresolved.length} FK field(s) cannot be resolved to a resource type: `\n + unresolved.map(({ resourceType, fieldName }) => `${resourceType}.${fieldName}`).join(', ')\n + ' — declare a relationship with the corresponding foreignKeyField.',\n stdoutTail: '',\n stderrTail: '',\n };\n }\n\n /**\n * The settings-rail content sweep — the SHELL_PLACEMENT counterpart of the FK sweep,\n * and it exists for the same reason: the defect it catches is invisible to a typecheck.\n *\n * A placement naming a `destinationRef` the engine catalog does not ship is not a type\n * error. `resolveSettingsHubConfig` DROPS it, and the section silently never renders —\n * so a coding task that typo'd a ref passes `check:app-typecheck`, reports verified, and\n * leaves the application missing a settings section nobody is told about.\n *\n * WARNINGS do not fail the check. Only errors do: the verifier reports both severities,\n * and failing a coding task on an advisory would train the lane to ignore its own gate.\n */\n private async runSettingsPlacementContentVerification(): Promise<VerificationOutcome> {\n // Mirrors the FK sweep's resolution, on the other side of the same predicate: that\n // one wants a backend service, this one a FRONTEND service, because the settings rail\n // is authored in the frontend workspace and only that subprocess can import it.\n const frontendServiceKey = Object.entries(this.companionContext.servicesByKey)\n .find(([, service]) => service.frontendType)?.[0];\n if (!frontendServiceKey) {\n throw new Error('No frontend service is available to run the settings-placement-content verification.');\n }\n const result = await this.introspectionService.requestInfo({\n serviceKey: frontendServiceKey,\n behavior: 'settings-placement-content',\n });\n if (!result.success) {\n throw new Error(`settings-placement-content introspection failed: ${JSON.stringify(result)}`);\n }\n const data = result.data as {\n authored?: boolean;\n errors?: Array<{ severity: string; code: string; message: string }>;\n };\n const blocking = (data.errors ?? []).filter((error) => error.severity !== 'warning');\n const success = blocking.length === 0;\n return {\n kind: VerificationKind.SETTINGS_PLACEMENT_CONTENT,\n path: null,\n success,\n message: success\n ? (data.authored === false\n // Not a silent pass: an application with no authored rail has nothing to\n // verify, and saying so is the difference between \"checked and clean\" and\n // \"there was nothing to check\".\n ? 'no settings rail is authored — nothing to verify'\n : 'every authored placement names a destination the engine ships')\n : `${blocking.length} settings-placement error(s): `\n + blocking.map((error) => `${error.code}: ${error.message}`).join(' | '),\n stdoutTail: '',\n stderrTail: '',\n };\n }\n\n /**\n * The schema-plan drift gate — `wildo db diff --check` at the application root.\n *\n * ## Why it is not simply another argv plan\n *\n * The other CLI checks answer a two-valued question about a package that always exists.\n * This one has THREE outcomes, and collapsing any of them into \"failed\" would fail runs\n * on a question nobody asked:\n *\n * 1. **No committed lockfile** — answered here, from the application's DECLARED store\n * (`ApplicationSchemaPlanObligation`, #1144), because `wildo db diff --check` exits\n * non-zero for every application without one. A MongoDB application is permanently in\n * this state (a collection exists on first write; there is no plan to drift from): a\n * pass that says it checked nothing. A PostgreSQL application in it has had no\n * migration create its tables and cannot boot: a FAILED check naming the initial\n * `wildo db generate`. A store that cannot be read is \"we could not ask\": it THROWS.\n * 2. **No `backend-api/dist`** — the model is computed by IMPORTING the compiled\n * modules registry, and the build lane only ever runs `tsc --noEmit`, which emits\n * nothing. This is \"we could not ask\", not \"the application has drifted\", so it\n * THROWS and is reported as an infrastructure error. Same distinction this playbook's\n * method already draws for the typechecks, and the same reasoning\n * `reconcileDevelopmentSchemaDrift` uses when it SKIPS on a stale model rather than\n * generating a migration for a model nobody has.\n * 3. **Both present** — the spawn decides, and its own message is carried through: it\n * names the drifted tables and the command that fixes them, which is more than this\n * layer could reconstruct.\n *\n * ## Why the check is worth having at all\n *\n * It is the only check in the catalog that can see a missing table. A resource whose\n * migration was never generated typechecks green in all four packages and then refuses\n * to boot with `postgresql_table_schema_mismatch` — measured 2026-09-07, when an engine\n * resource landed with migrations for two of the three PostgreSQL-backed applications\n * and the third crash-looped until a human read the log.\n */\n private async runSchemaPlanDriftVerification(): Promise<VerificationOutcome> {\n const saasRoot = this.companionContext.saasRoot;\n const assessment = await assessApplicationSchemaPlanObligation(saasRoot);\n if (assessment.obligation === ApplicationSchemaPlanObligation.NOT_OWED) {\n return {\n kind: VerificationKind.SCHEMA_PLAN_DRIFT,\n path: null,\n success: true,\n // Says it checked NOTHING rather than reporting a clean plan — the same honesty the\n // settings-placement sweep applies to an application with no authored rail.\n message: `no schema-plan lockfile, and ${assessment.declaredIn} does not declare PostgreSQL — this application has not adopted migrations, so there is no accepted plan to drift from (every MongoDB application is in this state permanently)`,\n stdoutTail: '',\n stderrTail: '',\n };\n }\n if (assessment.obligation === ApplicationSchemaPlanObligation.BASELINE_OWED) {\n /*\n * A FAILED check, not a pass (#1144). Until then no lockfile read as \"not adopted\" whatever the store,\n * so a PostgreSQL application whose initial migration was never generated verified green here — the\n * one check in the catalog that can see a missing table, answering for the one application that has\n * none of them.\n */\n return {\n kind: VerificationKind.SCHEMA_PLAN_DRIFT,\n path: null,\n success: false,\n message: `no schema-plan baseline, but ${assessment.declaredIn} declares PostgreSQL — no migration has created this application's tables, so its backend cannot boot. Generate the initial migration with \\`wildo db generate --name initial-schema\\` (it writes the baseline in the same invocation) and commit both.`,\n stdoutTail: '',\n stderrTail: '',\n };\n }\n if (assessment.obligation === ApplicationSchemaPlanObligation.UNDETERMINED) {\n // Infrastructure, not drift: nothing about the model was asked.\n throw new Error(`Cannot check schema-plan drift: there is no schema-plan lockfile and ${assessment.reason}.`);\n }\n\n const modulesRegistryPath = join(saasRoot, 'backend-api', 'dist', 'modules-registry.backend.js');\n if (!existsSync(modulesRegistryPath)) {\n // THROWN on purpose: `executeVerificationPlans` classifies a throw as an infrastructure\n // error and reports it apart from a failing check. A `success: false` here would say the\n // application has drifted, which is a claim about a model that was never computed.\n throw new Error(\n `Cannot check schema-plan drift: ${modulesRegistryPath} does not exist. The plan is computed by importing `\n + \"the compiled backend registry, and this build never emitted one (`tsc --noEmit` does not). Build backend-api, \"\n + 'or run this check under `wildo local dev`, whose watcher maintains that dist.',\n );\n }\n\n const outcome = await this.runVerification({\n kind: VerificationKind.SCHEMA_PLAN_DRIFT,\n path: null,\n command: 'wildo',\n args: ['db', 'diff', '--check'],\n cwd: saasRoot,\n });\n if (!outcome.success && /ENOENT|not found/i.test(outcome.message)) {\n // The CLI is a GLOBAL install (`platform/factory/scripts/install.sh`) and is not linked\n // into an application's `node_modules/.bin` — verified on both dogfood applications. So\n // \"wildo is not on PATH\" is an absent tool, never a drifted schema.\n throw new Error(`Cannot check schema-plan drift: the \\`wildo\\` CLI could not be executed (${outcome.message}).`);\n }\n /*\n * COULD NOT ASK is not DRIFT, and `wildo db diff --check` cannot tell them apart by exit code —\n * it answers `{ success: false }` for both (`diff.command.ts`), so the message is the only\n * discriminator, exactly as it already is for the ENOENT case above.\n *\n * `computeCurrentLockfileJson` refuses before planning whenever the compiled model is STALE —\n * \"shared-lib/dist is older than its sources … This is NOT drift: wait for the watcher to\n * rebuild\" — or when `backend-api/dist` is absent. Reported as a failing check, both read as\n * \"this application has drifted\", which is a claim about a model that was never computed. On a\n * per-task check that matters twice over: the check runs seconds after an agent wrote the very\n * sources the watcher is still compiling, so the race is the COMMON case rather than the edge.\n *\n * Thrown, like every other infrastructure absence here, so `executeVerificationPlans` reports it\n * apart from a failing check and a BASELINE pass cannot read it as \"already broken\".\n */\n if (!outcome.success && /Cannot compute the current schema plan/i.test(`${outcome.stdoutTail}\\n${outcome.stderrTail}`)) {\n throw new Error(\n 'Cannot check schema-plan drift: the CLI refused to compute the current plan, so nothing about the model was '\n + `asked. This is NOT drift. ${outcome.stderrTail.trim() || outcome.stdoutTail.trim()}`,\n );\n }\n return outcome;\n }\n\n /**\n * Run a resolved verification plan set and return one outcome per check.\n *\n * Extracted from the coding-task dispatch so the SAME executor serves a second caller: the\n * `DETERMINISTIC_CLI` playbook tier, which verifies an already-built application and dispatches no\n * agent (issue #147). The alternative was a second loop that re-derived which kinds branch away\n * from the argv path — and the two would drift the first time a `VerificationKind` was added,\n * silently, because a missed kind falls through to a typecheck that passes.\n *\n * A thrown error is an INFRASTRUCTURE failure, not a failing check: the subprocess could not be\n * run at all. It is recorded as a failed outcome so the caller sees which check was affected, and\n * surfaced separately so a caller can tell \"the application is broken\" from \"we could not ask\".\n */\n private async executeVerificationPlans(\n plans: readonly ApplicationCodingTaskVerificationPlan[],\n ): Promise<{\n verification: Array<{ checkRef: string; outcome: VerificationOutcome }>;\n infrastructureError: unknown;\n /**\n * Which checks did not RUN — they threw before producing a verdict.\n *\n * Reported apart from `verification` because the two answer different questions and one of them\n * must never be read as the other. A thrown check is recorded with `success: false` so a caller\n * that only looks at outcomes still fails closed, and that is right for the post-run pass. It is\n * wrong for a BASELINE pass, where `success: false` would read as \"already broken\" and forgive a\n * real regression the run introduced — `runSchemaPlanDriftVerification` throws by design when\n * `backend-api/dist` is absent, and a missing migration crash-loops the backend, so that is\n * precisely the check a baseline must not silently excuse.\n */\n unrunCheckRefs: readonly string[];\n }> {\n const verification: Array<{ checkRef: string; outcome: VerificationOutcome }> = [];\n const unrunCheckRefs: string[] = [];\n let infrastructureError: unknown = null;\n for (const plan of plans) {\n try {\n verification.push({\n checkRef: plan.checkRef,\n // The FK-resolution check is not a CLI command: it runs in the companion's\n // introspection subprocess (fresh working-tree import), so it branches before\n // the argv-plan path.\n outcome: plan.kind === VerificationKind.FRONTEND_FK_RESOLUTION\n ? await this.runForeignKeyResolutionVerification()\n : plan.kind === VerificationKind.SETTINGS_PLACEMENT_CONTENT\n ? await this.runSettingsPlacementContentVerification()\n : plan.kind === VerificationKind.SCHEMA_PLAN_DRIFT\n ? await this.runSchemaPlanDriftVerification()\n : this.absentWorkspacePackageOutcome(plan)\n ?? await this.runVerification(this.buildVerificationPlan(plan.kind, plan.path ?? undefined)),\n });\n } catch (error) {\n infrastructureError ??= error;\n unrunCheckRefs.push(plan.checkRef);\n verification.push({\n checkRef: plan.checkRef,\n outcome: {\n kind: plan.kind,\n path: plan.path,\n success: false,\n message: describeCaughtError(error),\n stdoutTail: '',\n stderrTail: '',\n },\n });\n }\n }\n return { verification, infrastructureError, unrunCheckRefs };\n }\n\n /**\n * Run named verification checks against the application, outside any agent dispatch.\n *\n * The public door for the `DETERMINISTIC_CLI` tier. Check refs resolve through the same closed\n * `APPLICATION_CODING_TASK_VERIFICATION_CATALOG` a coding task uses, so an unknown ref is refused\n * here rather than becoming an unrun check that reports success by absence.\n *\n * Deliberately takes NO worktree lock and captures NO change set: this reads the application, and\n * pretending otherwise would serialize verification against the single-flight coding lane for no\n * reason.\n */\n public async runApplicationVerificationChecks(\n checkRefs: readonly string[],\n ): Promise<{\n verification: Array<{ checkRef: string; outcome: VerificationOutcome }>;\n infrastructureError: unknown;\n }> {\n return this.executeVerificationPlans(resolveApplicationCodingTaskVerificationPlans(checkRefs));\n }\n\n /**\n * A typecheck of a workspace package the application does not have answers \"nothing to check\" (#1540).\n *\n * Required checks are derived from the paths a task may write, so a provider binding that may write\n * `website/src/provider-contributions.ts` owes the website typecheck, in every application, including\n * one with no website. Running `tsc` in a directory that is not a package would fail the task over a\n * package that does not exist. The honest answer is the one the settings sweep gives when no rail is\n * authored: checked, and nothing was there to check. That is stated in the outcome, never a silent pass.\n *\n * A package is its `package.json`. A directory holding one stray file, with no manifest, is not a\n * package that any typecheck could run in.\n */\n private absentWorkspacePackageOutcome(plan: ApplicationCodingTaskVerificationPlan): VerificationOutcome | undefined {\n if (plan.kind !== VerificationKind.TYPECHECK || plan.path === null) return undefined;\n const packageDirectory = this.sanitizeRelativePath(plan.path);\n if (existsSync(join(this.companionContext.saasRoot, packageDirectory, 'package.json'))) return undefined;\n return {\n kind: plan.kind,\n path: plan.path,\n success: true,\n message: `no ${packageDirectory} package in this application — nothing to typecheck`,\n stdoutTail: '',\n stderrTail: '',\n };\n }\n\n private async runVerification(plan: VerificationPlan): Promise<VerificationOutcome> {\n try {\n const result = await executeBoundedSubprocess({\n command: plan.command,\n args: plan.args,\n cwd: plan.cwd,\n env: buildVerificationEnv(),\n timeoutMs: VERIFICATION_TIMEOUT_MS,\n maxCapturedBytes: VERIFICATION_MAX_CAPTURED_BYTES,\n });\n return {\n kind: plan.kind,\n path: plan.path,\n success: true,\n message: `${plan.command} ${plan.args.join(' ')} passed`,\n stdoutTail: result.stdout.slice(-OUTPUT_TAIL_CHARS),\n stderrTail: result.stderr.slice(-OUTPUT_TAIL_CHARS),\n };\n } catch (error) {\n const details = (error as { details?: { stdout?: string; stderr?: string } }).details;\n return {\n kind: plan.kind,\n path: plan.path,\n success: false,\n message: describeCaughtError(error),\n stdoutTail: (details?.stdout ?? '').slice(-OUTPUT_TAIL_CHARS),\n stderrTail: (details?.stderr ?? '').slice(-OUTPUT_TAIL_CHARS),\n };\n }\n }\n\n /**\n * Run one admission-time validation and convert ANY refusal into a typed\n * VALIDATION error, preserving the original message as context.\n *\n * Deliberately a wrapper rather than N rewritten throw sites: the pure\n * resolver in the models layer has no error builder and should not grow one,\n * and a future admission check gets the same classification by being placed\n * here rather than by remembering to.\n */\n private admitTypedInput<T>(validate: () => T, message: string): T {\n try {\n return validate();\n } catch (error) {\n throw this.errorBuilder.buildError(ErrorType.VALIDATION, undefined, {\n customMessageReference: ErrorCustomMessageReference.VALIDATION,\n context: {\n message,\n validationError: describeCaughtError(error),\n // The task's own contract was refused: a dispatcher counts this as its attempt (#1581).\n [APPLICATION_CODING_CONTRACT_REFUSAL_MARKER]: true,\n },\n });\n }\n }\n\n /**\n * Sanitize an app-root-relative path from the wire: rejects absolute\n * paths, `..` escapes, backslashes, NUL bytes, and flag-lookalikes\n * (leading `-` would be parsed as an argv flag by the fixed commands).\n */\n private sanitizeRelativePath(requestedPath: string): string {\n const candidate = requestedPath.trim();\n const reject = (reason: string): never => {\n throw this.errorBuilder.buildError(ErrorType.VALIDATION, undefined, {\n customMessageReference: ErrorCustomMessageReference.VALIDATION,\n context: {\n message: `Invalid verification path: ${reason}`,\n requestedPath,\n },\n });\n };\n\n if (!candidate) reject('path is empty');\n if (candidate.includes('\\0')) reject('path contains a NUL byte');\n if (candidate.includes('\\\\')) reject('use forward slashes');\n if (isAbsolute(candidate)) reject('path must be relative to the application root');\n if (candidate.startsWith('-')) reject('path must not start with a dash');\n const normalized = normalize(candidate);\n if (normalized.split(sep).includes('..')) reject('path must not escape the application root');\n\n const absolute = join(this.companionContext.saasRoot, normalized);\n const relativeFromRoot = relative(this.companionContext.saasRoot, absolute);\n if (relativeFromRoot.startsWith('..') || isAbsolute(relativeFromRoot)) {\n reject('path resolves outside the application root');\n }\n return normalized;\n }\n\n /** Nearest ancestor dir (within the app root) holding a package.json. */\n private findNearestPackageDir(startDir: string): string {\n let current = startDir;\n const root = this.companionContext.saasRoot;\n while (current.startsWith(root)) {\n if (existsSync(join(current, 'package.json'))) {\n return current;\n }\n const parent = dirname(current);\n if (parent === current) break;\n current = parent;\n }\n return root;\n }\n\n // ================================================================\n // Error + traceability helpers (service-owned wrappers, P-13 pattern)\n // ================================================================\n\n private buildDispatchConflictError(message: string): unknown {\n return this.errorBuilder.buildError(ErrorType.CONFLICT, undefined, {\n customMessageReference: ErrorCustomMessageReference.CONFLICT,\n context: { message },\n });\n }\n\n /** Map proper-lockfile ELOCKED contention onto the 409 vocabulary. */\n private mapLockError(error: unknown): unknown {\n if ((error as { code?: string })?.code === 'ELOCKED') {\n return this.buildDispatchConflictError(\n 'The workspace-mutation lock is held by another process (companion run or CLI). '\n + 'Dispatch is single-flight across processes (P-20); retry after the active run completes. '\n + 'If you are a dispatched coding-agent run: dispatching from a dispatched run is forbidden (P-35).',\n );\n }\n return error;\n }\n\n private createOperationTraceStep(\n sessionContext: CompanionExecutionSessionContext | undefined,\n label: string,\n ) {\n return sessionContext\n ? this.traceabilityService.createStep(sessionContext, {\n kind: 'coding-agent-dispatch',\n label,\n })\n : undefined;\n }\n\n private async traceOperationStart(input: {\n sessionContext?: CompanionExecutionSessionContext;\n step?: ReturnType<CompanionTraceabilityService['createStep']>;\n type: string;\n summary: string;\n payload?: unknown;\n artifactFileName?: string;\n artifactContent?: unknown;\n }): Promise<void> {\n if (!input.sessionContext) return;\n\n await this.traceabilityService.traceEvent({\n session: input.sessionContext,\n minimumLevel: CompanionTraceabilityLevel.DEBUG,\n type: input.type,\n summary: input.summary,\n ...(input.payload !== undefined ? { payload: input.payload } : {}),\n ...(input.step ? { step: input.step } : {}),\n });\n if (input.artifactFileName && input.artifactContent !== undefined) {\n await this.traceabilityService.writeArtifact({\n session: input.sessionContext,\n minimumLevel: CompanionTraceabilityLevel.DEBUG_VERBOSE,\n fileName: input.artifactFileName,\n content: input.artifactContent,\n ...(input.step ? { step: input.step } : {}),\n });\n }\n }\n\n private async traceOperationSuccess(input: {\n sessionContext?: CompanionExecutionSessionContext;\n step?: ReturnType<CompanionTraceabilityService['createStep']>;\n type: string;\n summary: string;\n payload?: unknown;\n artifactFileName?: string;\n artifactContent?: unknown;\n }): Promise<void> {\n if (!input.sessionContext) return;\n\n if (input.artifactFileName && input.artifactContent !== undefined) {\n await this.traceabilityService.writeArtifact({\n session: input.sessionContext,\n minimumLevel: CompanionTraceabilityLevel.DEBUG_VERBOSE,\n fileName: input.artifactFileName,\n content: input.artifactContent,\n ...(input.step ? { step: input.step } : {}),\n });\n }\n await this.traceabilityService.traceEvent({\n session: input.sessionContext,\n minimumLevel: CompanionTraceabilityLevel.DEBUG,\n type: input.type,\n summary: input.summary,\n ...(input.payload !== undefined ? { payload: input.payload } : {}),\n ...(input.step ? { step: input.step } : {}),\n });\n }\n\n private async traceOperationFailure(input: {\n sessionContext?: CompanionExecutionSessionContext;\n step?: ReturnType<CompanionTraceabilityService['createStep']>;\n type: string;\n summary: string;\n error: unknown;\n payload?: unknown;\n }): Promise<void> {\n if (!input.sessionContext) return;\n\n await this.traceabilityService.traceEvent({\n session: input.sessionContext,\n minimumLevel: CompanionTraceabilityLevel.DEBUG,\n type: input.type,\n summary: input.summary,\n payload: {\n ...(input.payload && typeof input.payload === 'object'\n ? input.payload as Record<string, unknown>\n : { input: input.payload }),\n error: buildOutputErrorPayload(input.error),\n },\n ...(input.step ? { step: input.step } : {}),\n });\n }\n\n private async traceOperationArtifact(\n sessionContext: CompanionExecutionSessionContext | undefined,\n step: ReturnType<CompanionTraceabilityService['createStep']> | undefined,\n fileName: string,\n content: unknown,\n ): Promise<void> {\n if (!sessionContext) return;\n await this.traceabilityService.writeArtifact({\n session: sessionContext,\n minimumLevel: CompanionTraceabilityLevel.DEBUG_VERBOSE,\n fileName,\n content,\n ...(step ? { step } : {}),\n });\n }\n}\n\ninterface VerificationPlan {\n kind: VerificationKind;\n path: string | null;\n command: string;\n args: string[];\n cwd: string;\n}\n\n/**\n * Change-set artifact persisted on the task row (P-19: file list + stats\n * + head SHAs + attribution classes). `fullDiffText` is deliberately\n * stripped — the raw diff lives in the traceability artifact only.\n *\n * Persisted as `FlowsActors_IO_PartKind.STRUCTURED` with the capture in\n * `content.data`. History: on 2026-07-03 this was temporarily JSON-encoded\n * into a TEXT artifact because the zod-to-mongoose converter flattened\n * nested discriminated unions (`artifacts[]` on the task row) onto their\n * FIRST variant, making `content.text` a required Mongoose path for every\n * artifact. The converter now merges nested union variants into an\n * all-optional superset schema, so the natural STRUCTURED shape persists\n * again (requires a saas-backend-lib dist carrying that fix).\n */\nfunction buildChangeSetArtifact(taskId: string, changeSet: GitChangeSetCapture): ArtifactInstance {\n const { fullDiffText: _fullDiffText, ...structuredCapture } = changeSet;\n return {\n ref: `coding-agent-change-set-${taskId}`,\n type: FlowsActors_IO_PartKind.STRUCTURED,\n name: 'coding-agent-change-set',\n description: 'Read-only git change-set capture with per-file attribution (P-19)',\n origin: { taskId },\n content: { data: structuredCapture },\n createdAt: new Date().toISOString(),\n };\n}\n\n/** Same minimal allowlist the CLI spawn uses (P-18). */\nfunction buildVerificationEnv(): NodeJS.ProcessEnv {\n // Same minimal identity allowlist the CLI spawn uses (P-18) — incl.\n // USER/LOGNAME so a verification hook that shells out to per-user\n // tooling behaves like the agent run. Kept in lockstep with\n // `ClaudeCliCompanionService`'s allowlist.\n const env: NodeJS.ProcessEnv = {};\n for (const key of ['PATH', 'HOME', 'USER', 'LOGNAME', 'SHELL', 'TERM']) {\n const value = process.env[key];\n if (value !== undefined) env[key] = value;\n }\n return env;\n}\n\nfunction buildOutputErrorPayload(error: unknown): unknown {\n if (isWildoBackendError(error)) return error;\n if (error instanceof Error) {\n return {\n message: error.message,\n name: error.name,\n ...(error.stack ? { stack: error.stack } : {}),\n };\n }\n return { message: String(error) };\n}\n\nfunction createDeferred<T>(): {\n promise: Promise<T>;\n resolve: (value: T) => void;\n reject: (error: unknown) => void;\n} {\n let settled = false;\n let resolveFn!: (value: T) => void;\n let rejectFn!: (error: unknown) => void;\n const promise = new Promise<T>((resolve, reject) => {\n resolveFn = resolve;\n rejectFn = reject;\n });\n return {\n promise,\n resolve: (value) => {\n if (settled) return;\n settled = true;\n resolveFn(value);\n },\n reject: (error) => {\n if (settled) return;\n settled = true;\n rejectFn(error);\n },\n };\n}\n"]}