@wildo-ai/dev-companion 1.1.3 → 1.1.4

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 (549) 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/brand/models/logo-creative-brief.schemas.d.ts.map +1 -1
  6. package/dist/esm/brand/models/logo-generation.actors-system.definitions.d.ts.map +1 -1
  7. package/dist/esm/brand/models/logo-judge.actors-system.definitions.d.ts.map +1 -1
  8. package/dist/esm/brand/models/logo-judge.actors-system.definitions.js +9 -3
  9. package/dist/esm/brand/models/logo-judge.actors-system.definitions.js.map +1 -1
  10. package/dist/esm/brand/models/logo-judge.schemas.d.ts.map +1 -1
  11. package/dist/esm/brand/services/brand-accept.companion.service.d.ts +3 -24
  12. package/dist/esm/brand/services/brand-accept.companion.service.d.ts.map +1 -1
  13. package/dist/esm/brand/services/brand-accept.companion.service.js +10 -48
  14. package/dist/esm/brand/services/brand-accept.companion.service.js.map +1 -1
  15. package/dist/esm/brand/services/logo-deliberation.companion.service.d.ts.map +1 -1
  16. package/dist/esm/brand/services/logo-deliberation.companion.service.js +2 -8
  17. package/dist/esm/brand/services/logo-deliberation.companion.service.js.map +1 -1
  18. package/dist/esm/brand/services/logo-generation.companion.service.d.ts +6 -3
  19. package/dist/esm/brand/services/logo-generation.companion.service.d.ts.map +1 -1
  20. package/dist/esm/brand/services/logo-generation.companion.service.js +11 -12
  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 +0 -1
  23. package/dist/esm/brand/utils/derived-brand-assets.d.ts.map +1 -1
  24. package/dist/esm/brand/utils/derived-brand-assets.js +1 -2
  25. package/dist/esm/brand/utils/derived-brand-assets.js.map +1 -1
  26. package/dist/esm/brand/utils/stage-brand-candidate.d.ts +7 -9
  27. package/dist/esm/brand/utils/stage-brand-candidate.d.ts.map +1 -1
  28. package/dist/esm/brand/utils/stage-brand-candidate.js +8 -11
  29. package/dist/esm/brand/utils/stage-brand-candidate.js.map +1 -1
  30. package/dist/esm/claude-cli/models/coding-agent-dispatch.models.d.ts +52 -2
  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 +45 -0
  33. package/dist/esm/claude-cli/models/coding-agent-dispatch.models.js.map +1 -1
  34. package/dist/esm/claude-cli/services/coding-agent-dispatch.companion.service.d.ts +45 -5
  35. package/dist/esm/claude-cli/services/coding-agent-dispatch.companion.service.d.ts.map +1 -1
  36. package/dist/esm/claude-cli/services/coding-agent-dispatch.companion.service.js +192 -13
  37. package/dist/esm/claude-cli/services/coding-agent-dispatch.companion.service.js.map +1 -1
  38. package/dist/esm/claude-cli/services/git-change-set.companion.service.d.ts +12 -22
  39. package/dist/esm/claude-cli/services/git-change-set.companion.service.d.ts.map +1 -1
  40. package/dist/esm/claude-cli/services/git-change-set.companion.service.js +151 -82
  41. package/dist/esm/claude-cli/services/git-change-set.companion.service.js.map +1 -1
  42. package/dist/esm/claude-cli/services/research-agent-dispatch.companion.service.d.ts +30 -4
  43. package/dist/esm/claude-cli/services/research-agent-dispatch.companion.service.d.ts.map +1 -1
  44. package/dist/esm/claude-cli/services/research-agent-dispatch.companion.service.js +30 -4
  45. package/dist/esm/claude-cli/services/research-agent-dispatch.companion.service.js.map +1 -1
  46. package/dist/esm/claude-cli/services/research-evidence-store.companion.d.ts +16 -0
  47. package/dist/esm/claude-cli/services/research-evidence-store.companion.d.ts.map +1 -1
  48. package/dist/esm/claude-cli/services/research-evidence-store.companion.js +17 -0
  49. package/dist/esm/claude-cli/services/research-evidence-store.companion.js.map +1 -1
  50. package/dist/esm/code-compliance-check/check-label-placeholder-contract.companion.d.ts.map +1 -1
  51. package/dist/esm/code-compliance-check/check-raw-feature-id-literals.companion.d.ts.map +1 -1
  52. package/dist/esm/companion-api/companion-api.schemas.d.ts +57 -57
  53. package/dist/esm/companion-api/companion-api.schemas.d.ts.map +1 -1
  54. package/dist/esm/companion-api/controllers/companion-i18n-api-contract.utils.d.ts.map +1 -1
  55. package/dist/esm/companion-api/controllers/companion-token-floor.policy.d.ts +90 -0
  56. package/dist/esm/companion-api/controllers/companion-token-floor.policy.d.ts.map +1 -0
  57. package/dist/esm/companion-api/controllers/companion-token-floor.policy.js +98 -0
  58. package/dist/esm/companion-api/controllers/companion-token-floor.policy.js.map +1 -0
  59. package/dist/esm/companion-api/controllers/companion.controller.d.ts +33 -5
  60. package/dist/esm/companion-api/controllers/companion.controller.d.ts.map +1 -1
  61. package/dist/esm/companion-api/controllers/companion.controller.js +150 -40
  62. package/dist/esm/companion-api/controllers/companion.controller.js.map +1 -1
  63. package/dist/esm/core/auth/companion-auth-floor.companion.service.d.ts +8 -1
  64. package/dist/esm/core/auth/companion-auth-floor.companion.service.d.ts.map +1 -1
  65. package/dist/esm/core/auth/companion-auth-floor.companion.service.js +8 -1
  66. package/dist/esm/core/auth/companion-auth-floor.companion.service.js.map +1 -1
  67. package/dist/esm/core/catalogs/catalog-context.factory.d.ts.map +1 -1
  68. package/dist/esm/core/catalogs/catalog-context.factory.models.d.ts.map +1 -1
  69. package/dist/esm/core/catalogs/schema-org/aggregate-offer-catalog-context.factory.d.ts.map +1 -1
  70. package/dist/esm/core/catalogs/schema-org/aggregate-rating-catalog-context.factory.d.ts.map +1 -1
  71. package/dist/esm/core/catalogs/schema-org/article-catalog-context.factory.d.ts.map +1 -1
  72. package/dist/esm/core/catalogs/schema-org/blog-posting-catalog-context.factory.d.ts.map +1 -1
  73. package/dist/esm/core/catalogs/schema-org/breadcrumb-list-catalog-context.factory.d.ts.map +1 -1
  74. package/dist/esm/core/catalogs/schema-org/faq-page-catalog-context.factory.d.ts.map +1 -1
  75. package/dist/esm/core/catalogs/schema-org/offer-catalog-context.factory.d.ts.map +1 -1
  76. package/dist/esm/core/catalogs/schema-org/organization-catalog-context.factory.d.ts.map +1 -1
  77. package/dist/esm/core/catalogs/schema-org/product-catalog-context.factory.d.ts.map +1 -1
  78. package/dist/esm/core/catalogs/schema-org/review-catalog-context.factory.d.ts.map +1 -1
  79. package/dist/esm/core/catalogs/schema-org/schema-org-catalog-boundary.shared.d.ts +34 -0
  80. package/dist/esm/core/catalogs/schema-org/schema-org-catalog-boundary.shared.d.ts.map +1 -0
  81. package/dist/esm/core/catalogs/schema-org/schema-org-catalog-boundary.shared.js +65 -0
  82. package/dist/esm/core/catalogs/schema-org/schema-org-catalog-boundary.shared.js.map +1 -0
  83. package/dist/esm/core/catalogs/schema-org/schema-org-catalog-context.shared.d.ts +11 -1
  84. package/dist/esm/core/catalogs/schema-org/schema-org-catalog-context.shared.d.ts.map +1 -1
  85. package/dist/esm/core/catalogs/schema-org/schema-org-catalog-context.shared.js.map +1 -1
  86. package/dist/esm/core/catalogs/schema-org/software-application-catalog-context.factory.d.ts.map +1 -1
  87. package/dist/esm/core/catalogs/schema-org/website-catalog-context.factory.d.ts.map +1 -1
  88. package/dist/esm/core/catalogs/structured-data-catalog-audit.service.d.ts.map +1 -1
  89. package/dist/esm/core/catalogs/structured-data-catalog-audit.service.js +10 -2
  90. package/dist/esm/core/catalogs/structured-data-catalog-audit.service.js.map +1 -1
  91. package/dist/esm/core/config/primary-language.companion.utils.d.ts.map +1 -1
  92. package/dist/esm/core/context/companion-context.d.ts.map +1 -1
  93. package/dist/esm/core/context/companion-package-loaders.companion.d.ts.map +1 -1
  94. package/dist/esm/core/inject/models/container.d.ts.map +1 -1
  95. package/dist/esm/core/inject/models/container.js +0 -7
  96. package/dist/esm/core/inject/models/container.js.map +1 -1
  97. package/dist/esm/core/inject/models/service-types.d.ts +0 -1
  98. package/dist/esm/core/inject/models/service-types.d.ts.map +1 -1
  99. package/dist/esm/core/inject/models/service-types.js +0 -1
  100. package/dist/esm/core/inject/models/service-types.js.map +1 -1
  101. package/dist/esm/core/introspection/behaviors/companion-introspection-behavior-definitions.d.ts.map +1 -1
  102. package/dist/esm/core/introspection/models/companion-introspection.models.d.ts.map +1 -1
  103. package/dist/esm/core/introspection/resources/creation-plane-dispatch.custom-impl.companion.service.d.ts.map +1 -1
  104. package/dist/esm/core/introspection/resources/creation-plane-dispatch.custom-impl.companion.service.js +8 -4
  105. package/dist/esm/core/introspection/resources/creation-plane-dispatch.custom-impl.companion.service.js.map +1 -1
  106. package/dist/esm/core/introspection/resources/creation-plane-projection.companion.service.d.ts.map +1 -1
  107. package/dist/esm/core/introspection/resources/creation-plane-projection.companion.service.js +8 -1
  108. package/dist/esm/core/introspection/resources/creation-plane-projection.companion.service.js.map +1 -1
  109. package/dist/esm/core/introspection/resources/introspection-resource-notifier.companion.service.d.ts.map +1 -1
  110. package/dist/esm/core/introspection/resources/introspection-resource-source.companion.service.d.ts.map +1 -1
  111. package/dist/esm/core/introspection/services/companion-introspection-behavior-registry.companion.service.d.ts.map +1 -1
  112. package/dist/esm/core/introspection/services/companion-introspection.companion.service.d.ts.map +1 -1
  113. package/dist/esm/core/introspection/services/companion-introspection.companion.service.js +42 -1
  114. package/dist/esm/core/introspection/services/companion-introspection.companion.service.js.map +1 -1
  115. package/dist/esm/core/introspection/services/introspection-derivation-state.companion.service.d.ts.map +1 -1
  116. package/dist/esm/core/introspection/services/introspection-source-state.companion.service.d.ts.map +1 -1
  117. package/dist/esm/core/introspection/services/introspection-source-watcher.companion.service.d.ts.map +1 -1
  118. package/dist/esm/core/introspection/services/translation-placement.companion.service.d.ts.map +1 -1
  119. package/dist/esm/core/introspection/subprocess/application-domain-model.behavior.d.ts +4 -9
  120. package/dist/esm/core/introspection/subprocess/application-domain-model.behavior.d.ts.map +1 -1
  121. package/dist/esm/core/introspection/subprocess/application-domain-model.behavior.js.map +1 -1
  122. package/dist/esm/core/introspection/subprocess/assertions.behavior.d.ts.map +1 -1
  123. package/dist/esm/core/introspection/subprocess/asset-noop-hooks.d.ts.map +1 -1
  124. package/dist/esm/core/introspection/subprocess/asset-noop-register.d.ts.map +1 -1
  125. package/dist/esm/core/introspection/subprocess/brand-prompt-renderer.d.ts.map +1 -1
  126. package/dist/esm/core/introspection/subprocess/chart-registration-refs.behavior.d.ts.map +1 -1
  127. package/dist/esm/core/introspection/subprocess/companion-introspection-behavior-handlers.d.ts.map +1 -1
  128. package/dist/esm/core/introspection/subprocess/companion-introspection-behavior-handlers.js +3 -2
  129. package/dist/esm/core/introspection/subprocess/companion-introspection-behavior-handlers.js.map +1 -1
  130. package/dist/esm/core/introspection/subprocess/companion-introspection-child.d.ts.map +1 -1
  131. package/dist/esm/core/introspection/subprocess/companion-introspection-module-exports.utils.d.ts.map +1 -1
  132. package/dist/esm/core/introspection/subprocess/compliance-primary-facts.behavior.d.ts +14 -5
  133. package/dist/esm/core/introspection/subprocess/compliance-primary-facts.behavior.d.ts.map +1 -1
  134. package/dist/esm/core/introspection/subprocess/compliance-primary-facts.behavior.js +14 -5
  135. package/dist/esm/core/introspection/subprocess/compliance-primary-facts.behavior.js.map +1 -1
  136. package/dist/esm/core/introspection/subprocess/definition-specifications.behavior.d.ts.map +1 -1
  137. package/dist/esm/core/introspection/subprocess/expert-persona-brief.renderer.d.ts.map +1 -1
  138. package/dist/esm/core/introspection/subprocess/family-aspects.behavior.d.ts +0 -21
  139. package/dist/esm/core/introspection/subprocess/family-aspects.behavior.d.ts.map +1 -1
  140. package/dist/esm/core/introspection/subprocess/family-aspects.behavior.js +39 -1
  141. package/dist/esm/core/introspection/subprocess/family-aspects.behavior.js.map +1 -1
  142. package/dist/esm/core/introspection/subprocess/frontend-labels-needed-info.behavior.d.ts.map +1 -1
  143. package/dist/esm/core/introspection/subprocess/market-context-block.builder.d.ts.map +1 -1
  144. package/dist/esm/core/introspection/subprocess/market-prompt-renderer.d.ts.map +1 -1
  145. package/dist/esm/core/introspection/subprocess/openapi-generation-input.behavior.d.ts +41 -2
  146. package/dist/esm/core/introspection/subprocess/openapi-generation-input.behavior.d.ts.map +1 -1
  147. package/dist/esm/core/introspection/subprocess/openapi-generation-input.behavior.js +178 -41
  148. package/dist/esm/core/introspection/subprocess/openapi-generation-input.behavior.js.map +1 -1
  149. package/dist/esm/core/introspection/subprocess/specification-artifacts.behavior.d.ts.map +1 -1
  150. package/dist/esm/core/lock/wildo-saas-lock.companion.service.d.ts +23 -0
  151. package/dist/esm/core/lock/wildo-saas-lock.companion.service.d.ts.map +1 -1
  152. package/dist/esm/core/lock/wildo-saas-lock.companion.service.js +23 -0
  153. package/dist/esm/core/lock/wildo-saas-lock.companion.service.js.map +1 -1
  154. package/dist/esm/core/lock/wildo-saas-lock.models.d.ts.map +1 -1
  155. package/dist/esm/core/lock/wildo-saas-lock.schemas.d.ts +4 -4
  156. package/dist/esm/core/lock/wildo-saas-lock.schemas.d.ts.map +1 -1
  157. package/dist/esm/core/runtime/companion-startup-assembly.d.ts.map +1 -1
  158. package/dist/esm/core/runtime/companion-startup-assembly.js +5 -0
  159. package/dist/esm/core/runtime/companion-startup-assembly.js.map +1 -1
  160. package/dist/esm/core/runtime/dev-compile-quiet.companion.d.ts.map +1 -1
  161. package/dist/esm/core/runtime/models/companion-runtime.models.d.ts.map +1 -1
  162. package/dist/esm/core/runtime/services/start-companion-application.service.d.ts +16 -13
  163. package/dist/esm/core/runtime/services/start-companion-application.service.d.ts.map +1 -1
  164. package/dist/esm/core/runtime/services/start-companion-application.service.js +70 -45
  165. package/dist/esm/core/runtime/services/start-companion-application.service.js.map +1 -1
  166. package/dist/esm/core/runtime/utils/companion-local-signing-key.companion.d.ts.map +1 -1
  167. package/dist/esm/core/runtime/utils/companion-platform-config.companion.d.ts.map +1 -1
  168. package/dist/esm/core/runtime/utils/companion-platform-config.companion.js +9 -2
  169. package/dist/esm/core/runtime/utils/companion-platform-config.companion.js.map +1 -1
  170. package/dist/esm/core/runtime/utils/companion-workbench-topology.d.ts.map +1 -1
  171. package/dist/esm/core/runtime/utils/platform-core-domain-modules.companion.d.ts.map +1 -1
  172. package/dist/esm/core/specifications/chart-view-specification-context.factory.d.ts.map +1 -1
  173. package/dist/esm/core/specifications/composite-view-specification-context.factory.d.ts.map +1 -1
  174. package/dist/esm/core/specifications/cross-registry-rendering.shared.d.ts.map +1 -1
  175. package/dist/esm/core/specifications/execution-view-specification-context.factory.d.ts.map +1 -1
  176. package/dist/esm/core/specifications/feature-specification-context.factory.d.ts.map +1 -1
  177. package/dist/esm/core/specifications/flows-actors-view-specification-context.factory.d.ts.map +1 -1
  178. package/dist/esm/core/specifications/frontend-component-specification-context.factory.d.ts.map +1 -1
  179. package/dist/esm/core/specifications/full-custom-view-specification-context.factory.d.ts.map +1 -1
  180. package/dist/esm/core/specifications/guidance-flow-specification-context.factory.d.ts.map +1 -1
  181. package/dist/esm/core/specifications/milestone-specification-context.factory.d.ts.map +1 -1
  182. package/dist/esm/core/specifications/non-composite-view-specification-context.shared.d.ts.map +1 -1
  183. package/dist/esm/core/specifications/onboarding-element-rendering.shared.d.ts.map +1 -1
  184. package/dist/esm/core/specifications/onboarding-view-specification-context.factory.d.ts.map +1 -1
  185. package/dist/esm/core/specifications/product-specification-context.factory.d.ts.map +1 -1
  186. package/dist/esm/core/specifications/resource-specification-context.factory.d.ts.map +1 -1
  187. package/dist/esm/core/specifications/role-specification-context.factory.d.ts.map +1 -1
  188. package/dist/esm/core/specifications/specification-context-factory.d.ts.map +1 -1
  189. package/dist/esm/core/specifications/specification-context-factory.models.d.ts.map +1 -1
  190. package/dist/esm/core/specifications/specification-context-factory.shared.d.ts.map +1 -1
  191. package/dist/esm/core/specifications/system-email-template-specification-context.factory.d.ts.map +1 -1
  192. package/dist/esm/core/specifications/templates/composite-view/composite-view-all-information.template.d.ts.map +1 -1
  193. package/dist/esm/core/specifications/templates/composite-view/composite-view-custom-implementation-context.template.d.ts.map +1 -1
  194. package/dist/esm/core/specifications/templates/composite-view/composite-view-development-usage-context.template.d.ts.map +1 -1
  195. package/dist/esm/core/specifications/templates/composite-view/composite-view-translation-context.template.d.ts.map +1 -1
  196. package/dist/esm/core/specifications/templates/feature/feature-all-information.template.d.ts.map +1 -1
  197. package/dist/esm/core/specifications/templates/feature/feature-custom-implementation-context.template.d.ts.map +1 -1
  198. package/dist/esm/core/specifications/templates/feature/feature-development-usage-context.template.d.ts.map +1 -1
  199. package/dist/esm/core/specifications/templates/feature/feature-translation-context.template.d.ts.map +1 -1
  200. package/dist/esm/core/specifications/templates/frontend-component/frontend-component-all-information.template.d.ts.map +1 -1
  201. package/dist/esm/core/specifications/templates/frontend-component/frontend-component-custom-implementation-context.template.d.ts.map +1 -1
  202. package/dist/esm/core/specifications/templates/frontend-component/frontend-component-development-usage-context.template.d.ts.map +1 -1
  203. package/dist/esm/core/specifications/templates/frontend-component/frontend-component-translation-context.template.d.ts.map +1 -1
  204. package/dist/esm/core/specifications/templates/guidance-flow-specification/guidance-flow-all-information.template.d.ts.map +1 -1
  205. package/dist/esm/core/specifications/templates/guidance-flow-specification/guidance-flow-custom-implementation-context.template.d.ts.map +1 -1
  206. package/dist/esm/core/specifications/templates/guidance-flow-specification/guidance-flow-development-usage-context.template.d.ts.map +1 -1
  207. package/dist/esm/core/specifications/templates/guidance-flow-specification/guidance-flow-translation-context.template.d.ts.map +1 -1
  208. package/dist/esm/core/specifications/templates/milestone/milestone-all-information.template.d.ts.map +1 -1
  209. package/dist/esm/core/specifications/templates/milestone/milestone-custom-implementation-context.template.d.ts.map +1 -1
  210. package/dist/esm/core/specifications/templates/milestone/milestone-development-usage-context.template.d.ts.map +1 -1
  211. package/dist/esm/core/specifications/templates/milestone/milestone-translation-context.template.d.ts.map +1 -1
  212. package/dist/esm/core/specifications/templates/non-composite-view/non-composite-view-all-information.template.d.ts.map +1 -1
  213. package/dist/esm/core/specifications/templates/non-composite-view/non-composite-view-custom-implementation-context.template.d.ts.map +1 -1
  214. package/dist/esm/core/specifications/templates/non-composite-view/non-composite-view-development-usage-context.template.d.ts.map +1 -1
  215. package/dist/esm/core/specifications/templates/non-composite-view/non-composite-view-translation-context.template.d.ts.map +1 -1
  216. package/dist/esm/core/specifications/templates/onboarding-view-specification/onboarding-view-all-information.template.d.ts.map +1 -1
  217. package/dist/esm/core/specifications/templates/onboarding-view-specification/onboarding-view-custom-implementation-context.template.d.ts.map +1 -1
  218. package/dist/esm/core/specifications/templates/onboarding-view-specification/onboarding-view-development-usage-context.template.d.ts.map +1 -1
  219. package/dist/esm/core/specifications/templates/onboarding-view-specification/onboarding-view-translation-context.template.d.ts.map +1 -1
  220. package/dist/esm/core/specifications/templates/product/product-all-information.template.d.ts.map +1 -1
  221. package/dist/esm/core/specifications/templates/product/product-custom-implementation-context.template.d.ts.map +1 -1
  222. package/dist/esm/core/specifications/templates/product/product-development-usage-context.template.d.ts.map +1 -1
  223. package/dist/esm/core/specifications/templates/product/product-translation-context.template.d.ts.map +1 -1
  224. package/dist/esm/core/specifications/templates/resource/resource-all-information.template.d.ts.map +1 -1
  225. package/dist/esm/core/specifications/templates/resource/resource-custom-implementation-context.template.d.ts.map +1 -1
  226. package/dist/esm/core/specifications/templates/resource/resource-development-usage-context.template.d.ts.map +1 -1
  227. package/dist/esm/core/specifications/templates/resource/resource-translation-context.template.d.ts.map +1 -1
  228. package/dist/esm/core/specifications/templates/role/role-all-information.template.d.ts.map +1 -1
  229. package/dist/esm/core/specifications/templates/role/role-custom-implementation-context.template.d.ts.map +1 -1
  230. package/dist/esm/core/specifications/templates/role/role-development-usage-context.template.d.ts.map +1 -1
  231. package/dist/esm/core/specifications/templates/role/role-translation-context.template.d.ts.map +1 -1
  232. package/dist/esm/core/specifications/templates/system-email-template/system-email-template-all-information.template.d.ts.map +1 -1
  233. package/dist/esm/core/specifications/templates/system-email-template/system-email-template-custom-implementation-context.template.d.ts.map +1 -1
  234. package/dist/esm/core/specifications/templates/system-email-template/system-email-template-development-usage-context.template.d.ts.map +1 -1
  235. package/dist/esm/core/specifications/templates/system-email-template/system-email-template-translation-context.template.d.ts.map +1 -1
  236. package/dist/esm/core/specifications/validate-resource-field-completeness.d.ts.map +1 -1
  237. package/dist/esm/core/traceability/companion-agent-call-trace-sink.companion.service.d.ts.map +1 -1
  238. package/dist/esm/core/traceability/companion-agent-call-trace-sink.companion.service.js +4 -4
  239. package/dist/esm/core/traceability/companion-agent-call-trace-sink.companion.service.js.map +1 -1
  240. package/dist/esm/core/traceability/companion-traceability.models.d.ts.map +1 -1
  241. package/dist/esm/core/traceability/companion-traceability.service.d.ts.map +1 -1
  242. package/dist/esm/core/utils/atomic-write.utils.d.ts.map +1 -1
  243. package/dist/esm/deliberations/models/deliberation-agents.actors-system.definitions.d.ts.map +1 -1
  244. package/dist/esm/deliberations/models/deliberation-agents.actors-system.definitions.js +13 -3
  245. package/dist/esm/deliberations/models/deliberation-agents.actors-system.definitions.js.map +1 -1
  246. package/dist/esm/deliberations/services/deliberation.companion.service.d.ts.map +1 -1
  247. package/dist/esm/deliberations/services/deliberation.companion.service.js +0 -5
  248. package/dist/esm/deliberations/services/deliberation.companion.service.js.map +1 -1
  249. package/dist/esm/deliberations/services/structured-deliberation.companion.service.d.ts.map +1 -1
  250. package/dist/esm/deliberations/services/structured-deliberation.companion.service.js +0 -2
  251. package/dist/esm/deliberations/services/structured-deliberation.companion.service.js.map +1 -1
  252. package/dist/esm/deliberations/utils/load-committed-expert-agents.d.ts.map +1 -1
  253. package/dist/esm/email/models/email-template.actors-system.definitions.d.ts.map +1 -1
  254. package/dist/esm/email/models/email-template.actors-system.definitions.js +4 -2
  255. package/dist/esm/email/models/email-template.actors-system.definitions.js.map +1 -1
  256. package/dist/esm/email/services/email-spec-context-loader.companion.service.d.ts +1 -1
  257. package/dist/esm/email/services/email-spec-context-loader.companion.service.d.ts.map +1 -1
  258. package/dist/esm/email/services/email-spec-context-loader.companion.service.js +1 -1
  259. package/dist/esm/email/services/email-spec-context-loader.companion.service.js.map +1 -1
  260. package/dist/esm/email/services/email-template.companion.service.d.ts.map +1 -1
  261. package/dist/esm/email/services/email-template.companion.service.js +23 -1
  262. package/dist/esm/email/services/email-template.companion.service.js.map +1 -1
  263. package/dist/esm/email/utils/email-labels-file-source.utils.d.ts.map +1 -1
  264. package/dist/esm/email/utils/email-template-fs-discovery.utils.d.ts.map +1 -1
  265. package/dist/esm/executions/services/companion-executions.companion.service.d.ts +82 -3
  266. package/dist/esm/executions/services/companion-executions.companion.service.d.ts.map +1 -1
  267. package/dist/esm/executions/services/companion-executions.companion.service.js +128 -6
  268. package/dist/esm/executions/services/companion-executions.companion.service.js.map +1 -1
  269. package/dist/esm/expert-personas/models/expert-persona-critique.actors-system.definitions.d.ts.map +1 -1
  270. package/dist/esm/expert-personas/models/expert-persona-critique.actors-system.definitions.js +7 -3
  271. package/dist/esm/expert-personas/models/expert-persona-critique.actors-system.definitions.js.map +1 -1
  272. package/dist/esm/expert-personas/models/expert-persona-derivation.actors-system.definitions.d.ts.map +1 -1
  273. package/dist/esm/expert-personas/models/expert-persona-derivation.actors-system.definitions.js +11 -5
  274. package/dist/esm/expert-personas/models/expert-persona-derivation.actors-system.definitions.js.map +1 -1
  275. package/dist/esm/expert-personas/models/expert-persona-derivation.schemas.d.ts.map +1 -1
  276. package/dist/esm/expert-personas/services/expert-persona.companion.service.d.ts +9 -24
  277. package/dist/esm/expert-personas/services/expert-persona.companion.service.d.ts.map +1 -1
  278. package/dist/esm/expert-personas/services/expert-persona.companion.service.js +11 -60
  279. package/dist/esm/expert-personas/services/expert-persona.companion.service.js.map +1 -1
  280. package/dist/esm/i18n/components/APPLICATION_LEVEL_ACTIVITY_BAR.en.d.ts.map +1 -1
  281. package/dist/esm/i18n/components/APPLICATION_LEVEL_COMMAND_MENU.en.d.ts.map +1 -1
  282. package/dist/esm/i18n/components/APPLICATION_LEVEL_CONTROL_PANEL.en.d.ts.map +1 -1
  283. package/dist/esm/i18n/components/APPLICATION_LEVEL_MENUBAR.en.d.ts.map +1 -1
  284. package/dist/esm/i18n/components/APPLICATION_LEVEL_NAVIGATION_BACK.en.d.ts.map +1 -1
  285. package/dist/esm/i18n/components/APPLICATION_LEVEL_NOTIFICATION_CENTER.en.d.ts.map +1 -1
  286. package/dist/esm/i18n/components/APPLICATION_LEVEL_QUICK_ACTION_BUTTON.en.d.ts.map +1 -1
  287. package/dist/esm/i18n/components/APPLICATION_LEVEL_QUICK_SWITCHER.en.d.ts.map +1 -1
  288. package/dist/esm/i18n/components/APPLICATION_LEVEL_SIDEBAR.en.d.ts.map +1 -1
  289. package/dist/esm/i18n/components/APPLICATION_LEVEL_STATUS_BAR.en.d.ts.map +1 -1
  290. package/dist/esm/i18n/components/APPLICATION_LEVEL_TOOLBAR.en.d.ts.map +1 -1
  291. package/dist/esm/i18n/components/APPLICATION_LEVEL_USER_DROPDOWN.en.d.ts.map +1 -1
  292. package/dist/esm/i18n/components/APPLICATION_LEVEL_UTILITY_PANEL.en.d.ts.map +1 -1
  293. package/dist/esm/i18n/components/APP_LAYOUTS_APPEARANCE_SETTINGS.en.d.ts.map +1 -1
  294. package/dist/esm/i18n/components/APP_LAYOUTS_BILLING_SETTINGS.en.d.ts.map +1 -1
  295. package/dist/esm/i18n/components/APP_LAYOUTS_ERROR_BOUNDARY.en.d.ts.map +1 -1
  296. package/dist/esm/i18n/components/APP_LAYOUTS_HOME.en.d.ts.map +1 -1
  297. package/dist/esm/i18n/components/APP_LAYOUTS_INVITATIONS_SETTINGS.en.d.ts.map +1 -1
  298. package/dist/esm/i18n/components/APP_LAYOUTS_MAIN_CONTAINER.en.d.ts.map +1 -1
  299. package/dist/esm/i18n/components/APP_LAYOUTS_ROUTER_ERROR_BOUNDARY.en.d.ts.map +1 -1
  300. package/dist/esm/i18n/components/APP_LAYOUTS_SECURITY_SETTINGS.en.d.ts.map +1 -1
  301. package/dist/esm/i18n/components/APP_LAYOUTS_SETTINGS_HUB.en.d.ts.map +1 -1
  302. package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_CHART.en.d.ts.map +1 -1
  303. package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_CHART_WIDGET.en.d.ts.map +1 -1
  304. package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_EXECUTION.en.d.ts.map +1 -1
  305. package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_FLOWS_ACTORS.en.d.ts.map +1 -1
  306. package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_NOT_FOUND.en.d.ts.map +1 -1
  307. package/dist/esm/i18n/components/LOW_LEVEL_ACTION_BAR.en.d.ts.map +1 -1
  308. package/dist/esm/i18n/components/LOW_LEVEL_AI_ACTOR.en.d.ts.map +1 -1
  309. package/dist/esm/i18n/components/LOW_LEVEL_AI_AGENT_CONFIG.en.d.ts.map +1 -1
  310. package/dist/esm/i18n/components/LOW_LEVEL_AI_APPROVAL.en.d.ts.map +1 -1
  311. package/dist/esm/i18n/components/LOW_LEVEL_AI_ARTIFACT.en.d.ts.map +1 -1
  312. package/dist/esm/i18n/components/LOW_LEVEL_AI_ARTIFACT_BROWSER.en.d.ts.map +1 -1
  313. package/dist/esm/i18n/components/LOW_LEVEL_AI_CHAIN_OF_THOUGHT.en.d.ts.map +1 -1
  314. package/dist/esm/i18n/components/LOW_LEVEL_AI_CODE_BLOCK.en.d.ts.map +1 -1
  315. package/dist/esm/i18n/components/LOW_LEVEL_AI_CONFIRMATION.en.d.ts.map +1 -1
  316. package/dist/esm/i18n/components/LOW_LEVEL_AI_CONTEXT.en.d.ts.map +1 -1
  317. package/dist/esm/i18n/components/LOW_LEVEL_AI_CONVERSATION.en.d.ts.map +1 -1
  318. package/dist/esm/i18n/components/LOW_LEVEL_AI_DECISION.en.d.ts.map +1 -1
  319. package/dist/esm/i18n/components/LOW_LEVEL_AI_EXECUTION_PLAN.en.d.ts.map +1 -1
  320. package/dist/esm/i18n/components/LOW_LEVEL_AI_EXECUTION_STREAM.en.d.ts.map +1 -1
  321. package/dist/esm/i18n/components/LOW_LEVEL_AI_FLOW_EXECUTION.en.d.ts.map +1 -1
  322. package/dist/esm/i18n/components/LOW_LEVEL_AI_FLOW_NODE.en.d.ts.map +1 -1
  323. package/dist/esm/i18n/components/LOW_LEVEL_AI_INLINE_CITATION.en.d.ts.map +1 -1
  324. package/dist/esm/i18n/components/LOW_LEVEL_AI_MESSAGE.en.d.ts.map +1 -1
  325. package/dist/esm/i18n/components/LOW_LEVEL_AI_MODEL_SELECTOR.en.d.ts.map +1 -1
  326. package/dist/esm/i18n/components/LOW_LEVEL_AI_OPEN_IN_CHAT.en.d.ts.map +1 -1
  327. package/dist/esm/i18n/components/LOW_LEVEL_AI_PLAN.en.d.ts.map +1 -1
  328. package/dist/esm/i18n/components/LOW_LEVEL_AI_PROMPT_INPUT.en.d.ts.map +1 -1
  329. package/dist/esm/i18n/components/LOW_LEVEL_AI_SYSTEM_CATALOG.en.d.ts.map +1 -1
  330. package/dist/esm/i18n/components/LOW_LEVEL_AI_TASK_DETAIL.en.d.ts.map +1 -1
  331. package/dist/esm/i18n/components/LOW_LEVEL_AI_TASK_MEMORY.en.d.ts.map +1 -1
  332. package/dist/esm/i18n/components/LOW_LEVEL_AI_WEB_PREVIEW.en.d.ts.map +1 -1
  333. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_INVOICE_HISTORY.en.d.ts.map +1 -1
  334. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_PORTAL_LINK.en.d.ts.map +1 -1
  335. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_PRICING_TABLE.en.d.ts.map +1 -1
  336. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_SUBSCRIPTION_STATUS.en.d.ts.map +1 -1
  337. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_USAGE_DASHBOARD.en.d.ts.map +1 -1
  338. package/dist/esm/i18n/components/LOW_LEVEL_BREADCRUMB.en.d.ts.map +1 -1
  339. package/dist/esm/i18n/components/LOW_LEVEL_BUTTON.en.d.ts.map +1 -1
  340. package/dist/esm/i18n/components/LOW_LEVEL_CAROUSEL.en.d.ts.map +1 -1
  341. package/dist/esm/i18n/components/LOW_LEVEL_CELEBRATION_OVERLAY.en.d.ts.map +1 -1
  342. package/dist/esm/i18n/components/LOW_LEVEL_COLOR_INPUT.en.d.ts.map +1 -1
  343. package/dist/esm/i18n/components/LOW_LEVEL_COMMAND.en.d.ts.map +1 -1
  344. package/dist/esm/i18n/components/LOW_LEVEL_CONTENT_SECTION_CONTAINER.en.d.ts.map +1 -1
  345. package/dist/esm/i18n/components/LOW_LEVEL_DIALOG.en.d.ts.map +1 -1
  346. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_BIGDECIMAL.en.d.ts.map +1 -1
  347. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_BOOLEAN.en.d.ts.map +1 -1
  348. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_CODE.en.d.ts.map +1 -1
  349. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_DURATION.en.d.ts.map +1 -1
  350. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE.en.d.ts.map +1 -1
  351. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE_AUDIO.en.d.ts.map +1 -1
  352. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE_DOCUMENT.en.d.ts.map +1 -1
  353. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE_GALLERY.en.d.ts.map +1 -1
  354. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE_IMAGE.en.d.ts.map +1 -1
  355. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE_VIDEO.en.d.ts.map +1 -1
  356. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_MONEY.en.d.ts.map +1 -1
  357. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_PHONE.en.d.ts.map +1 -1
  358. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_RANGE_BIGDECIMAL.en.d.ts.map +1 -1
  359. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_RANGE_MONEY.en.d.ts.map +1 -1
  360. package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_RANGE_NUMBER.en.d.ts.map +1 -1
  361. package/dist/esm/i18n/components/LOW_LEVEL_DRAWER.en.d.ts.map +1 -1
  362. package/dist/esm/i18n/components/LOW_LEVEL_ERROR_DISPLAY.en.d.ts.map +1 -1
  363. package/dist/esm/i18n/components/LOW_LEVEL_FEATURE_LOCK_BADGE.en.d.ts.map +1 -1
  364. package/dist/esm/i18n/components/LOW_LEVEL_FEATURE_UNAVAILABLE_PROMPT.en.d.ts.map +1 -1
  365. package/dist/esm/i18n/components/LOW_LEVEL_FILE_UPLOAD.en.d.ts.map +1 -1
  366. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD.en.d.ts.map +1 -1
  367. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_BOOLEAN.en.d.ts.map +1 -1
  368. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_CODE.en.d.ts.map +1 -1
  369. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_FILE.en.d.ts.map +1 -1
  370. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_PHONE.en.d.ts.map +1 -1
  371. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_STRING.en.d.ts.map +1 -1
  372. package/dist/esm/i18n/components/LOW_LEVEL_FORM_MESSAGE.en.d.ts.map +1 -1
  373. package/dist/esm/i18n/components/LOW_LEVEL_IMAGE_CROP.en.d.ts.map +1 -1
  374. package/dist/esm/i18n/components/LOW_LEVEL_LOADING_OVERLAY.en.d.ts.map +1 -1
  375. package/dist/esm/i18n/components/LOW_LEVEL_LOADING_SPINNER.en.d.ts.map +1 -1
  376. package/dist/esm/i18n/components/LOW_LEVEL_OPERATIONS_CONFIRM_CRITICAL.en.d.ts.map +1 -1
  377. package/dist/esm/i18n/components/LOW_LEVEL_OVERLAY_CONTAINER.en.d.ts.map +1 -1
  378. package/dist/esm/i18n/components/LOW_LEVEL_PAGINATION.en.d.ts.map +1 -1
  379. package/dist/esm/i18n/components/LOW_LEVEL_SELECT_MULTIPLE.en.d.ts.map +1 -1
  380. package/dist/esm/i18n/components/LOW_LEVEL_SHEET.en.d.ts.map +1 -1
  381. package/dist/esm/i18n/components/LOW_LEVEL_SIDEBAR.en.d.ts.map +1 -1
  382. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_AUTH_CALLBACK.en.d.ts.map +1 -1
  383. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_ENROLLMENT_REQUIRED.en.d.ts.map +1 -1
  384. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_FILE_UPLOAD_GRANT.en.d.ts +39 -0
  385. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_FILE_UPLOAD_GRANT.en.d.ts.map +1 -0
  386. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_FILE_UPLOAD_GRANT.en.js +39 -0
  387. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_FILE_UPLOAD_GRANT.en.js.map +1 -0
  388. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_MAGIC_LINK_VERIFY.en.d.ts.map +1 -1
  389. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_MFA_CHALLENGE.en.d.ts.map +1 -1
  390. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_OAUTH_CONSENT.en.d.ts.map +1 -1
  391. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_OAUTH_LOGGED_OUT.en.d.ts.map +1 -1
  392. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_OAUTH_LOGOUT_CONFIRM.en.d.ts.map +1 -1
  393. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_ONE_OFF_SESSION.en.d.ts.map +1 -1
  394. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_TERMS.en.d.ts.map +1 -1
  395. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_AUTH.en.d.ts.map +1 -1
  396. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_CONFIRM_EMAIL.en.d.ts.map +1 -1
  397. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_INVITATION.en.d.ts.map +1 -1
  398. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_PASSWORD_LOST.en.d.ts.map +1 -1
  399. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_REGISTER.en.d.ts.map +1 -1
  400. package/dist/esm/i18n/components/RESOURCES_FIELDS_RESOURCE_REFERENCE.en.d.ts.map +1 -1
  401. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_ACTION.en.d.ts.map +1 -1
  402. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_CONTAINER_NESTED.en.d.ts.map +1 -1
  403. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_CREATE.en.d.ts.map +1 -1
  404. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_DANGER_ZONE.en.d.ts.map +1 -1
  405. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_FILTERS.en.d.ts.map +1 -1
  406. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_HEADER.en.d.ts.map +1 -1
  407. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_LIST.en.d.ts.map +1 -1
  408. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_OPERATIONS_BULK.en.d.ts.map +1 -1
  409. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_OPERATIONS_ITEMS.en.d.ts.map +1 -1
  410. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_PAGINATION.en.d.ts.map +1 -1
  411. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_READ.en.d.ts.map +1 -1
  412. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_SEARCH.en.d.ts.map +1 -1
  413. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_UPDATE.en.d.ts.map +1 -1
  414. package/dist/esm/i18n/components/guidance_announcement.en.d.ts.map +1 -1
  415. package/dist/esm/i18n/components/guidance_banner.en.d.ts.map +1 -1
  416. package/dist/esm/i18n/components/guidance_card.en.d.ts.map +1 -1
  417. package/dist/esm/i18n/components/guidance_checklist.en.d.ts.map +1 -1
  418. package/dist/esm/i18n/components/guidance_checklist_item.en.d.ts.map +1 -1
  419. package/dist/esm/i18n/components/guidance_modal.en.d.ts.map +1 -1
  420. package/dist/esm/i18n/components/guidance_onboarding_view.en.d.ts.map +1 -1
  421. package/dist/esm/i18n/components/guidance_survey.en.d.ts.map +1 -1
  422. package/dist/esm/i18n/components/guidance_tooltip.en.d.ts.map +1 -1
  423. package/dist/esm/i18n/components/guidance_tour.en.d.ts.map +1 -1
  424. package/dist/esm/i18n/components/progression_achievement_badge.en.d.ts.map +1 -1
  425. package/dist/esm/i18n/components/progression_milestone_tracker.en.d.ts.map +1 -1
  426. package/dist/esm/i18n/composite_views/app.creation-board.en.d.ts.map +1 -1
  427. package/dist/esm/i18n/composite_views/app.domain-model.en.d.ts.map +1 -1
  428. package/dist/esm/i18n/index.d.ts.map +1 -1
  429. package/dist/esm/i18n/resources/wildoApplicationActorSystemExecutions.en.d.ts.map +1 -1
  430. package/dist/esm/i18n/resources/wildoApplicationActorTasks.en.d.ts.map +1 -1
  431. package/dist/esm/i18n/resources/wildoApplicationFlowSystemExecutions.en.d.ts.map +1 -1
  432. package/dist/esm/i18n/resources/workbenchBuildPlanTasks.en.d.ts.map +1 -1
  433. package/dist/esm/i18n/resources/workbenchDomainResources.en.d.ts.map +1 -1
  434. package/dist/esm/i18n/resources/workbenchPlaybooks.en.d.ts.map +1 -1
  435. package/dist/esm/i18n/resources/workbenchRunWriteRecords.en.d.ts.map +1 -1
  436. package/dist/esm/i18n/resources/workbenchSpecificationArtifacts.en.d.ts.map +1 -1
  437. package/dist/esm/i18n/resources/workbenchTraceSessions.en.d.ts.map +1 -1
  438. package/dist/esm/i18n/system_enums/market.en.d.ts.map +1 -1
  439. package/dist/esm/i18n-labelling/models/labelling-unit.models.d.ts +58 -0
  440. package/dist/esm/i18n-labelling/models/labelling-unit.models.d.ts.map +1 -1
  441. package/dist/esm/i18n-labelling/models/labelling-unit.models.js +35 -0
  442. package/dist/esm/i18n-labelling/models/labelling-unit.models.js.map +1 -1
  443. package/dist/esm/i18n-labelling/models/labelling.actors-system.definitions.d.ts.map +1 -1
  444. package/dist/esm/i18n-labelling/models/labelling.actors-system.definitions.js +8 -3
  445. package/dist/esm/i18n-labelling/models/labelling.actors-system.definitions.js.map +1 -1
  446. package/dist/esm/i18n-labelling/services/component-labels-bootstrap.companion.service.d.ts.map +1 -1
  447. package/dist/esm/i18n-labelling/services/labelling-planner.companion.service.d.ts +55 -1
  448. package/dist/esm/i18n-labelling/services/labelling-planner.companion.service.d.ts.map +1 -1
  449. package/dist/esm/i18n-labelling/services/labelling-planner.companion.service.js +178 -73
  450. package/dist/esm/i18n-labelling/services/labelling-planner.companion.service.js.map +1 -1
  451. package/dist/esm/i18n-labelling/services/labelling-spec-context-loader.companion.service.d.ts +3 -3
  452. package/dist/esm/i18n-labelling/services/labelling-spec-context-loader.companion.service.d.ts.map +1 -1
  453. package/dist/esm/i18n-labelling/services/labelling-spec-context-loader.companion.service.js +16 -5
  454. package/dist/esm/i18n-labelling/services/labelling-spec-context-loader.companion.service.js.map +1 -1
  455. package/dist/esm/i18n-labelling/services/labellize-orchestrator.companion.service.d.ts +35 -2
  456. package/dist/esm/i18n-labelling/services/labellize-orchestrator.companion.service.d.ts.map +1 -1
  457. package/dist/esm/i18n-labelling/services/labellize-orchestrator.companion.service.js +68 -29
  458. package/dist/esm/i18n-labelling/services/labellize-orchestrator.companion.service.js.map +1 -1
  459. package/dist/esm/i18n-labelling/services/translate-orchestrator.companion.service.d.ts.map +1 -1
  460. package/dist/esm/i18n-labelling/services/translate-orchestrator.companion.service.js +126 -35
  461. package/dist/esm/i18n-labelling/services/translate-orchestrator.companion.service.js.map +1 -1
  462. package/dist/esm/i18n-labelling/utils/frontend-derived-label-keys.utils.d.ts.map +1 -1
  463. package/dist/esm/i18n-labelling/utils/guidance-keys.utils.d.ts.map +1 -1
  464. package/dist/esm/i18n-labelling/utils/label-file-source.utils.d.ts.map +1 -1
  465. package/dist/esm/i18n-labelling/utils/label-placeholder-drift.utils.d.ts +143 -0
  466. package/dist/esm/i18n-labelling/utils/label-placeholder-drift.utils.d.ts.map +1 -0
  467. package/dist/esm/i18n-labelling/utils/label-placeholder-drift.utils.js +179 -0
  468. package/dist/esm/i18n-labelling/utils/label-placeholder-drift.utils.js.map +1 -0
  469. package/dist/esm/i18n-labelling/utils/orphan-label-artifacts.utils.d.ts +154 -0
  470. package/dist/esm/i18n-labelling/utils/orphan-label-artifacts.utils.d.ts.map +1 -0
  471. package/dist/esm/i18n-labelling/utils/orphan-label-artifacts.utils.js +174 -0
  472. package/dist/esm/i18n-labelling/utils/orphan-label-artifacts.utils.js.map +1 -0
  473. package/dist/esm/i18n-labelling/utils/per-unit-file.utils.d.ts.map +1 -1
  474. package/dist/esm/i18n-labelling/utils/role-lifecycle-keys.utils.d.ts.map +1 -1
  475. package/dist/esm/i18n-labelling/utils/schema-fields-extractor.utils.d.ts +104 -0
  476. package/dist/esm/i18n-labelling/utils/schema-fields-extractor.utils.d.ts.map +1 -1
  477. package/dist/esm/i18n-labelling/utils/schema-fields-extractor.utils.js +163 -18
  478. package/dist/esm/i18n-labelling/utils/schema-fields-extractor.utils.js.map +1 -1
  479. package/dist/esm/i18n-labelling/utils/structured-chunk-completion.utils.d.ts.map +1 -1
  480. package/dist/esm/i18n-labelling/utils/translate-locale-contract.utils.d.ts.map +1 -1
  481. package/dist/esm/index.d.ts.map +1 -1
  482. package/dist/esm/market/services/market-generation.companion.service.d.ts.map +1 -1
  483. package/dist/esm/meta-workflows/models/application-coding-agent.actors-system.definitions.d.ts +82 -3
  484. package/dist/esm/meta-workflows/models/application-coding-agent.actors-system.definitions.d.ts.map +1 -1
  485. package/dist/esm/meta-workflows/models/application-coding-agent.actors-system.definitions.js +210 -54
  486. package/dist/esm/meta-workflows/models/application-coding-agent.actors-system.definitions.js.map +1 -1
  487. package/dist/esm/meta-workflows/models/application-research-agent.actors-system.definitions.d.ts +27 -1
  488. package/dist/esm/meta-workflows/models/application-research-agent.actors-system.definitions.d.ts.map +1 -1
  489. package/dist/esm/meta-workflows/models/application-research-agent.actors-system.definitions.js +38 -5
  490. package/dist/esm/meta-workflows/models/application-research-agent.actors-system.definitions.js.map +1 -1
  491. package/dist/esm/meta-workflows/models/brief-adequacy.actors-system.definitions.d.ts +49 -0
  492. package/dist/esm/meta-workflows/models/brief-adequacy.actors-system.definitions.d.ts.map +1 -0
  493. package/dist/esm/meta-workflows/models/brief-adequacy.actors-system.definitions.js +95 -0
  494. package/dist/esm/meta-workflows/models/brief-adequacy.actors-system.definitions.js.map +1 -0
  495. package/dist/esm/meta-workflows/models/meta-workflows-lane.models.d.ts.map +1 -1
  496. package/dist/esm/meta-workflows/models/meta-workflows.actors-system.definitions.d.ts.map +1 -1
  497. package/dist/esm/meta-workflows/models/meta-workflows.actors-system.definitions.js +9 -4
  498. package/dist/esm/meta-workflows/models/meta-workflows.actors-system.definitions.js.map +1 -1
  499. package/dist/esm/meta-workflows/services/__tests__/application-build-task-coding.companion.test-fixtures.d.ts.map +1 -1
  500. package/dist/esm/meta-workflows/services/application-build-dispatch.companion.service.d.ts +25 -6
  501. package/dist/esm/meta-workflows/services/application-build-dispatch.companion.service.d.ts.map +1 -1
  502. package/dist/esm/meta-workflows/services/application-build-dispatch.companion.service.js +82 -25
  503. package/dist/esm/meta-workflows/services/application-build-dispatch.companion.service.js.map +1 -1
  504. package/dist/esm/meta-workflows/services/application-build-generation-step.companion.service.d.ts +83 -2
  505. package/dist/esm/meta-workflows/services/application-build-generation-step.companion.service.d.ts.map +1 -1
  506. package/dist/esm/meta-workflows/services/application-build-generation-step.companion.service.js +197 -4
  507. package/dist/esm/meta-workflows/services/application-build-generation-step.companion.service.js.map +1 -1
  508. package/dist/esm/meta-workflows/services/application-build-task-coding-policy.companion.service.d.ts.map +1 -1
  509. package/dist/esm/meta-workflows/services/execution-trace-read.companion.service.d.ts.map +1 -1
  510. package/dist/esm/meta-workflows/services/foundation-executor.companion.service.d.ts.map +1 -1
  511. package/dist/esm/meta-workflows/services/playbook-choreography-checkpoint.companion.service.d.ts.map +1 -1
  512. package/dist/esm/meta-workflows/services/playbook-execution-trace.companion.service.d.ts.map +1 -1
  513. package/dist/esm/meta-workflows/services/playbook-run-write-register.companion.service.d.ts.map +1 -1
  514. package/dist/esm/meta-workflows/services/playbook-run.companion.service.d.ts +44 -3
  515. package/dist/esm/meta-workflows/services/playbook-run.companion.service.d.ts.map +1 -1
  516. package/dist/esm/meta-workflows/services/playbook-run.companion.service.js +346 -42
  517. package/dist/esm/meta-workflows/services/playbook-run.companion.service.js.map +1 -1
  518. package/dist/esm/meta-workflows/services/playbook-suspended-run.companion.service.d.ts.map +1 -1
  519. package/dist/esm/technical-doc/services/technical-doc.companion.service.d.ts +117 -2
  520. package/dist/esm/technical-doc/services/technical-doc.companion.service.d.ts.map +1 -1
  521. package/dist/esm/technical-doc/services/technical-doc.companion.service.js +260 -69
  522. package/dist/esm/technical-doc/services/technical-doc.companion.service.js.map +1 -1
  523. package/dist/esm/technical-doc/services/technical-documentation-application-derivation.companion.service.d.ts +7 -1
  524. package/dist/esm/technical-doc/services/technical-documentation-application-derivation.companion.service.d.ts.map +1 -1
  525. package/dist/esm/technical-doc/services/technical-documentation-application-derivation.companion.service.js +179 -10
  526. package/dist/esm/technical-doc/services/technical-documentation-application-derivation.companion.service.js.map +1 -1
  527. package/dist/esm/technical-doc/services/technical-documentation-environment-identity.companion.service.d.ts.map +1 -1
  528. package/dist/esm/technical-doc/services/technical-documentation-pilot-assets.companion.service.d.ts.map +1 -1
  529. package/dist/esm/technical-doc/services/technical-documentation-pilot.companion.service.d.ts +2 -1
  530. package/dist/esm/technical-doc/services/technical-documentation-pilot.companion.service.d.ts.map +1 -1
  531. package/dist/esm/technical-doc/services/technical-documentation-pilot.companion.service.js +10 -2
  532. package/dist/esm/technical-doc/services/technical-documentation-pilot.companion.service.js.map +1 -1
  533. package/package.json +17 -17
  534. package/dist/esm/core/runtime/companion-startup-composition-fence.d.ts +0 -44
  535. package/dist/esm/core/runtime/companion-startup-composition-fence.d.ts.map +0 -1
  536. package/dist/esm/core/runtime/companion-startup-composition-fence.js +0 -85
  537. package/dist/esm/core/runtime/companion-startup-composition-fence.js.map +0 -1
  538. package/dist/esm/expert-personas/utils/canonical-json.d.ts +0 -25
  539. package/dist/esm/expert-personas/utils/canonical-json.d.ts.map +0 -1
  540. package/dist/esm/expert-personas/utils/canonical-json.js +0 -45
  541. package/dist/esm/expert-personas/utils/canonical-json.js.map +0 -1
  542. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_PLAN_CHANGE_PREVIEW.en.d.ts +0 -19
  543. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_PLAN_CHANGE_PREVIEW.en.d.ts.map +0 -1
  544. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_PLAN_CHANGE_PREVIEW.en.js +0 -19
  545. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_PLAN_CHANGE_PREVIEW.en.js.map +0 -1
  546. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_PROMOTION_CODE_INPUT.en.d.ts +0 -17
  547. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_PROMOTION_CODE_INPUT.en.d.ts.map +0 -1
  548. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_PROMOTION_CODE_INPUT.en.js +0 -17
  549. package/dist/esm/i18n/components/LOW_LEVEL_BILLING_PROMOTION_CODE_INPUT.en.js.map +0 -1
@@ -13,11 +13,15 @@
13
13
  *
14
14
  * ## The confinement, and it is TWO independent things
15
15
  *
16
- * 1. The `claude-code-acp-research` profile's `AUTO_ACCEPT_EDITS` ceiling admits the protocol's
17
- * non-mutating tool kinds (`read`, `search`, `fetch`, `think`) plus `edit` — never `execute`,
18
- * never the unclassified `other`. (It was `AUTO_ACCEPT_READS` until 2026-09-04, when three lost
16
+ * 1. The `claude-code-acp-research` profile's `AUTO_ACCEPT_READS_AND_EDITS` ceiling admits the
17
+ * protocol's non-mutating tool kinds (`read`, `search`, `fetch`, `think`) plus `edit`, and
18
+ * nothing else: never `execute`, never the unclassified `other`. The ceilings are kind-SETS,
19
+ * not nested ranks, so read the name carefully: `AUTO_ACCEPT_EDITS` admits ONLY the mutating
20
+ * kinds and is precisely the inverse of what research needs. (The profile was `AUTO_ACCEPT_READS` until three lost
19
21
  * compliance runs showed evidence living only in run memory cannot be leveraged or recovered;
20
- * the edit admission exists solely so findings persist as they are gathered.)
22
+ * the edit admission exists solely so findings persist as they are gathered, and the first
23
+ * attempt at it named `AUTO_ACCEPT_EDITS` and cost two rounds of a live run with every web
24
+ * fetch refused.)
21
25
  * 2. This dispatch supplies a location predicate that admits ONLY the evidence store
22
26
  * (`specifications/research-evidence/`) and refuses every other path — built by the same
23
27
  * `buildApplicationCodingTaskLocationPredicate` the coding lane trusts. The runner applies it to
@@ -95,6 +99,28 @@ export declare class ResearchAgentDispatchCompanionService {
95
99
  * No lock, no change set, no reconciliation — a run that cannot mutate has nothing to attribute and
96
100
  * nothing to recover. Several research lanes may therefore run concurrently, which is what makes a
97
101
  * breadth-first fan-out possible at all.
102
+ *
103
+ * ## "Cannot mutate" is one island short, and the coding lane is where that was paid for
104
+ *
105
+ * This run CAN write, to exactly one place: its evidence store
106
+ * (`specifications/research-evidence/`, admitted by the location predicate below). That store is
107
+ * inside the application repository and is COMMITTABLE, so it is fully visible to the coding lane's
108
+ * whole-worktree change-set capture — and a research turn overlapping a coding run therefore
109
+ * appeared in that run's change set, at a path no coding task declares, i.e. as a false
110
+ * `MUTATION_SCOPE_VIOLATION` that failed the coding run closed. Two live paths reach that overlap:
111
+ * an operator's `POST /api/companion/research`, and a composite's `RESEARCH_AGENT` children, which
112
+ * the choreography dispatches concurrently.
113
+ *
114
+ * The fix is on the coding side, where the misattribution happens —
115
+ * `CONCURRENT_HOST_LANE_ROOTS` in `git-change-set.companion.service.ts` names this store as
116
+ * lane-owned, so its writes are RECORDED in the change set and excluded from the scope decision.
117
+ * Taking the workspace-mutation lock here was rejected and measured: that lock is acquired with
118
+ * `retries: { retries: 0 }`, so it refuses rather than queues, and it would refuse two of every
119
+ * three lanes of the fan-out this JSDoc exists to protect.
120
+ *
121
+ * So if this lane ever grows a SECOND writable island, the coding lane's list has to grow with it
122
+ * in the same change. Nothing mechanical joins them — the predicate is one exported function
123
+ * precisely so the join is a single named place rather than a convention.
98
124
  */
99
125
  runResearchTask(request: ResearchTaskRequest): Promise<ResearchTaskResult>;
100
126
  }
@@ -1 +1 @@
1
- {"version":3,"file":"research-agent-dispatch.companion.service.d.ts","sourceRoot":"","sources":["../../../../../src/claude-cli/services/research-agent-dispatch.companion.service.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmCG;AAGH,OAAO,EACL,0BAA0B,EAC1B,aAAa,EAEb,KAAK,oBAAoB,EAC1B,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAIL,sBAAsB,EACtB,KAAK,yBAAyB,EAC9B,KAAK,iBAAiB,EACvB,MAAM,sCAAsC,CAAC;AAI9C,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,sCAAsC,CAAC;AAU7E,wGAAwG;AACxG,MAAM,WAAW,mBAAmB;IAClC;;;;;;OAMG;IACH,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B;;;;OAIG;IACH,QAAQ,CAAC,aAAa,CAAC,EAAE,MAAM,CAAC;IAChC,+EAA+E;IAC/E,QAAQ,CAAC,WAAW,CAAC,EAAE,MAAM,CAAC;CAC/B;AAED,MAAM,WAAW,kBAAkB;IACjC,4FAA4F;IAC5F,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,UAAU,EAAE,sBAAsB,CAAC;IAC5C,QAAQ,CAAC,KAAK,CAAC,EAAE,iBAAiB,CAAC;IACnC;;;;;;OAMG;IACH,QAAQ,CAAC,qBAAqB,CAAC,EAAE,MAAM,CAAC;IACxC,QAAQ,CAAC,mBAAmB,CAAC,EAAE,yBAAyB,CAAC,qBAAqB,CAAC,CAAC;IAChF;;;OAGG;IACH,QAAQ,CAAC,qBAAqB,EAAE,SAAS,MAAM,EAAE,CAAC;IAClD,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,+FAA+F;IAC/F,QAAQ,CAAC,qBAAqB,EAAE,MAAM,CAAC;CACxC;AAED,iIAAiI;AACjI,qBAAa,6BAA8B,SAAQ,KAAK;CAAG;AAE3D,qBACa,qCAAqC;IAIX,OAAO,CAAC,QAAQ,CAAC,MAAM;IACV,OAAO,CAAC,QAAQ,CAAC,YAAY;IAC5B,OAAO,CAAC,QAAQ,CAAC,aAAa;IAC7B,OAAO,CAAC,QAAQ,CAAC,gBAAgB;IANrF,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAA+D;gBAGlC,MAAM,EAAE,aAAa,EACR,YAAY,EAAE,0BAA0B,EACvC,aAAa,EAAE,oBAAoB,EAClC,gBAAgB,EAAE,gBAAgB;IAMvG;;;;;;OAMG;IACU,eAAe,CAAC,OAAO,EAAE,mBAAmB,GAAG,OAAO,CAAC,kBAAkB,CAAC;CAiHxF"}
1
+ {"version":3,"file":"research-agent-dispatch.companion.service.d.ts","sourceRoot":"","sources":["../../../../src/claude-cli/services/research-agent-dispatch.companion.service.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuCG;AAGH,OAAO,EACL,0BAA0B,EAC1B,aAAa,EAEb,KAAK,oBAAoB,EAC1B,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAIL,sBAAsB,EACtB,KAAK,yBAAyB,EAC9B,KAAK,iBAAiB,EACvB,MAAM,sCAAsC,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;;;;;OA4BG;IACU,eAAe,CAAC,OAAO,EAAE,mBAAmB,GAAG,OAAO,CAAC,kBAAkB,CAAC;CAiHxF"}
@@ -13,11 +13,15 @@
13
13
  *
14
14
  * ## The confinement, and it is TWO independent things
15
15
  *
16
- * 1. The `claude-code-acp-research` profile's `AUTO_ACCEPT_EDITS` ceiling admits the protocol's
17
- * non-mutating tool kinds (`read`, `search`, `fetch`, `think`) plus `edit` — never `execute`,
18
- * never the unclassified `other`. (It was `AUTO_ACCEPT_READS` until 2026-09-04, when three lost
16
+ * 1. The `claude-code-acp-research` profile's `AUTO_ACCEPT_READS_AND_EDITS` ceiling admits the
17
+ * protocol's non-mutating tool kinds (`read`, `search`, `fetch`, `think`) plus `edit`, and
18
+ * nothing else: never `execute`, never the unclassified `other`. The ceilings are kind-SETS,
19
+ * not nested ranks, so read the name carefully: `AUTO_ACCEPT_EDITS` admits ONLY the mutating
20
+ * kinds and is precisely the inverse of what research needs. (The profile was `AUTO_ACCEPT_READS` until three lost
19
21
  * compliance runs showed evidence living only in run memory cannot be leveraged or recovered;
20
- * the edit admission exists solely so findings persist as they are gathered.)
22
+ * the edit admission exists solely so findings persist as they are gathered, and the first
23
+ * attempt at it named `AUTO_ACCEPT_EDITS` and cost two rounds of a live run with every web
24
+ * fetch refused.)
21
25
  * 2. This dispatch supplies a location predicate that admits ONLY the evidence store
22
26
  * (`specifications/research-evidence/`) and refuses every other path — built by the same
23
27
  * `buildApplicationCodingTaskLocationPredicate` the coding lane trusts. The runner applies it to
@@ -77,6 +81,28 @@ let ResearchAgentDispatchCompanionService = class ResearchAgentDispatchCompanion
77
81
  * No lock, no change set, no reconciliation — a run that cannot mutate has nothing to attribute and
78
82
  * nothing to recover. Several research lanes may therefore run concurrently, which is what makes a
79
83
  * breadth-first fan-out possible at all.
84
+ *
85
+ * ## "Cannot mutate" is one island short, and the coding lane is where that was paid for
86
+ *
87
+ * This run CAN write, to exactly one place: its evidence store
88
+ * (`specifications/research-evidence/`, admitted by the location predicate below). That store is
89
+ * inside the application repository and is COMMITTABLE, so it is fully visible to the coding lane's
90
+ * whole-worktree change-set capture — and a research turn overlapping a coding run therefore
91
+ * appeared in that run's change set, at a path no coding task declares, i.e. as a false
92
+ * `MUTATION_SCOPE_VIOLATION` that failed the coding run closed. Two live paths reach that overlap:
93
+ * an operator's `POST /api/companion/research`, and a composite's `RESEARCH_AGENT` children, which
94
+ * the choreography dispatches concurrently.
95
+ *
96
+ * The fix is on the coding side, where the misattribution happens —
97
+ * `CONCURRENT_HOST_LANE_ROOTS` in `git-change-set.companion.service.ts` names this store as
98
+ * lane-owned, so its writes are RECORDED in the change set and excluded from the scope decision.
99
+ * Taking the workspace-mutation lock here was rejected and measured: that lock is acquired with
100
+ * `retries: { retries: 0 }`, so it refuses rather than queues, and it would refuse two of every
101
+ * three lanes of the fan-out this JSDoc exists to protect.
102
+ *
103
+ * So if this lane ever grows a SECOND writable island, the coding lane's list has to grow with it
104
+ * in the same change. Nothing mechanical joins them — the predicate is one exported function
105
+ * precisely so the join is a single named place rather than a convention.
80
106
  */
81
107
  async runResearchTask(request) {
82
108
  const objective = request.objective.trim();
@@ -1 +1 @@
1
- {"version":3,"file":"research-agent-dispatch.companion.service.js","sourceRoot":"","sources":["../../../../../src/claude-cli/services/research-agent-dispatch.companion.service.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmCG;;;;;;;;;;;;;AAEH,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AAC/C,OAAO,EACL,0BAA0B,EAC1B,aAAa,EACb,kBAAkB,GAEnB,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAIL,sBAAsB,GAGvB,MAAM,sCAAsC,CAAC;AAC9C,OAAO,EAAE,2BAA2B,EAAE,SAAS,EAAqC,MAAM,uBAAuB,CAAC;AAElH,OAAO,EAAE,uBAAuB,EAAE,MAAM,wCAAwC,CAAC;AAEjF,OAAO,EAAE,8BAA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AG,QAAQ,CAAC,gBAAkD,CAAC,KAAK,EAAE;gBAC/E,CAAC,CAAC,EAAE,CAAC;YACP,GAAG,CAAC,MAAM,EAAE,qBAAqB,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,qBAAqB,EAAE,MAAM,CAAC,qBAAqB,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;YAC/G,GAAG,CAAC,MAAM,EAAE,mBAAmB,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,mBAAmB,EAAE,MAAM,CAAC,mBAAmB,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;YACzG,qBAAqB,EAAE,MAAM,EAAE,qBAAqB,IAAI,EAAE;YAC1D,SAAS;YACT,qBAAqB;SACtB,CAAC;QACF,IAAI,CAAC,QAAQ,CAAC,wBAAwB,EAAE;YACtC,UAAU;YACV,SAAS;YACT,cAAc,EAAE,QAAQ,CAAC,MAAM;YAC/B,qBAAqB,EAAE,MAAM,CAAC,qBAAqB;YACnD,qBAAqB,EAAE,MAAM,CAAC,qBAAqB,CAAC,MAAM;YAC1D,qBAAqB;SACtB,CAAC,CAAC;QACH,OAAO,MAAM,CAAC;IAChB,CAAC;CACF,CAAA;AArIY,qCAAqC;IADjD,UAAU,EAAE;IAKR,WAAA,MAAM,CAAC,kBAAkB,CAAC,MAAM,CAAC,CAAA;IACjC,WAAA,MAAM,CAAC,kBAAkB,CAAC,mBAAmB,CAAC,CAAA;IAC9C,WAAA,MAAM,CAAC,kBAAkB,CAAC,oBAAoB,CAAC,CAAA;IAC/C,WAAA,MAAM,CAAC,uBAAuB,CAAC,gBAAgB,CAAC,CAAA;qCAHW,aAAa;QACM,0BAA0B;GALhG,qCAAqC,CAqIjD","sourcesContent":["/**\n * Research dispatch — the evidence half of the ACP lane. Read-only toward the workspace, except\n * for its own evidence store.\n *\n * ## Why this is a SECOND WRAPPER and not a mode on the coding one\n *\n * The generic session runner (`runACPCodingSession`, engine) is already task-agnostic: command, cwd,\n * prompt, permission ceiling, a location predicate, an event sink. Everything that makes the coding\n * dispatch a CODING dispatch — the typed task contract, the git change-set capture, the mutation\n * scope, the single-flight lock — sits in that wrapper, and none of it applies to a run that mutates\n * nothing and returns text. So research is a sibling over the same runner rather than a branch\n * inside a service whose every other line is about attributing writes.\n *\n * ## The confinement, and it is TWO independent things\n *\n * 1. The `claude-code-acp-research` profile's `AUTO_ACCEPT_EDITS` ceiling admits the protocol's\n * non-mutating tool kinds (`read`, `search`, `fetch`, `think`) plus `edit` — never `execute`,\n * never the unclassified `other`. (It was `AUTO_ACCEPT_READS` until 2026-09-04, when three lost\n * compliance runs showed evidence living only in run memory cannot be leveraged or recovered;\n * the edit admission exists solely so findings persist as they are gathered.)\n * 2. This dispatch supplies a location predicate that admits ONLY the evidence store\n * (`specifications/research-evidence/`) and refuses every other path — built by the same\n * `buildApplicationCodingTaskLocationPredicate` the coding lane trusts. The runner applies it to\n * any permission request declaring locations, whatever its kind, and separately gates the\n * client-side write RPC. So a web read (which declares no location) passes, an evidence-store\n * write passes, and any other filesystem read or write does not.\n *\n * Neither alone is the guarantee. The ceiling stops the kinds; the predicate stops the paths.\n *\n * ## Measured before it was built (2026-08-29)\n *\n * Under `PROMPT_ALWAYS` with every location refused, a live probe asking a public-web pricing\n * question had both `WebFetch` and `WebSearch` arrive as `toolKind: 'fetch'` and be refused; the\n * agent ended its turn declining to guess from memory. Re-run under `AUTO_ACCEPT_READS`, the same\n * probe fetched the page and returned the figure with its source URL, `reportedFileLocations: []`.\n */\n\nimport { inject, injectable } from 'inversify';\nimport {\n ErrorBuilderBackendService,\n LoggerService,\n SAAS_SERVICE_TYPES,\n type AgentsBackendService,\n} from '@wildo-ai/saas-backend-lib';\nimport {\n CodingAgent_OperationContext_BaseSchema,\n CodingAgent_RunTaskInputSchema,\n CodingAgent_RunTaskOutputSchema,\n CodingAgent_StopReason,\n type CodingAgent_RunTaskOutput,\n type CodingAgent_Usage,\n} from '@wildo-ai/external-connectors-models';\nimport { ErrorCustomMessageReference, ErrorType, type FlowsActors_Agent_Invocation } from '@wildo-ai/saas-models';\n\nimport { COMPANION_SERVICE_TYPES } from '../../core/inject/models/service-types';\nimport type { CompanionContext } from '../../core/context/companion-context';\nimport { APPLICATION_RESEARCH_AGENT_REF } from '../../meta-workflows/models/application-research-agent.actors-system.definitions';\nimport { buildApplicationCodingTaskLocationPredicate } from './coding-agent-dispatch.companion.service';\nimport {\n RESEARCH_EVIDENCE_RELATIVE_ROOT,\n composeEvidenceStoreInstruction,\n resolveResearchEvidenceDirectory,\n writeFinalEvidenceRecord,\n} from './research-evidence-store.companion';\n\n/** One research objective, composed by whatever is asking — a playbook, a choreography, an operator. */\nexport interface ResearchTaskRequest {\n /**\n * What to find out, in the requester's own words.\n *\n * Deliberately free text rather than a structured query: the objective is INVENTED per run and\n * adapted to what an earlier round found, which is the whole reason a research step is an agent\n * and not a search API. Code gates the KIND of work and its bounds; it never gates the content.\n */\n readonly objective: string;\n /**\n * Which investigation this task belongs to — normally the composite playbook ref. Names the\n * evidence-store directory every round of that investigation consolidates into. Absent for an\n * operator's ad-hoc question, which lands under `adhoc`.\n */\n readonly evidenceScope?: string;\n /** The playbook that asked, recorded in the persisted evidence frontmatter. */\n readonly playbookRef?: string;\n}\n\nexport interface ResearchTaskResult {\n /** The agent's final message — the evidence, in prose, with the sources it says it read. */\n readonly evidence: string;\n readonly stopReason: CodingAgent_StopReason;\n readonly usage?: CodingAgent_Usage;\n /**\n * Permission requests the runner refused, with the reason.\n *\n * Carried because a research answer that looks thin has two very different causes — the agent\n * found little, or the ceiling refused the tool it needed — and they are indistinguishable from\n * the prose alone.\n */\n readonly deniedPermissionCount?: number;\n readonly permissionDecisions?: CodingAgent_RunTaskOutput['permissionDecisions'];\n /**\n * Paths the agent reported touching. Every entry must sit inside the evidence store — carried so\n * that claim is an observed fact in the record rather than an assumption about the configuration.\n */\n readonly reportedFileLocations: readonly string[];\n readonly elapsedMs: number;\n /** Where the final brief was persisted — the companion-side backstop write, always present. */\n readonly persistedEvidencePath: string;\n}\n\n/** The research agent is not registered, or the profile it names is absent. Named so a transport answers 409 rather than 500. */\nexport class ResearchAgentUnavailableError extends Error {}\n\n@injectable()\nexport class ResearchAgentDispatchCompanionService {\n private readonly logDebug: (message: string, context?: Record<string, unknown>) => void;\n\n constructor(\n @inject(SAAS_SERVICE_TYPES.Logger) private readonly logger: LoggerService,\n @inject(SAAS_SERVICE_TYPES.ErrorBuilderService) private readonly errorBuilder: ErrorBuilderBackendService,\n @inject(SAAS_SERVICE_TYPES.AgentsBackendService) private readonly agentsService: AgentsBackendService,\n @inject(COMPANION_SERVICE_TYPES.CompanionContext) private readonly companionContext: CompanionContext,\n ) {\n this.logDebug = this.logger.debugByType('ResearchAgentDispatchCompanionService');\n this.logger.setDebugTypeLogging('ResearchAgentDispatchCompanionService', true);\n }\n\n /**\n * Run one research objective and return what the agent found.\n *\n * No lock, no change set, no reconciliation — a run that cannot mutate has nothing to attribute and\n * nothing to recover. Several research lanes may therefore run concurrently, which is what makes a\n * breadth-first fan-out possible at all.\n */\n public async runResearchTask(request: ResearchTaskRequest): Promise<ResearchTaskResult> {\n const objective = request.objective.trim();\n if (objective.length === 0) {\n throw this.errorBuilder.buildError(ErrorType.VALIDATION, undefined, {\n customMessageReference: ErrorCustomMessageReference.VALIDATION,\n context: { message: 'A research task needs an objective; an empty one would spend a turn to learn nothing.' },\n });\n }\n if (this.agentsService.getAgent(APPLICATION_RESEARCH_AGENT_REF) === undefined) {\n throw new ResearchAgentUnavailableError(\n `The research agent \"${APPLICATION_RESEARCH_AGENT_REF}\" is not registered. It is registered at companion startup; `\n + 'a companion started before it existed needs a restart.',\n );\n }\n\n const evidenceDirectory = resolveResearchEvidenceDirectory(this.companionContext.saasRoot, request.evidenceScope ?? 'adhoc');\n const promptWithStore = [objective, '', composeEvidenceStoreInstruction(evidenceDirectory)].join('\\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_RESEARCH_AGENT_REF,\n initiator: {},\n invocationContext: [],\n input: { prompt: promptWithStore },\n output: { finalMessage: '', stopReason: CodingAgent_StopReason.END_TURN },\n executionContext: { callTimestamp: new Date().toISOString() },\n artifactBindings: [],\n };\n\n const startedAtMs = Date.now();\n const startedAtIso = new Date(startedAtMs).toISOString();\n this.logDebug('Research task starting', { objectiveLength: objective.length, evidenceScope: request.evidenceScope });\n const response = await this.agentsService.invokeAgent(invocation, undefined, {\n workspaceRootPath: this.companionContext.saasRoot,\n /*\n * ONE writable island: the evidence store. The predicate is the SAME builder the coding lane\n * trusts (symlink-aware, boundary-matched), scoped to `specifications/research-evidence/` and\n * nothing else — so the agent can consolidate findings to disk as it researches (evidence\n * that survives an interrupted turn) and read prior rounds' files, while the rest of the\n * workspace stays refused. A web fetch declares no location and is unaffected. This replaced\n * the original refuse-every-path predicate on 2026-09-04, when three lost compliance runs\n * showed that evidence living only in run memory cannot be leveraged or recovered.\n */\n isPermittedCodingLocation: buildApplicationCodingTaskLocationPredicate(\n this.companionContext.saasRoot,\n [RESEARCH_EVIDENCE_RELATIVE_ROOT],\n [],\n ),\n });\n\n const output = response.output as Partial<CodingAgent_RunTaskOutput> | undefined;\n const evidence = typeof output?.finalMessage === 'string' ? output.finalMessage : '';\n const stopReason = output?.stopReason ?? CodingAgent_StopReason.UNRECOGNISED;\n const elapsedMs = Date.now() - startedAtMs;\n\n /*\n * A CANCELLED turn is not a completed one and its partial prose is not evidence — the same\n * refusal the coding lane makes, for the same reason: a truncated answer reads exactly like a\n * short one. Checked BEFORE the backstop write, so a cancelled turn's partial FINAL MESSAGE is\n * never persisted as a completed record — whatever the agent already consolidated to the store\n * during the turn stands on its own, file by file, and is exactly what incremental persistence\n * is for.\n */\n if (stopReason === CodingAgent_StopReason.CANCELLED) {\n throw new Error(`Research task was cancelled after ${elapsedMs}ms; its partial answer is not evidence.`);\n }\n\n // The companion-side backstop: the completed brief lands on disk with its provenance even when\n // the agent consolidated nothing itself. Best-effort by construction — a store write failing\n // must not turn a completed research turn into a failed one.\n let persistedEvidencePath = '';\n try {\n persistedEvidencePath = writeFinalEvidenceRecord({\n evidenceDirectoryAbsolutePath: evidenceDirectory,\n objective,\n evidence,\n stopReason,\n startedAtIso,\n elapsedMs,\n ...(request.playbookRef ? { playbookRef: request.playbookRef } : {}),\n });\n } catch (persistError) {\n this.logger.warn('Research evidence backstop write failed; the returned brief is the only copy', {\n evidenceDirectory,\n failure: persistError instanceof Error ? persistError.message : String(persistError),\n });\n }\n\n const result: ResearchTaskResult = {\n evidence,\n stopReason,\n ...(((response.executionContext as { usage?: CodingAgent_Usage } | undefined)?.usage)\n ? { usage: (response.executionContext as { usage?: CodingAgent_Usage }).usage }\n : {}),\n ...(output?.deniedPermissionCount !== undefined ? { deniedPermissionCount: output.deniedPermissionCount } : {}),\n ...(output?.permissionDecisions !== undefined ? { permissionDecisions: output.permissionDecisions } : {}),\n reportedFileLocations: output?.reportedFileLocations ?? [],\n elapsedMs,\n persistedEvidencePath,\n };\n this.logDebug('Research task finished', {\n stopReason,\n elapsedMs,\n evidenceLength: evidence.length,\n deniedPermissionCount: result.deniedPermissionCount,\n reportedFileLocations: result.reportedFileLocations.length,\n persistedEvidencePath,\n });\n return result;\n }\n}\n"]}
1
+ {"version":3,"file":"research-agent-dispatch.companion.service.js","sourceRoot":"","sources":["../../../../src/claude-cli/services/research-agent-dispatch.companion.service.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuCG;;;;;;;;;;;;;AAEH,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AAC/C,OAAO,EACL,0BAA0B,EAC1B,aAAa,EACb,kBAAkB,GAEnB,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAIL,sBAAsB,GAGvB,MAAM,sCAAsC,CAAC;AAC9C,OAAO,EAAE,2BAA2B,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ACP lane. Read-only toward the workspace, except\n * for its own evidence store.\n *\n * ## Why this is a SECOND WRAPPER and not a mode on the coding one\n *\n * The generic session runner (`runACPCodingSession`, engine) is already task-agnostic: command, cwd,\n * prompt, permission ceiling, a location predicate, an event sink. Everything that makes the coding\n * dispatch a CODING dispatch — the typed task contract, the git change-set capture, the mutation\n * scope, the single-flight lock — sits in that wrapper, and none of it applies to a run that mutates\n * nothing and returns text. So research is a sibling over the same runner rather than a branch\n * inside a service whose every other line is about attributing writes.\n *\n * ## The confinement, and it is TWO independent things\n *\n * 1. The `claude-code-acp-research` profile's `AUTO_ACCEPT_READS_AND_EDITS` ceiling admits the\n * protocol's non-mutating tool kinds (`read`, `search`, `fetch`, `think`) plus `edit`, and\n * nothing else: never `execute`, never the unclassified `other`. The ceilings are kind-SETS,\n * not nested ranks, so read the name carefully: `AUTO_ACCEPT_EDITS` admits ONLY the mutating\n * kinds and is precisely the inverse of what research needs. (The profile was `AUTO_ACCEPT_READS` until three lost\n * compliance runs showed evidence living only in run memory cannot be leveraged or recovered;\n * the edit admission exists solely so findings persist as they are gathered, and the first\n * attempt at it named `AUTO_ACCEPT_EDITS` and cost two rounds of a live run with every web\n * fetch refused.)\n * 2. This dispatch supplies a location predicate that admits ONLY the evidence store\n * (`specifications/research-evidence/`) and refuses every other path — built by the same\n * `buildApplicationCodingTaskLocationPredicate` the coding lane trusts. The runner applies it to\n * any permission request declaring locations, whatever its kind, and separately gates the\n * client-side write RPC. So a web read (which declares no location) passes, an evidence-store\n * write passes, and any other filesystem read or write does not.\n *\n * Neither alone is the guarantee. The ceiling stops the kinds; the predicate stops the paths.\n *\n * ## Measured before it was built (2026-08-29)\n *\n * Under `PROMPT_ALWAYS` with every location refused, a live probe asking a public-web pricing\n * question had both `WebFetch` and `WebSearch` arrive as `toolKind: 'fetch'` and be refused; the\n * agent ended its turn declining to guess from memory. Re-run under `AUTO_ACCEPT_READS`, the same\n * probe fetched the page and returned the figure with its source URL, `reportedFileLocations: []`.\n */\n\nimport { inject, injectable } from 'inversify';\nimport {\n ErrorBuilderBackendService,\n LoggerService,\n SAAS_SERVICE_TYPES,\n type AgentsBackendService,\n} from '@wildo-ai/saas-backend-lib';\nimport {\n CodingAgent_OperationContext_BaseSchema,\n CodingAgent_RunTaskInputSchema,\n CodingAgent_RunTaskOutputSchema,\n CodingAgent_StopReason,\n type CodingAgent_RunTaskOutput,\n type CodingAgent_Usage,\n} from '@wildo-ai/external-connectors-models';\nimport { ErrorCustomMessageReference, ErrorType, type FlowsActors_Agent_Invocation } from '@wildo-ai/saas-models';\n\nimport { COMPANION_SERVICE_TYPES } from '../../core/inject/models/service-types';\nimport type { CompanionContext } from '../../core/context/companion-context';\nimport { APPLICATION_RESEARCH_AGENT_REF } from '../../meta-workflows/models/application-research-agent.actors-system.definitions';\nimport { buildApplicationCodingTaskLocationPredicate } from './coding-agent-dispatch.companion.service';\nimport {\n RESEARCH_EVIDENCE_RELATIVE_ROOT,\n composeEvidenceStoreInstruction,\n resolveResearchEvidenceDirectory,\n writeFinalEvidenceRecord,\n} from './research-evidence-store.companion';\n\n/** One research objective, composed by whatever is asking — a playbook, a choreography, an operator. */\nexport interface ResearchTaskRequest {\n /**\n * What to find out, in the requester's own words.\n *\n * Deliberately free text rather than a structured query: the objective is INVENTED per run and\n * adapted to what an earlier round found, which is the whole reason a research step is an agent\n * and not a search API. Code gates the KIND of work and its bounds; it never gates the content.\n */\n readonly objective: string;\n /**\n * Which investigation this task belongs to — normally the composite playbook ref. Names the\n * evidence-store directory every round of that investigation consolidates into. Absent for an\n * operator's ad-hoc question, which lands under `adhoc`.\n */\n readonly evidenceScope?: string;\n /** The playbook that asked, recorded in the persisted evidence frontmatter. */\n readonly playbookRef?: string;\n}\n\nexport interface ResearchTaskResult {\n /** The agent's final message — the evidence, in prose, with the sources it says it read. */\n readonly evidence: string;\n readonly stopReason: CodingAgent_StopReason;\n readonly usage?: CodingAgent_Usage;\n /**\n * Permission requests the runner refused, with the reason.\n *\n * Carried because a research answer that looks thin has two very different causes — the agent\n * found little, or the ceiling refused the tool it needed — and they are indistinguishable from\n * the prose alone.\n */\n readonly deniedPermissionCount?: number;\n readonly permissionDecisions?: CodingAgent_RunTaskOutput['permissionDecisions'];\n /**\n * Paths the agent reported touching. Every entry must sit inside the evidence store — carried so\n * that claim is an observed fact in the record rather than an assumption about the configuration.\n */\n readonly reportedFileLocations: readonly string[];\n readonly elapsedMs: number;\n /** Where the final brief was persisted — the companion-side backstop write, always present. */\n readonly persistedEvidencePath: string;\n}\n\n/** The research agent is not registered, or the profile it names is absent. Named so a transport answers 409 rather than 500. */\nexport class ResearchAgentUnavailableError extends Error {}\n\n@injectable()\nexport class ResearchAgentDispatchCompanionService {\n private readonly logDebug: (message: string, context?: Record<string, unknown>) => void;\n\n constructor(\n @inject(SAAS_SERVICE_TYPES.Logger) private readonly logger: LoggerService,\n @inject(SAAS_SERVICE_TYPES.ErrorBuilderService) private readonly errorBuilder: ErrorBuilderBackendService,\n @inject(SAAS_SERVICE_TYPES.AgentsBackendService) private readonly agentsService: AgentsBackendService,\n @inject(COMPANION_SERVICE_TYPES.CompanionContext) private readonly companionContext: CompanionContext,\n ) {\n this.logDebug = this.logger.debugByType('ResearchAgentDispatchCompanionService');\n this.logger.setDebugTypeLogging('ResearchAgentDispatchCompanionService', true);\n }\n\n /**\n * Run one research objective and return what the agent found.\n *\n * No lock, no change set, no reconciliation — a run that cannot mutate has nothing to attribute and\n * nothing to recover. Several research lanes may therefore run concurrently, which is what makes a\n * breadth-first fan-out possible at all.\n *\n * ## \"Cannot mutate\" is one island short, and the coding lane is where that was paid for\n *\n * This run CAN write, to exactly one place: its evidence store\n * (`specifications/research-evidence/`, admitted by the location predicate below). That store is\n * inside the application repository and is COMMITTABLE, so it is fully visible to the coding lane's\n * whole-worktree change-set capture — and a research turn overlapping a coding run therefore\n * appeared in that run's change set, at a path no coding task declares, i.e. as a false\n * `MUTATION_SCOPE_VIOLATION` that failed the coding run closed. Two live paths reach that overlap:\n * an operator's `POST /api/companion/research`, and a composite's `RESEARCH_AGENT` children, which\n * the choreography dispatches concurrently.\n *\n * The fix is on the coding side, where the misattribution happens —\n * `CONCURRENT_HOST_LANE_ROOTS` in `git-change-set.companion.service.ts` names this store as\n * lane-owned, so its writes are RECORDED in the change set and excluded from the scope decision.\n * Taking the workspace-mutation lock here was rejected and measured: that lock is acquired with\n * `retries: { retries: 0 }`, so it refuses rather than queues, and it would refuse two of every\n * three lanes of the fan-out this JSDoc exists to protect.\n *\n * So if this lane ever grows a SECOND writable island, the coding lane's list has to grow with it\n * in the same change. Nothing mechanical joins them — the predicate is one exported function\n * precisely so the join is a single named place rather than a convention.\n */\n public async runResearchTask(request: ResearchTaskRequest): Promise<ResearchTaskResult> {\n const objective = request.objective.trim();\n if (objective.length === 0) {\n throw this.errorBuilder.buildError(ErrorType.VALIDATION, undefined, {\n customMessageReference: ErrorCustomMessageReference.VALIDATION,\n context: { message: 'A research task needs an objective; an empty one would spend a turn to learn nothing.' },\n });\n }\n if (this.agentsService.getAgent(APPLICATION_RESEARCH_AGENT_REF) === undefined) {\n throw new ResearchAgentUnavailableError(\n `The research agent \"${APPLICATION_RESEARCH_AGENT_REF}\" is not registered. It is registered at companion startup; `\n + 'a companion started before it existed needs a restart.',\n );\n }\n\n const evidenceDirectory = resolveResearchEvidenceDirectory(this.companionContext.saasRoot, request.evidenceScope ?? 'adhoc');\n const promptWithStore = [objective, '', composeEvidenceStoreInstruction(evidenceDirectory)].join('\\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_RESEARCH_AGENT_REF,\n initiator: {},\n invocationContext: [],\n input: { prompt: promptWithStore },\n output: { finalMessage: '', stopReason: CodingAgent_StopReason.END_TURN },\n executionContext: { callTimestamp: new Date().toISOString() },\n artifactBindings: [],\n };\n\n const startedAtMs = Date.now();\n const startedAtIso = new Date(startedAtMs).toISOString();\n this.logDebug('Research task starting', { objectiveLength: objective.length, evidenceScope: request.evidenceScope });\n const response = await this.agentsService.invokeAgent(invocation, undefined, {\n workspaceRootPath: this.companionContext.saasRoot,\n /*\n * ONE writable island: the evidence store. The predicate is the SAME builder the coding lane\n * trusts (symlink-aware, boundary-matched), scoped to `specifications/research-evidence/` and\n * nothing else — so the agent can consolidate findings to disk as it researches (evidence\n * that survives an interrupted turn) and read prior rounds' files, while the rest of the\n * workspace stays refused. A web fetch declares no location and is unaffected. This replaced\n * the original refuse-every-path predicate on 2026-09-04, when three lost compliance runs\n * showed that evidence living only in run memory cannot be leveraged or recovered.\n */\n isPermittedCodingLocation: buildApplicationCodingTaskLocationPredicate(\n this.companionContext.saasRoot,\n [RESEARCH_EVIDENCE_RELATIVE_ROOT],\n [],\n ),\n });\n\n const output = response.output as Partial<CodingAgent_RunTaskOutput> | undefined;\n const evidence = typeof output?.finalMessage === 'string' ? output.finalMessage : '';\n const stopReason = output?.stopReason ?? CodingAgent_StopReason.UNRECOGNISED;\n const elapsedMs = Date.now() - startedAtMs;\n\n /*\n * A CANCELLED turn is not a completed one and its partial prose is not evidence — the same\n * refusal the coding lane makes, for the same reason: a truncated answer reads exactly like a\n * short one. Checked BEFORE the backstop write, so a cancelled turn's partial FINAL MESSAGE is\n * never persisted as a completed record — whatever the agent already consolidated to the store\n * during the turn stands on its own, file by file, and is exactly what incremental persistence\n * is for.\n */\n if (stopReason === CodingAgent_StopReason.CANCELLED) {\n throw new Error(`Research task was cancelled after ${elapsedMs}ms; its partial answer is not evidence.`);\n }\n\n // The companion-side backstop: the completed brief lands on disk with its provenance even when\n // the agent consolidated nothing itself. Best-effort by construction — a store write failing\n // must not turn a completed research turn into a failed one.\n let persistedEvidencePath = '';\n try {\n persistedEvidencePath = writeFinalEvidenceRecord({\n evidenceDirectoryAbsolutePath: evidenceDirectory,\n objective,\n evidence,\n stopReason,\n startedAtIso,\n elapsedMs,\n ...(request.playbookRef ? { playbookRef: request.playbookRef } : {}),\n });\n } catch (persistError) {\n this.logger.warn('Research evidence backstop write failed; the returned brief is the only copy', {\n evidenceDirectory,\n failure: persistError instanceof Error ? persistError.message : String(persistError),\n });\n }\n\n const result: ResearchTaskResult = {\n evidence,\n stopReason,\n ...(((response.executionContext as { usage?: CodingAgent_Usage } | undefined)?.usage)\n ? { usage: (response.executionContext as { usage?: CodingAgent_Usage }).usage }\n : {}),\n ...(output?.deniedPermissionCount !== undefined ? { deniedPermissionCount: output.deniedPermissionCount } : {}),\n ...(output?.permissionDecisions !== undefined ? { permissionDecisions: output.permissionDecisions } : {}),\n reportedFileLocations: output?.reportedFileLocations ?? [],\n elapsedMs,\n persistedEvidencePath,\n };\n this.logDebug('Research task finished', {\n stopReason,\n elapsedMs,\n evidenceLength: evidence.length,\n deniedPermissionCount: result.deniedPermissionCount,\n reportedFileLocations: result.reportedFileLocations.length,\n persistedEvidencePath,\n });\n return result;\n }\n}\n"]}
@@ -46,6 +46,22 @@ export declare function slugifyEvidenceScope(scope: string): string;
46
46
  * property of the LANE, and a convention restated per method drifts. The instruction is explicit
47
47
  * that the directory is the ONLY writable location — the predicate enforces it, but an agent told
48
48
  * the boundary spends its turn researching instead of discovering refusals.
49
+ *
50
+ * ## Why it also carries a SOURCE-NEUTRALITY clause (2026-09-04)
51
+ *
52
+ * A compliance researcher enumerating "which regimes apply" reaches for proprietary security
53
+ * certification and attestation standards unprompted, alongside the public law that is the actual
54
+ * subject. Public law is fine — statutes and regulations are quotable. The proprietary standards are
55
+ * not: their control catalogues and identifiers are licensed material, and `CLAUDE.md` confines every
56
+ * external framework name, identifier and mapping to a rights-classified boundary that this store is
57
+ * not. `pnpm check:assurance-control-boundary` refuses them repository-wide against a baseline drained
58
+ * to zero, so a dogfood application's committed store is a surface where they land in FRAMEWORK git.
59
+ *
60
+ * That is not hypothetical: Wonder CRM's first accepted evidence population carried six such names —
61
+ * every one of them merely listing the standard as "voluntary, not a legal obligation, never
62
+ * researched" — and reddened the gate on the shared branch. The finding survives its neutral phrasing
63
+ * intact, which is why the instruction asks for the CATEGORY rather than forbidding the conclusion:
64
+ * an agent told only "do not name X" tends to drop the finding along with the name.
49
65
  */
50
66
  export declare function composeEvidenceStoreInstruction(evidenceDirectoryAbsolutePath: string): string;
51
67
  /** What the companion persists about one COMPLETED research task, beside whatever the agent wrote. */
@@ -1 +1 @@
1
- {"version":3,"file":"research-evidence-store.companion.d.ts","sourceRoot":"","sources":["../../../../../src/claude-cli/services/research-evidence-store.companion.ts"],"names":[],"mappings":"AAGA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AAEH,uGAAuG;AACvG,eAAO,MAAM,+BAA+B,qCAAqC,CAAC;AAElF;;;;GAIG;AACH,wBAAgB,gCAAgC,CAAC,QAAQ,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,MAAM,CAExF;AAED,iGAAiG;AACjG,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAO1D;AAED;;;;;;;GAOG;AACH,wBAAgB,+BAA+B,CAAC,6BAA6B,EAAE,MAAM,GAAG,MAAM,CAQ7F;AAED,sGAAsG;AACtG,MAAM,WAAW,wBAAwB;IACvC,QAAQ,CAAC,6BAA6B,EAAE,MAAM,CAAC;IAC/C,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;IAC5B,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAC;IAC9B,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,yFAAyF;IACzF,QAAQ,CAAC,WAAW,CAAC,EAAE,MAAM,CAAC;CAC/B;AAED;;;;;;GAMG;AACH,wBAAgB,wBAAwB,CAAC,KAAK,EAAE,wBAAwB,GAAG,MAAM,CAgChF"}
1
+ {"version":3,"file":"research-evidence-store.companion.d.ts","sourceRoot":"","sources":["../../../../src/claude-cli/services/research-evidence-store.companion.ts"],"names":[],"mappings":"AAGA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AAEH,uGAAuG;AACvG,eAAO,MAAM,+BAA+B,qCAAqC,CAAC;AAElF;;;;GAIG;AACH,wBAAgB,gCAAgC,CAAC,QAAQ,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,MAAM,CAExF;AAED,iGAAiG;AACjG,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAO1D;AAED;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,wBAAgB,+BAA+B,CAAC,6BAA6B,EAAE,MAAM,GAAG,MAAM,CAS7F;AAED,sGAAsG;AACtG,MAAM,WAAW,wBAAwB;IACvC,QAAQ,CAAC,6BAA6B,EAAE,MAAM,CAAC;IAC/C,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;IAC5B,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAC;IAC9B,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,yFAAyF;IACzF,QAAQ,CAAC,WAAW,CAAC,EAAE,MAAM,CAAC;CAC/B;AAED;;;;;;GAMG;AACH,wBAAgB,wBAAwB,CAAC,KAAK,EAAE,wBAAwB,GAAG,MAAM,CAgChF"}
@@ -57,6 +57,22 @@ export function slugifyEvidenceScope(scope) {
57
57
  * property of the LANE, and a convention restated per method drifts. The instruction is explicit
58
58
  * that the directory is the ONLY writable location — the predicate enforces it, but an agent told
59
59
  * the boundary spends its turn researching instead of discovering refusals.
60
+ *
61
+ * ## Why it also carries a SOURCE-NEUTRALITY clause (2026-09-04)
62
+ *
63
+ * A compliance researcher enumerating "which regimes apply" reaches for proprietary security
64
+ * certification and attestation standards unprompted, alongside the public law that is the actual
65
+ * subject. Public law is fine — statutes and regulations are quotable. The proprietary standards are
66
+ * not: their control catalogues and identifiers are licensed material, and `CLAUDE.md` confines every
67
+ * external framework name, identifier and mapping to a rights-classified boundary that this store is
68
+ * not. `pnpm check:assurance-control-boundary` refuses them repository-wide against a baseline drained
69
+ * to zero, so a dogfood application's committed store is a surface where they land in FRAMEWORK git.
70
+ *
71
+ * That is not hypothetical: Wonder CRM's first accepted evidence population carried six such names —
72
+ * every one of them merely listing the standard as "voluntary, not a legal obligation, never
73
+ * researched" — and reddened the gate on the shared branch. The finding survives its neutral phrasing
74
+ * intact, which is why the instruction asks for the CATEGORY rather than forbidding the conclusion:
75
+ * an agent told only "do not name X" tends to drop the finding along with the name.
60
76
  */
61
77
  export function composeEvidenceStoreInstruction(evidenceDirectoryAbsolutePath) {
62
78
  return [
@@ -64,6 +80,7 @@ export function composeEvidenceStoreInstruction(evidenceDirectoryAbsolutePath) {
64
80
  `The directory \`${evidenceDirectoryAbsolutePath}\` is your evidence store — the ONLY location you may write to (every other path is refused).`,
65
81
  'FIRST read what it already contains: earlier rounds consolidated their findings there. Extend that record; do not re-research or restate what a prior file already establishes with sources.',
66
82
  'AS YOU RESEARCH, persist your findings into markdown files in that directory — one file per coherent topic, named `<topic-slug>.md`, updated in place as your understanding sharpens. Each finding carries its source URL beside it. Write incrementally: evidence on disk survives an interrupted turn; evidence only in your final message does not.',
83
+ 'SOURCE NEUTRALITY: name public law freely (statutes, regulations, regulator guidance — quote and cite them). Do NOT name a proprietary security certification or attestation standard, or any of its control identifiers, in a file or in your final message: their catalogues are licensed material this store is not a rights-classified boundary for. Refer to that whole class as "voluntary security-certification and attestation frameworks" and state your finding about it in full — the conclusion is wanted, the proprietary name is not.',
67
84
  'Your final message still reports the answer in full — the store is the durable record, not a substitute for answering.',
68
85
  ].join('\n');
69
86
  }
@@ -1 +1 @@
1
- {"version":3,"file":"research-evidence-store.companion.js","sourceRoot":"","sources":["../../../../../src/claude-cli/services/research-evidence-store.companion.ts"],"names":[],"mappings":"AAAA,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,CAAC,KAAK,CAAC,6BAA6B,CAAC,CAAC,MAAM,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,UAAU,CAAC,GAAG,GAAG,SAAS,CAAC,CAAC,CAAC;IACrH,IAAI,KAAK,GAAG,QAAQ,CAAC,MAAM,GAAG,CAAC,CAAC;IAChC,IAAI,QAAQ,GAAG,IAAI,CAAC,KAAK,CAAC,6BAA6B,EAAE,GAAG,GAAG,UAAU,KAAK,KAAK,CAAC,CAAC;IACrF,OAAO,UAAU,CAAC,QAAQ,CAAC,EAAE,CAAC;QAC5B,KAAK,IAAI,CAAC,CAAC;QACX,QAAQ,GAAG,IAAI,CAAC,KAAK,CAAC,6BAA6B,EAAE,GAAG,GAAG,UAAU,KAAK,KAAK,CAAC,CAAC;IACnF,CAAC;IACD,MAAM,WAAW,GAAG;QAClB,KAAK;QACL,cAAc,KAAK,CAAC,YAAY,EAAE;QAClC,cAAc,KAAK,CAAC,SAAS,EAAE;QAC/B,eAAe,KAAK,CAAC,UAAU,EAAE;QACjC,GAAG,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,gBAAgB,KAAK,CAAC,WAAW,EAAE,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;QACnE,KAAK;KACN,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACb,MAAM,IAAI,GAAG;QACX,WAAW;QACX,EAAE;QACF,cAAc;QACd,EAAE;QACF,KAAK,CAAC,SAAS;QACf,EAAE;QACF,aAAa;QACb,EAAE;QACF,KAAK,CAAC,QAAQ;QACd,EAAE;KACH,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACb,aAAa,CAAC,QAAQ,EAAE,IAAI,EAAE,MAAM,CAAC,CAAC;IACtC,OAAO,QAAQ,CAAC;AAClB,CAAC","sourcesContent":["import { mkdirSync, writeFileSync, existsSync, readdirSync } from 'node:fs';\nimport { join } from 'node:path';\n\n/**\n * The research evidence store — where a research agent's findings become FILES.\n *\n * ## Why this exists (2026-09-04)\n *\n * Research evidence used to live in exactly one place: the run's in-memory step results, feeding\n * the next child's brief and dying with the run. Three consecutive compliance runs proved what that\n * costs — a 56-minute, 14-children evidence body lost to a quota cut, then two relaunches lost to\n * an expired login — and the run-level checkpoint only protects the SCHEDULING state, not the\n * knowledge. The store is the knowledge half: evidence lands on disk as it is gathered, survives\n * any death, and is READ BACK by later runs so they extend prior research instead of re-buying it.\n *\n * ## Where, and why it is COMMITTABLE\n *\n * `<application>/specifications/research-evidence/<scope>/` — inside the application repository,\n * outside `specifications/src/`, so it enters no TypeScript program and no family classification.\n * Committable on purpose: source-attributed research is knowledge the posture artifacts cite, and\n * \"delete it and re-run\" costs hours and a quota window — git is where things that must survive a\n * re-clone live (`one-source-of-truth.md`). Acceptance stays a human commit, like every other\n * working edit an agent lands.\n *\n * ## Who writes\n *\n * TWO writers, layered:\n * 1. The research AGENT, incrementally, during its turn — the profile's location predicate admits\n * exactly this directory (built by the same `buildApplicationCodingTaskLocationPredicate` the\n * coding lane trusts), so a mid-turn death still leaves everything already consolidated.\n * 2. The COMPANION, once per completed task — `writeFinalEvidenceRecord` persists the returned\n * brief with its provenance frontmatter, so a completed turn is on disk even if the agent wrote\n * nothing itself.\n */\n\n/** Application-relative root of the store. Also the ONLY path prefix the research predicate admits. */\nexport const RESEARCH_EVIDENCE_RELATIVE_ROOT = 'specifications/research-evidence';\n\n/**\n * A scope names the investigation a set of evidence files belongs to — normally the composite\n * playbook ref (`top_down.compliance-analysis`), so every child of one choreography, across every\n * run of it, consolidates into one directory.\n */\nexport function resolveResearchEvidenceDirectory(saasRoot: string, scope: string): string {\n return join(saasRoot, RESEARCH_EVIDENCE_RELATIVE_ROOT, slugifyEvidenceScope(scope));\n}\n\n/** Directory-safe scope: lowercase, dots and separators to hyphens, nothing traversal-shaped. */\nexport function slugifyEvidenceScope(scope: string): string {\n const slug = scope\n .toLowerCase()\n .replace(/[^a-z0-9]+/g, '-')\n .replace(/^-+|-+$/g, '')\n .slice(0, 80);\n return slug.length > 0 ? slug : 'adhoc';\n}\n\n/**\n * The prompt block that turns \"you may write here\" into \"you consolidate here\".\n *\n * Appended to every research objective by the dispatch, never authored per playbook: the store is a\n * property of the LANE, and a convention restated per method drifts. The instruction is explicit\n * that the directory is the ONLY writable location — the predicate enforces it, but an agent told\n * the boundary spends its turn researching instead of discovering refusals.\n */\nexport function composeEvidenceStoreInstruction(evidenceDirectoryAbsolutePath: string): string {\n return [\n '# Evidence store (persist as you go)',\n `The directory \\`${evidenceDirectoryAbsolutePath}\\` is your evidence store — the ONLY location you may write to (every other path is refused).`,\n 'FIRST read what it already contains: earlier rounds consolidated their findings there. Extend that record; do not re-research or restate what a prior file already establishes with sources.',\n 'AS YOU RESEARCH, persist your findings into markdown files in that directory — one file per coherent topic, named `<topic-slug>.md`, updated in place as your understanding sharpens. Each finding carries its source URL beside it. Write incrementally: evidence on disk survives an interrupted turn; evidence only in your final message does not.',\n 'Your final message still reports the answer in full — the store is the durable record, not a substitute for answering.',\n ].join('\\n');\n}\n\n/** What the companion persists about one COMPLETED research task, beside whatever the agent wrote. */\nexport interface FinalEvidenceRecordInput {\n readonly evidenceDirectoryAbsolutePath: string;\n readonly objective: string;\n readonly evidence: string;\n readonly stopReason: string;\n readonly startedAtIso: string;\n readonly elapsedMs: number;\n /** The playbook that asked, when one did — an operator's ad-hoc `/research` has none. */\n readonly playbookRef?: string;\n}\n\n/**\n * Persist the final returned brief as a dated, provenance-stamped markdown record.\n *\n * Filename is `<yyyy-mm-dd>-round-<n>.md` where `n` disambiguates within a day — deliberately NOT\n * derived from the objective, whose first words are near-identical across rounds of one\n * investigation. Returns the absolute path written, so the caller can report it.\n */\nexport function writeFinalEvidenceRecord(input: FinalEvidenceRecordInput): string {\n mkdirSync(input.evidenceDirectoryAbsolutePath, { recursive: true });\n const day = input.startedAtIso.slice(0, 10);\n const existing = readdirSync(input.evidenceDirectoryAbsolutePath).filter((name) => name.startsWith(`${day}-round-`));\n let round = existing.length + 1;\n let filePath = join(input.evidenceDirectoryAbsolutePath, `${day}-round-${round}.md`);\n while (existsSync(filePath)) {\n round += 1;\n filePath = join(input.evidenceDirectoryAbsolutePath, `${day}-round-${round}.md`);\n }\n const frontmatter = [\n '---',\n `startedAt: ${input.startedAtIso}`,\n `elapsedMs: ${input.elapsedMs}`,\n `stopReason: ${input.stopReason}`,\n ...(input.playbookRef ? [`playbookRef: ${input.playbookRef}`] : []),\n '---',\n ].join('\\n');\n const body = [\n frontmatter,\n '',\n '## Objective',\n '',\n input.objective,\n '',\n '## Evidence',\n '',\n input.evidence,\n '',\n ].join('\\n');\n writeFileSync(filePath, body, 'utf8');\n return filePath;\n}\n"]}
1
+ {"version":3,"file":"research-evidence-store.companion.js","sourceRoot":"","sources":["../../../../src/claude-cli/services/research-evidence-store.companion.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,aAAa,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAC5E,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAEjC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AAEH,uGAAuG;AACvG,MAAM,CAAC,MAAM,+BAA+B,GAAG,kCAAkC,CAAC;AAElF;;;;GAIG;AACH,MAAM,UAAU,gCAAgC,CAAC,QAAgB,EAAE,KAAa;IAC9E,OAAO,IAAI,CAAC,QAAQ,EAAE,+BAA+B,EAAE,oBAAoB,CAAC,KAAK,CAAC,CAAC,CAAC;AACtF,CAAC;AAED,iGAAiG;AACjG,MAAM,UAAU,oBAAoB,CAAC,KAAa;IAChD,MAAM,IAAI,GAAG,KAAK;SACf,WAAW,EAAE;SACb,OAAO,CAAC,aAAa,EAAE,GAAG,CAAC;SAC3B,OAAO,CAAC,UAAU,EAAE,EAAE,CAAC;SACvB,KAAK,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;IAChB,OAAO,IAAI,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,IA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,WAAW,CAAC,CAAC,CAAC,CAAC,gBAAgB,KAAK,CAAC,WAAW,EAAE,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;QACnE,KAAK;KACN,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACb,MAAM,IAAI,GAAG;QACX,WAAW;QACX,EAAE;QACF,cAAc;QACd,EAAE;QACF,KAAK,CAAC,SAAS;QACf,EAAE;QACF,aAAa;QACb,EAAE;QACF,KAAK,CAAC,QAAQ;QACd,EAAE;KACH,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACb,aAAa,CAAC,QAAQ,EAAE,IAAI,EAAE,MAAM,CAAC,CAAC;IACtC,OAAO,QAAQ,CAAC;AAClB,CAAC","sourcesContent":["import { mkdirSync, writeFileSync, existsSync, readdirSync } from 'node:fs';\nimport { join } from 'node:path';\n\n/**\n * The research evidence store — where a research agent's findings become FILES.\n *\n * ## Why this exists (2026-09-04)\n *\n * Research evidence used to live in exactly one place: the run's in-memory step results, feeding\n * the next child's brief and dying with the run. Three consecutive compliance runs proved what that\n * costs — a 56-minute, 14-children evidence body lost to a quota cut, then two relaunches lost to\n * an expired login — and the run-level checkpoint only protects the SCHEDULING state, not the\n * knowledge. The store is the knowledge half: evidence lands on disk as it is gathered, survives\n * any death, and is READ BACK by later runs so they extend prior research instead of re-buying it.\n *\n * ## Where, and why it is COMMITTABLE\n *\n * `<application>/specifications/research-evidence/<scope>/` — inside the application repository,\n * outside `specifications/src/`, so it enters no TypeScript program and no family classification.\n * Committable on purpose: source-attributed research is knowledge the posture artifacts cite, and\n * \"delete it and re-run\" costs hours and a quota window — git is where things that must survive a\n * re-clone live (`one-source-of-truth.md`). Acceptance stays a human commit, like every other\n * working edit an agent lands.\n *\n * ## Who writes\n *\n * TWO writers, layered:\n * 1. The research AGENT, incrementally, during its turn — the profile's location predicate admits\n * exactly this directory (built by the same `buildApplicationCodingTaskLocationPredicate` the\n * coding lane trusts), so a mid-turn death still leaves everything already consolidated.\n * 2. The COMPANION, once per completed task — `writeFinalEvidenceRecord` persists the returned\n * brief with its provenance frontmatter, so a completed turn is on disk even if the agent wrote\n * nothing itself.\n */\n\n/** Application-relative root of the store. Also the ONLY path prefix the research predicate admits. */\nexport const RESEARCH_EVIDENCE_RELATIVE_ROOT = 'specifications/research-evidence';\n\n/**\n * A scope names the investigation a set of evidence files belongs to — normally the composite\n * playbook ref (`top_down.compliance-analysis`), so every child of one choreography, across every\n * run of it, consolidates into one directory.\n */\nexport function resolveResearchEvidenceDirectory(saasRoot: string, scope: string): string {\n return join(saasRoot, RESEARCH_EVIDENCE_RELATIVE_ROOT, slugifyEvidenceScope(scope));\n}\n\n/** Directory-safe scope: lowercase, dots and separators to hyphens, nothing traversal-shaped. */\nexport function slugifyEvidenceScope(scope: string): string {\n const slug = scope\n .toLowerCase()\n .replace(/[^a-z0-9]+/g, '-')\n .replace(/^-+|-+$/g, '')\n .slice(0, 80);\n return slug.length > 0 ? slug : 'adhoc';\n}\n\n/**\n * The prompt block that turns \"you may write here\" into \"you consolidate here\".\n *\n * Appended to every research objective by the dispatch, never authored per playbook: the store is a\n * property of the LANE, and a convention restated per method drifts. The instruction is explicit\n * that the directory is the ONLY writable location — the predicate enforces it, but an agent told\n * the boundary spends its turn researching instead of discovering refusals.\n *\n * ## Why it also carries a SOURCE-NEUTRALITY clause (2026-09-04)\n *\n * A compliance researcher enumerating \"which regimes apply\" reaches for proprietary security\n * certification and attestation standards unprompted, alongside the public law that is the actual\n * subject. Public law is fine — statutes and regulations are quotable. The proprietary standards are\n * not: their control catalogues and identifiers are licensed material, and `CLAUDE.md` confines every\n * external framework name, identifier and mapping to a rights-classified boundary that this store is\n * not. `pnpm check:assurance-control-boundary` refuses them repository-wide against a baseline drained\n * to zero, so a dogfood application's committed store is a surface where they land in FRAMEWORK git.\n *\n * That is not hypothetical: Wonder CRM's first accepted evidence population carried six such names —\n * every one of them merely listing the standard as \"voluntary, not a legal obligation, never\n * researched\" — and reddened the gate on the shared branch. The finding survives its neutral phrasing\n * intact, which is why the instruction asks for the CATEGORY rather than forbidding the conclusion:\n * an agent told only \"do not name X\" tends to drop the finding along with the name.\n */\nexport function composeEvidenceStoreInstruction(evidenceDirectoryAbsolutePath: string): string {\n return [\n '# Evidence store (persist as you go)',\n `The directory \\`${evidenceDirectoryAbsolutePath}\\` is your evidence store — the ONLY location you may write to (every other path is refused).`,\n 'FIRST read what it already contains: earlier rounds consolidated their findings there. Extend that record; do not re-research or restate what a prior file already establishes with sources.',\n 'AS YOU RESEARCH, persist your findings into markdown files in that directory — one file per coherent topic, named `<topic-slug>.md`, updated in place as your understanding sharpens. Each finding carries its source URL beside it. Write incrementally: evidence on disk survives an interrupted turn; evidence only in your final message does not.',\n 'SOURCE NEUTRALITY: name public law freely (statutes, regulations, regulator guidance — quote and cite them). Do NOT name a proprietary security certification or attestation standard, or any of its control identifiers, in a file or in your final message: their catalogues are licensed material this store is not a rights-classified boundary for. Refer to that whole class as \"voluntary security-certification and attestation frameworks\" and state your finding about it in full — the conclusion is wanted, the proprietary name is not.',\n 'Your final message still reports the answer in full — the store is the durable record, not a substitute for answering.',\n ].join('\\n');\n}\n\n/** What the companion persists about one COMPLETED research task, beside whatever the agent wrote. */\nexport interface FinalEvidenceRecordInput {\n readonly evidenceDirectoryAbsolutePath: string;\n readonly objective: string;\n readonly evidence: string;\n readonly stopReason: string;\n readonly startedAtIso: string;\n readonly elapsedMs: number;\n /** The playbook that asked, when one did — an operator's ad-hoc `/research` has none. */\n readonly playbookRef?: string;\n}\n\n/**\n * Persist the final returned brief as a dated, provenance-stamped markdown record.\n *\n * Filename is `<yyyy-mm-dd>-round-<n>.md` where `n` disambiguates within a day — deliberately NOT\n * derived from the objective, whose first words are near-identical across rounds of one\n * investigation. Returns the absolute path written, so the caller can report it.\n */\nexport function writeFinalEvidenceRecord(input: FinalEvidenceRecordInput): string {\n mkdirSync(input.evidenceDirectoryAbsolutePath, { recursive: true });\n const day = input.startedAtIso.slice(0, 10);\n const existing = readdirSync(input.evidenceDirectoryAbsolutePath).filter((name) => name.startsWith(`${day}-round-`));\n let round = existing.length + 1;\n let filePath = join(input.evidenceDirectoryAbsolutePath, `${day}-round-${round}.md`);\n while (existsSync(filePath)) {\n round += 1;\n filePath = join(input.evidenceDirectoryAbsolutePath, `${day}-round-${round}.md`);\n }\n const frontmatter = [\n '---',\n `startedAt: ${input.startedAtIso}`,\n `elapsedMs: ${input.elapsedMs}`,\n `stopReason: ${input.stopReason}`,\n ...(input.playbookRef ? [`playbookRef: ${input.playbookRef}`] : []),\n '---',\n ].join('\\n');\n const body = [\n frontmatter,\n '',\n '## Objective',\n '',\n input.objective,\n '',\n '## Evidence',\n '',\n input.evidence,\n '',\n ].join('\\n');\n writeFileSync(filePath, body, 'utf8');\n return filePath;\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"check-label-placeholder-contract.companion.d.ts","sourceRoot":"","sources":["../../../../src/code-compliance-check/check-label-placeholder-contract.companion.ts"],"names":[],"mappings":""}
1
+ {"version":3,"file":"check-label-placeholder-contract.companion.d.ts","sourceRoot":"","sources":["../../../src/code-compliance-check/check-label-placeholder-contract.companion.ts"],"names":[],"mappings":""}
@@ -1 +1 @@
1
- {"version":3,"file":"check-raw-feature-id-literals.companion.d.ts","sourceRoot":"","sources":["../../../../src/code-compliance-check/check-raw-feature-id-literals.companion.ts"],"names":[],"mappings":""}
1
+ {"version":3,"file":"check-raw-feature-id-literals.companion.d.ts","sourceRoot":"","sources":["../../../src/code-compliance-check/check-raw-feature-id-literals.companion.ts"],"names":[],"mappings":""}
@@ -286,8 +286,9 @@ export declare const CompanionExecutionsListQuerySchema: z.ZodObject<{
286
286
  limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
287
287
  }, z.core.$strip>;
288
288
  export declare const CompanionCreateActorExecutionRequestSchema: z.ZodObject<{
289
- systemRef: z.ZodString;
290
289
  status: z.ZodEnum<typeof FlowsActors_Status>;
290
+ finishedAt: z.ZodOptional<z.ZodString>;
291
+ systemRef: z.ZodString;
291
292
  initiator: z.ZodOptional<z.ZodObject<{
292
293
  organizationId: z.ZodOptional<z.ZodString>;
293
294
  userId: z.ZodOptional<z.ZodString>;
@@ -300,7 +301,6 @@ export declare const CompanionCreateActorExecutionRequestSchema: z.ZodObject<{
300
301
  webhookProviderId: z.ZodOptional<z.ZodString>;
301
302
  anonymousUserId: z.ZodOptional<z.ZodString>;
302
303
  }, z.core.$strip>>;
303
- finishedAt: z.ZodOptional<z.ZodString>;
304
304
  plan: z.ZodOptional<z.ZodObject<{
305
305
  _id: z.ZodString;
306
306
  goalDescription: z.ZodString;
@@ -989,8 +989,9 @@ export declare const CompanionCreateActorExecutionRequestSchema: z.ZodObject<{
989
989
  }, z.core.$strip>>>;
990
990
  }, z.core.$strip>;
991
991
  export declare const CompanionCreateFlowExecutionRequestSchema: z.ZodObject<{
992
- systemRef: z.ZodString;
993
992
  status: z.ZodEnum<typeof FlowsActors_Status>;
993
+ finishedAt: z.ZodOptional<z.ZodString>;
994
+ systemRef: z.ZodString;
994
995
  initiator: z.ZodOptional<z.ZodObject<{
995
996
  organizationId: z.ZodOptional<z.ZodString>;
996
997
  userId: z.ZodOptional<z.ZodString>;
@@ -1003,7 +1004,6 @@ export declare const CompanionCreateFlowExecutionRequestSchema: z.ZodObject<{
1003
1004
  webhookProviderId: z.ZodOptional<z.ZodString>;
1004
1005
  anonymousUserId: z.ZodOptional<z.ZodString>;
1005
1006
  }, z.core.$strip>>;
1006
- finishedAt: z.ZodOptional<z.ZodString>;
1007
1007
  errorStates: z.ZodOptional<z.ZodObject<{
1008
1008
  circuitBreakerStatus: z.ZodOptional<z.ZodEnum<typeof import("@wildo-ai/saas-models").FlowsActors_CircuitBreaker_Status>>;
1009
1009
  checkpointChecks: z.ZodArray<z.ZodObject<{
@@ -1104,6 +1104,7 @@ export declare const CompanionActorTasksListQuerySchema: z.ZodObject<{
1104
1104
  limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
1105
1105
  }, z.core.$strip>;
1106
1106
  export declare const CompanionCreateActorTaskRequestSchema: z.ZodObject<{
1107
+ description: z.ZodString;
1107
1108
  output: z.ZodOptional<z.ZodAny>;
1108
1109
  status: z.ZodEnum<typeof FlowsActors_Status>;
1109
1110
  errorStates: z.ZodOptional<z.ZodObject<{
@@ -1205,7 +1206,6 @@ export declare const CompanionCreateActorTaskRequestSchema: z.ZodObject<{
1205
1206
  context: z.ZodOptional<z.ZodAny>;
1206
1207
  }, z.core.$strip>>>;
1207
1208
  }, z.core.$strip>>;
1208
- description: z.ZodString;
1209
1209
  topic: z.ZodEnum<typeof import("@wildo-ai/saas-models").Actor_Task_Topics>;
1210
1210
  actors: z.ZodObject<{
1211
1211
  actorRef: z.ZodString;
@@ -1434,8 +1434,59 @@ export declare const CompanionCreateActorTaskRequestSchema: z.ZodObject<{
1434
1434
  workbenchBuildPlanTaskId: z.ZodOptional<z.ZodString>;
1435
1435
  }, z.core.$strip>;
1436
1436
  export declare const CompanionUpdateActorTaskRequestSchema: z.ZodObject<{
1437
+ description: z.ZodOptional<z.ZodString>;
1437
1438
  output: z.ZodOptional<z.ZodOptional<z.ZodAny>>;
1438
1439
  input: z.ZodOptional<z.ZodAny>;
1440
+ memory: z.ZodOptional<z.ZodObject<{
1441
+ shortTerm: z.ZodObject<{
1442
+ entries: z.ZodArray<z.ZodObject<{
1443
+ key: z.ZodString;
1444
+ value: z.ZodAny;
1445
+ type: z.ZodEnum<{
1446
+ json: "json";
1447
+ text: "text";
1448
+ binary: "binary";
1449
+ }>;
1450
+ timestamp: z.ZodString;
1451
+ expiresAt: z.ZodOptional<z.ZodString>;
1452
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1453
+ }, z.core.$strip>>;
1454
+ maxSize: z.ZodOptional<z.ZodNumber>;
1455
+ ttl: z.ZodOptional<z.ZodNumber>;
1456
+ }, z.core.$strip>;
1457
+ longTerm: z.ZodObject<{
1458
+ entries: z.ZodArray<z.ZodObject<{
1459
+ key: z.ZodString;
1460
+ value: z.ZodAny;
1461
+ type: z.ZodEnum<{
1462
+ json: "json";
1463
+ text: "text";
1464
+ binary: "binary";
1465
+ }>;
1466
+ timestamp: z.ZodString;
1467
+ expiresAt: z.ZodOptional<z.ZodString>;
1468
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1469
+ }, z.core.$strip>>;
1470
+ maxSize: z.ZodOptional<z.ZodNumber>;
1471
+ ttl: z.ZodOptional<z.ZodNumber>;
1472
+ }, z.core.$strip>;
1473
+ working: z.ZodObject<{
1474
+ entries: z.ZodArray<z.ZodObject<{
1475
+ key: z.ZodString;
1476
+ value: z.ZodAny;
1477
+ type: z.ZodEnum<{
1478
+ json: "json";
1479
+ text: "text";
1480
+ binary: "binary";
1481
+ }>;
1482
+ timestamp: z.ZodString;
1483
+ expiresAt: z.ZodOptional<z.ZodString>;
1484
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1485
+ }, z.core.$strip>>;
1486
+ maxSize: z.ZodOptional<z.ZodNumber>;
1487
+ ttl: z.ZodOptional<z.ZodNumber>;
1488
+ }, z.core.$strip>;
1489
+ }, z.core.$strip>>;
1439
1490
  status: z.ZodOptional<z.ZodEnum<typeof FlowsActors_Status>>;
1440
1491
  initiator: z.ZodOptional<z.ZodObject<{
1441
1492
  organizationId: z.ZodOptional<z.ZodString>;
@@ -1548,8 +1599,6 @@ export declare const CompanionUpdateActorTaskRequestSchema: z.ZodObject<{
1548
1599
  context: z.ZodOptional<z.ZodAny>;
1549
1600
  }, z.core.$strip>>>;
1550
1601
  }, z.core.$strip>>>;
1551
- description: z.ZodOptional<z.ZodString>;
1552
- topic: z.ZodOptional<z.ZodEnum<typeof import("@wildo-ai/saas-models").Actor_Task_Topics>>;
1553
1602
  relationships: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1554
1603
  kind: z.ZodLiteral<import("@wildo-ai/saas-models").FlowsActors_ElementKind.FLOW>;
1555
1604
  relation: z.ZodEnum<typeof import("@wildo-ai/saas-models").FlowsActors_Relation>;
@@ -1585,59 +1634,10 @@ export declare const CompanionUpdateActorTaskRequestSchema: z.ZodObject<{
1585
1634
  relation: z.ZodEnum<typeof import("@wildo-ai/saas-models").FlowsActors_Relation>;
1586
1635
  actorSystemId: z.ZodString;
1587
1636
  }, z.core.$strip>], "kind">>>;
1637
+ topic: z.ZodOptional<z.ZodEnum<typeof import("@wildo-ai/saas-models").Actor_Task_Topics>>;
1588
1638
  actors: z.ZodOptional<z.ZodObject<{
1589
1639
  actorRef: z.ZodString;
1590
1640
  }, z.core.$strip>>;
1591
- memory: z.ZodOptional<z.ZodObject<{
1592
- shortTerm: z.ZodObject<{
1593
- entries: z.ZodArray<z.ZodObject<{
1594
- key: z.ZodString;
1595
- value: z.ZodAny;
1596
- type: z.ZodEnum<{
1597
- json: "json";
1598
- text: "text";
1599
- binary: "binary";
1600
- }>;
1601
- timestamp: z.ZodString;
1602
- expiresAt: z.ZodOptional<z.ZodString>;
1603
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1604
- }, z.core.$strip>>;
1605
- maxSize: z.ZodOptional<z.ZodNumber>;
1606
- ttl: z.ZodOptional<z.ZodNumber>;
1607
- }, z.core.$strip>;
1608
- longTerm: z.ZodObject<{
1609
- entries: z.ZodArray<z.ZodObject<{
1610
- key: z.ZodString;
1611
- value: z.ZodAny;
1612
- type: z.ZodEnum<{
1613
- json: "json";
1614
- text: "text";
1615
- binary: "binary";
1616
- }>;
1617
- timestamp: z.ZodString;
1618
- expiresAt: z.ZodOptional<z.ZodString>;
1619
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1620
- }, z.core.$strip>>;
1621
- maxSize: z.ZodOptional<z.ZodNumber>;
1622
- ttl: z.ZodOptional<z.ZodNumber>;
1623
- }, z.core.$strip>;
1624
- working: z.ZodObject<{
1625
- entries: z.ZodArray<z.ZodObject<{
1626
- key: z.ZodString;
1627
- value: z.ZodAny;
1628
- type: z.ZodEnum<{
1629
- json: "json";
1630
- text: "text";
1631
- binary: "binary";
1632
- }>;
1633
- timestamp: z.ZodString;
1634
- expiresAt: z.ZodOptional<z.ZodString>;
1635
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1636
- }, z.core.$strip>>;
1637
- maxSize: z.ZodOptional<z.ZodNumber>;
1638
- ttl: z.ZodOptional<z.ZodNumber>;
1639
- }, z.core.$strip>;
1640
- }, z.core.$strip>>;
1641
1641
  artifacts: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1642
1642
  ref: z.ZodString;
1643
1643
  definitionRef: z.ZodOptional<z.ZodString>;
@@ -1 +1 @@
1
- {"version":3,"file":"companion-api.schemas.d.ts","sourceRoot":"","sources":["../../../../src/companion-api/companion-api.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAIL,kBAAkB,EACnB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EACL,4CAA4C,EAC5C,sCAAsC,EACtC,+CAA+C,EAC/C,uCAAuC,EACvC,uCAAuC,EACxC,MAAM,6DAA6D,CAAC;AAgBrE;;;;GAIG;AAMH;;;;;oEAKoE;AAIpE,eAAO,MAAM,eAAe,EAAE,CAAC,CAAC,SAAS,CAAC;IACxC,IAAI,EAAE,CAAC,CAAC,SAAS,CAAC;IAClB,WAAW,EAAE,CAAC,CAAC,UAAU,CAAC;IAC1B,IAAI,EAAE,CAAC,CAAC,SAAS,CAAC;CACnB,CAOC,CAAC;AAOH,eAAO,MAAM,mCAAmC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0B9C,CAAC;AA0BH,eAAO,MAAM,kCAAkC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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
@@ -1 +1 @@
1
- {"version":3,"file":"companion-i18n-api-contract.utils.d.ts","sourceRoot":"","sources":["../../../../../src/companion-api/controllers/companion-i18n-api-contract.utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,qCAAqC,CAAC;AAExE,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,4BAA4B,CAAC;AAE7E,wBAAgB,gCAAgC,CAC9C,KAAK,EAAE,MAAM,EACb,SAAS,EAAE,MAAM,EACjB,YAAY,EAAE,0BAA0B,GACvC,iBAAiB,CAWnB;AAED,wBAAgB,2BAA2B,CACzC,KAAK,EAAE,OAAO,EACd,YAAY,EAAE,0BAA0B,GACvC,iBAAiB,EAAE,CASrB;AAED,wBAAgB,yBAAyB,CACvC,aAAa,EAAE,iBAAiB,EAAE,EAClC,aAAa,EAAE,iBAAiB,EAChC,YAAY,EAAE,0BAA0B,GACvC,IAAI,CAON;AAED,wBAAgB,oCAAoC,CAClD,MAAM,EAAE;IAAE,OAAO,CAAC,EAAE,OAAO,CAAC;IAAC,KAAK,CAAC,EAAE,MAAM,CAAA;CAAE,EAC7C,OAAO,EAAE;IACP,WAAW,EAAE,MAAM,CAAC;IACpB,MAAM,EAAE,iBAAiB,CAAC;IAC1B,cAAc,EAAE,MAAM,CAAC;CACxB,EACD,YAAY,EAAE,0BAA0B,GACvC,IAAI,CAcN"}
1
+ {"version":3,"file":"companion-i18n-api-contract.utils.d.ts","sourceRoot":"","sources":["../../../../src/companion-api/controllers/companion-i18n-api-contract.utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,qCAAqC,CAAC;AAExE,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,4BAA4B,CAAC;AAE7E,wBAAgB,gCAAgC,CAC9C,KAAK,EAAE,MAAM,EACb,SAAS,EAAE,MAAM,EACjB,YAAY,EAAE,0BAA0B,GACvC,iBAAiB,CAWnB;AAED,wBAAgB,2BAA2B,CACzC,KAAK,EAAE,OAAO,EACd,YAAY,EAAE,0BAA0B,GACvC,iBAAiB,EAAE,CASrB;AAED,wBAAgB,yBAAyB,CACvC,aAAa,EAAE,iBAAiB,EAAE,EAClC,aAAa,EAAE,iBAAiB,EAChC,YAAY,EAAE,0BAA0B,GACvC,IAAI,CAON;AAED,wBAAgB,oCAAoC,CAClD,MAAM,EAAE;IAAE,OAAO,CAAC,EAAE,OAAO,CAAC;IAAC,KAAK,CAAC,EAAE,MAAM,CAAA;CAAE,EAC7C,OAAO,EAAE;IACP,WAAW,EAAE,MAAM,CAAC;IACpB,MAAM,EAAE,iBAAiB,CAAC;IAC1B,cAAc,EAAE,MAAM,CAAC;CACxB,EACD,YAAY,EAAE,0BAA0B,GACvC,IAAI,CAcN"}