@wildo-ai/dev-companion 1.1.13 → 1.1.15

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 (363) hide show
  1. package/dist/esm/.tsbuildinfo +1 -1
  2. package/dist/esm/claude-cli/models/coding-agent-dispatch.models.d.ts +89 -1
  3. package/dist/esm/claude-cli/models/coding-agent-dispatch.models.d.ts.map +1 -1
  4. package/dist/esm/claude-cli/models/coding-agent-dispatch.models.js +114 -9
  5. package/dist/esm/claude-cli/models/coding-agent-dispatch.models.js.map +1 -1
  6. package/dist/esm/claude-cli/models/concurrent-coding-runs.models.d.ts +46 -1
  7. package/dist/esm/claude-cli/models/concurrent-coding-runs.models.d.ts.map +1 -1
  8. package/dist/esm/claude-cli/models/concurrent-coding-runs.models.js +39 -2
  9. package/dist/esm/claude-cli/models/concurrent-coding-runs.models.js.map +1 -1
  10. package/dist/esm/claude-cli/models/shared-tree-reconciliation.models.d.ts +6 -0
  11. package/dist/esm/claude-cli/models/shared-tree-reconciliation.models.d.ts.map +1 -1
  12. package/dist/esm/claude-cli/models/shared-tree-reconciliation.models.js.map +1 -1
  13. package/dist/esm/claude-cli/models/verification-tool-availability.models.d.ts +19 -5
  14. package/dist/esm/claude-cli/models/verification-tool-availability.models.d.ts.map +1 -1
  15. package/dist/esm/claude-cli/models/verification-tool-availability.models.js +17 -5
  16. package/dist/esm/claude-cli/models/verification-tool-availability.models.js.map +1 -1
  17. package/dist/esm/claude-cli/services/accepted-change-commit.companion.service.d.ts +16 -1
  18. package/dist/esm/claude-cli/services/accepted-change-commit.companion.service.d.ts.map +1 -1
  19. package/dist/esm/claude-cli/services/accepted-change-commit.companion.service.js +53 -6
  20. package/dist/esm/claude-cli/services/accepted-change-commit.companion.service.js.map +1 -1
  21. package/dist/esm/claude-cli/services/coding-agent-dispatch.companion.service.d.ts +145 -6
  22. package/dist/esm/claude-cli/services/coding-agent-dispatch.companion.service.d.ts.map +1 -1
  23. package/dist/esm/claude-cli/services/coding-agent-dispatch.companion.service.js +474 -47
  24. package/dist/esm/claude-cli/services/coding-agent-dispatch.companion.service.js.map +1 -1
  25. package/dist/esm/claude-cli/services/git-change-set.companion.service.d.ts +6 -2
  26. package/dist/esm/claude-cli/services/git-change-set.companion.service.d.ts.map +1 -1
  27. package/dist/esm/claude-cli/services/git-change-set.companion.service.js +16 -39
  28. package/dist/esm/claude-cli/services/git-change-set.companion.service.js.map +1 -1
  29. package/dist/esm/claude-cli/services/research-evidence-store.companion.d.ts +14 -0
  30. package/dist/esm/claude-cli/services/research-evidence-store.companion.d.ts.map +1 -1
  31. package/dist/esm/claude-cli/services/research-evidence-store.companion.js +35 -0
  32. package/dist/esm/claude-cli/services/research-evidence-store.companion.js.map +1 -1
  33. package/dist/esm/claude-cli/services/unrecorded-provider-directories.companion.d.ts +36 -0
  34. package/dist/esm/claude-cli/services/unrecorded-provider-directories.companion.d.ts.map +1 -0
  35. package/dist/esm/claude-cli/services/unrecorded-provider-directories.companion.js +134 -0
  36. package/dist/esm/claude-cli/services/unrecorded-provider-directories.companion.js.map +1 -0
  37. package/dist/esm/code-compliance-check/check-raw-feature-id-literals.companion.js +31 -2
  38. package/dist/esm/code-compliance-check/check-raw-feature-id-literals.companion.js.map +1 -1
  39. package/dist/esm/companion-api/companion-api.schemas.d.ts +2 -0
  40. package/dist/esm/companion-api/companion-api.schemas.d.ts.map +1 -1
  41. package/dist/esm/companion-api/companion-api.schemas.js +8 -0
  42. package/dist/esm/companion-api/companion-api.schemas.js.map +1 -1
  43. package/dist/esm/companion-api/controllers/companion.controller.d.ts +7 -0
  44. package/dist/esm/companion-api/controllers/companion.controller.d.ts.map +1 -1
  45. package/dist/esm/companion-api/controllers/companion.controller.js +26 -12
  46. package/dist/esm/companion-api/controllers/companion.controller.js.map +1 -1
  47. package/dist/esm/companion-api/controllers/long-held-request.companion.d.ts +17 -0
  48. package/dist/esm/companion-api/controllers/long-held-request.companion.d.ts.map +1 -0
  49. package/dist/esm/companion-api/controllers/long-held-request.companion.js +33 -0
  50. package/dist/esm/companion-api/controllers/long-held-request.companion.js.map +1 -0
  51. package/dist/esm/core/introspection/resources/creation-home-projection.companion.d.ts +9 -0
  52. package/dist/esm/core/introspection/resources/creation-home-projection.companion.d.ts.map +1 -1
  53. package/dist/esm/core/introspection/resources/creation-home-projection.companion.js +12 -0
  54. package/dist/esm/core/introspection/resources/creation-home-projection.companion.js.map +1 -1
  55. package/dist/esm/core/introspection/resources/creation-plane-projection.companion.service.d.ts.map +1 -1
  56. package/dist/esm/core/introspection/resources/creation-plane-projection.companion.service.js +7 -1
  57. package/dist/esm/core/introspection/resources/creation-plane-projection.companion.service.js.map +1 -1
  58. package/dist/esm/core/introspection/services/introspection-source-state.companion.service.d.ts +8 -20
  59. package/dist/esm/core/introspection/services/introspection-source-state.companion.service.d.ts.map +1 -1
  60. package/dist/esm/core/introspection/services/introspection-source-state.companion.service.js +37 -142
  61. package/dist/esm/core/introspection/services/introspection-source-state.companion.service.js.map +1 -1
  62. package/dist/esm/core/introspection/services/introspection-source-walk.worker.d.ts +64 -0
  63. package/dist/esm/core/introspection/services/introspection-source-walk.worker.d.ts.map +1 -0
  64. package/dist/esm/core/introspection/services/introspection-source-walk.worker.js +304 -0
  65. package/dist/esm/core/introspection/services/introspection-source-walk.worker.js.map +1 -0
  66. package/dist/esm/core/introspection/services/translation-placement.companion.service.d.ts +3 -2
  67. package/dist/esm/core/introspection/services/translation-placement.companion.service.d.ts.map +1 -1
  68. package/dist/esm/core/introspection/services/translation-placement.companion.service.js.map +1 -1
  69. package/dist/esm/core/introspection/subprocess/companion-introspection-behavior-handlers.d.ts.map +1 -1
  70. package/dist/esm/core/introspection/subprocess/companion-introspection-behavior-handlers.js +24 -14
  71. package/dist/esm/core/introspection/subprocess/companion-introspection-behavior-handlers.js.map +1 -1
  72. package/dist/esm/core/introspection/workspace-element-index.companion.d.ts +42 -0
  73. package/dist/esm/core/introspection/workspace-element-index.companion.d.ts.map +1 -1
  74. package/dist/esm/core/introspection/workspace-element-index.companion.js +42 -0
  75. package/dist/esm/core/introspection/workspace-element-index.companion.js.map +1 -1
  76. package/dist/esm/core/runtime/companion-language-model-route.d.ts +16 -1
  77. package/dist/esm/core/runtime/companion-language-model-route.d.ts.map +1 -1
  78. package/dist/esm/core/runtime/companion-language-model-route.js +23 -1
  79. package/dist/esm/core/runtime/companion-language-model-route.js.map +1 -1
  80. package/dist/esm/core/runtime/dev-compile-quiet.companion.d.ts +53 -0
  81. package/dist/esm/core/runtime/dev-compile-quiet.companion.d.ts.map +1 -1
  82. package/dist/esm/core/runtime/dev-compile-quiet.companion.js +119 -2
  83. package/dist/esm/core/runtime/dev-compile-quiet.companion.js.map +1 -1
  84. package/dist/esm/core/runtime/services/start-companion-application.service.d.ts.map +1 -1
  85. package/dist/esm/core/runtime/services/start-companion-application.service.js +16 -3
  86. package/dist/esm/core/runtime/services/start-companion-application.service.js.map +1 -1
  87. package/dist/esm/core/runtime/utils/companion-platform-config.companion.d.ts +2 -2
  88. package/dist/esm/core/runtime/utils/companion-platform-config.companion.d.ts.map +1 -1
  89. package/dist/esm/core/runtime/utils/companion-platform-config.companion.js +6 -6
  90. package/dist/esm/core/runtime/utils/companion-platform-config.companion.js.map +1 -1
  91. package/dist/esm/core/utils/git-read-broker.companion.d.ts +62 -0
  92. package/dist/esm/core/utils/git-read-broker.companion.d.ts.map +1 -0
  93. package/dist/esm/core/utils/git-read-broker.companion.js +282 -0
  94. package/dist/esm/core/utils/git-read-broker.companion.js.map +1 -0
  95. package/dist/esm/core/utils/local-write-recording.companion.d.ts +8 -1
  96. package/dist/esm/core/utils/local-write-recording.companion.d.ts.map +1 -1
  97. package/dist/esm/core/utils/local-write-recording.companion.js +7 -23
  98. package/dist/esm/core/utils/local-write-recording.companion.js.map +1 -1
  99. package/dist/esm/email/services/email-template.companion.service.d.ts +5 -0
  100. package/dist/esm/email/services/email-template.companion.service.d.ts.map +1 -1
  101. package/dist/esm/email/services/email-template.companion.service.js +44 -11
  102. package/dist/esm/email/services/email-template.companion.service.js.map +1 -1
  103. package/dist/esm/email/utils/email-template-fs-discovery.utils.d.ts +26 -2
  104. package/dist/esm/email/utils/email-template-fs-discovery.utils.d.ts.map +1 -1
  105. package/dist/esm/email/utils/email-template-fs-discovery.utils.js +41 -2
  106. package/dist/esm/email/utils/email-template-fs-discovery.utils.js.map +1 -1
  107. package/dist/esm/email/utils/email-template-scanner-calls.companion.utils.d.ts +19 -0
  108. package/dist/esm/email/utils/email-template-scanner-calls.companion.utils.d.ts.map +1 -0
  109. package/dist/esm/email/utils/email-template-scanner-calls.companion.utils.js +171 -0
  110. package/dist/esm/email/utils/email-template-scanner-calls.companion.utils.js.map +1 -0
  111. package/dist/esm/email/utils/module-email-root.companion.utils.d.ts +75 -0
  112. package/dist/esm/email/utils/module-email-root.companion.utils.d.ts.map +1 -0
  113. package/dist/esm/email/utils/module-email-root.companion.utils.js +162 -0
  114. package/dist/esm/email/utils/module-email-root.companion.utils.js.map +1 -0
  115. package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_CHART_DASHBOARD_LAYOUT_EDITOR.en.d.ts +29 -0
  116. package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_CHART_DASHBOARD_LAYOUT_EDITOR.en.d.ts.map +1 -0
  117. package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_CHART_DASHBOARD_LAYOUT_EDITOR.en.js +29 -0
  118. package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_CHART_DASHBOARD_LAYOUT_EDITOR.en.js.map +1 -0
  119. package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_CHART_DASHBOARD_LAYOUT_EDITOR.fr.d.ts +29 -0
  120. package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_CHART_DASHBOARD_LAYOUT_EDITOR.fr.d.ts.map +1 -0
  121. package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_CHART_DASHBOARD_LAYOUT_EDITOR.fr.js +29 -0
  122. package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_CHART_DASHBOARD_LAYOUT_EDITOR.fr.js.map +1 -0
  123. package/dist/esm/i18n/components/LOW_LEVEL_AI_AGENT_CONFIG.en.d.ts +1 -0
  124. package/dist/esm/i18n/components/LOW_LEVEL_AI_AGENT_CONFIG.en.d.ts.map +1 -1
  125. package/dist/esm/i18n/components/LOW_LEVEL_AI_AGENT_CONFIG.en.js +1 -0
  126. package/dist/esm/i18n/components/LOW_LEVEL_AI_AGENT_CONFIG.en.js.map +1 -1
  127. package/dist/esm/i18n/components/LOW_LEVEL_AI_AGENT_CONFIG.fr.d.ts +1 -0
  128. package/dist/esm/i18n/components/LOW_LEVEL_AI_AGENT_CONFIG.fr.d.ts.map +1 -1
  129. package/dist/esm/i18n/components/LOW_LEVEL_AI_AGENT_CONFIG.fr.js +1 -0
  130. package/dist/esm/i18n/components/LOW_LEVEL_AI_AGENT_CONFIG.fr.js.map +1 -1
  131. package/dist/esm/i18n/components/LOW_LEVEL_AI_APPROVAL.en.d.ts +1 -0
  132. package/dist/esm/i18n/components/LOW_LEVEL_AI_APPROVAL.en.d.ts.map +1 -1
  133. package/dist/esm/i18n/components/LOW_LEVEL_AI_APPROVAL.en.js +2 -1
  134. package/dist/esm/i18n/components/LOW_LEVEL_AI_APPROVAL.en.js.map +1 -1
  135. package/dist/esm/i18n/components/LOW_LEVEL_AI_APPROVAL.fr.d.ts +1 -0
  136. package/dist/esm/i18n/components/LOW_LEVEL_AI_APPROVAL.fr.d.ts.map +1 -1
  137. package/dist/esm/i18n/components/LOW_LEVEL_AI_APPROVAL.fr.js +2 -1
  138. package/dist/esm/i18n/components/LOW_LEVEL_AI_APPROVAL.fr.js.map +1 -1
  139. package/dist/esm/i18n/components/LOW_LEVEL_AI_CONVERSATION_THREAD.en.d.ts +5 -2
  140. package/dist/esm/i18n/components/LOW_LEVEL_AI_CONVERSATION_THREAD.en.d.ts.map +1 -1
  141. package/dist/esm/i18n/components/LOW_LEVEL_AI_CONVERSATION_THREAD.en.js +5 -2
  142. package/dist/esm/i18n/components/LOW_LEVEL_AI_CONVERSATION_THREAD.en.js.map +1 -1
  143. package/dist/esm/i18n/components/LOW_LEVEL_AI_CONVERSATION_THREAD.fr.d.ts +5 -2
  144. package/dist/esm/i18n/components/LOW_LEVEL_AI_CONVERSATION_THREAD.fr.d.ts.map +1 -1
  145. package/dist/esm/i18n/components/LOW_LEVEL_AI_CONVERSATION_THREAD.fr.js +5 -2
  146. package/dist/esm/i18n/components/LOW_LEVEL_AI_CONVERSATION_THREAD.fr.js.map +1 -1
  147. package/dist/esm/i18n/components/LOW_LEVEL_APPROVAL_SEAL.en.d.ts +41 -0
  148. package/dist/esm/i18n/components/LOW_LEVEL_APPROVAL_SEAL.en.d.ts.map +1 -0
  149. package/dist/esm/i18n/components/LOW_LEVEL_APPROVAL_SEAL.en.js +41 -0
  150. package/dist/esm/i18n/components/LOW_LEVEL_APPROVAL_SEAL.en.js.map +1 -0
  151. package/dist/esm/i18n/components/LOW_LEVEL_APPROVAL_SEAL.fr.d.ts +41 -0
  152. package/dist/esm/i18n/components/LOW_LEVEL_APPROVAL_SEAL.fr.d.ts.map +1 -0
  153. package/dist/esm/i18n/components/LOW_LEVEL_APPROVAL_SEAL.fr.js +41 -0
  154. package/dist/esm/i18n/components/LOW_LEVEL_APPROVAL_SEAL.fr.js.map +1 -0
  155. package/dist/esm/i18n/components/LOW_LEVEL_CONTENT_SECTION_CONTAINER.en.d.ts +1 -0
  156. package/dist/esm/i18n/components/LOW_LEVEL_CONTENT_SECTION_CONTAINER.en.d.ts.map +1 -1
  157. package/dist/esm/i18n/components/LOW_LEVEL_CONTENT_SECTION_CONTAINER.en.js +2 -1
  158. package/dist/esm/i18n/components/LOW_LEVEL_CONTENT_SECTION_CONTAINER.en.js.map +1 -1
  159. package/dist/esm/i18n/components/LOW_LEVEL_CONTENT_SECTION_CONTAINER.fr.d.ts +1 -0
  160. package/dist/esm/i18n/components/LOW_LEVEL_CONTENT_SECTION_CONTAINER.fr.d.ts.map +1 -1
  161. package/dist/esm/i18n/components/LOW_LEVEL_CONTENT_SECTION_CONTAINER.fr.js +2 -1
  162. package/dist/esm/i18n/components/LOW_LEVEL_CONTENT_SECTION_CONTAINER.fr.js.map +1 -1
  163. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_STRING.en.d.ts +1 -0
  164. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_STRING.en.d.ts.map +1 -1
  165. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_STRING.en.js +2 -1
  166. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_STRING.en.js.map +1 -1
  167. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_STRING.fr.d.ts +1 -0
  168. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_STRING.fr.d.ts.map +1 -1
  169. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_STRING.fr.js +2 -1
  170. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_STRING.fr.js.map +1 -1
  171. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_MFA_CHALLENGE.en.d.ts +1 -0
  172. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_MFA_CHALLENGE.en.d.ts.map +1 -1
  173. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_MFA_CHALLENGE.en.js +2 -1
  174. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_MFA_CHALLENGE.en.js.map +1 -1
  175. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_MFA_CHALLENGE.fr.d.ts +1 -0
  176. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_MFA_CHALLENGE.fr.d.ts.map +1 -1
  177. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_MFA_CHALLENGE.fr.js +2 -1
  178. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_MFA_CHALLENGE.fr.js.map +1 -1
  179. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_TERMS.en.d.ts +2 -0
  180. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_TERMS.en.d.ts.map +1 -1
  181. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_TERMS.en.js +3 -1
  182. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_TERMS.en.js.map +1 -1
  183. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_TERMS.fr.d.ts +2 -0
  184. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_TERMS.fr.d.ts.map +1 -1
  185. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_TERMS.fr.js +3 -1
  186. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_TERMS.fr.js.map +1 -1
  187. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_AUTH.en.d.ts +1 -1
  188. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_AUTH.en.js +1 -1
  189. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_AUTH.en.js.map +1 -1
  190. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_AUTH.fr.d.ts +1 -1
  191. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_AUTH.fr.js +1 -1
  192. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_AUTH.fr.js.map +1 -1
  193. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_FILTERS.en.d.ts +2 -0
  194. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_FILTERS.en.d.ts.map +1 -1
  195. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_FILTERS.en.js +3 -1
  196. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_FILTERS.en.js.map +1 -1
  197. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_FILTERS.fr.d.ts +3 -1
  198. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_FILTERS.fr.d.ts.map +1 -1
  199. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_FILTERS.fr.js +4 -2
  200. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_FILTERS.fr.js.map +1 -1
  201. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_LIST.en.d.ts +17 -0
  202. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_LIST.en.d.ts.map +1 -1
  203. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_LIST.en.js +18 -1
  204. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_LIST.en.js.map +1 -1
  205. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_LIST.fr.d.ts +17 -0
  206. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_LIST.fr.d.ts.map +1 -1
  207. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_LIST.fr.js +18 -1
  208. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_LIST.fr.js.map +1 -1
  209. package/dist/esm/i18n/composite_views/app.creation-conversation.fr.d.ts +206 -195
  210. package/dist/esm/i18n/composite_views/app.creation-conversation.fr.d.ts.map +1 -1
  211. package/dist/esm/i18n/composite_views/app.creation-conversation.fr.js +206 -195
  212. package/dist/esm/i18n/composite_views/app.creation-conversation.fr.js.map +1 -1
  213. package/dist/esm/i18n/composite_views/app.creation-dossier.fr.d.ts +10 -0
  214. package/dist/esm/i18n/composite_views/app.creation-dossier.fr.d.ts.map +1 -1
  215. package/dist/esm/i18n/composite_views/app.creation-dossier.fr.js +12 -2
  216. package/dist/esm/i18n/composite_views/app.creation-dossier.fr.js.map +1 -1
  217. package/dist/esm/i18n/resources/wildoApplicationActorSystemExecutions.fr.d.ts +70 -0
  218. package/dist/esm/i18n/resources/wildoApplicationActorSystemExecutions.fr.d.ts.map +1 -1
  219. package/dist/esm/i18n/resources/wildoApplicationActorSystemExecutions.fr.js +70 -0
  220. package/dist/esm/i18n/resources/wildoApplicationActorSystemExecutions.fr.js.map +1 -1
  221. package/dist/esm/i18n/resources/wildoApplicationActorTasks.fr.d.ts +12 -2
  222. package/dist/esm/i18n/resources/wildoApplicationActorTasks.fr.d.ts.map +1 -1
  223. package/dist/esm/i18n/resources/wildoApplicationActorTasks.fr.js +12 -2
  224. package/dist/esm/i18n/resources/wildoApplicationActorTasks.fr.js.map +1 -1
  225. package/dist/esm/i18n/resources/wildoApplicationFlowSystemExecutions.fr.d.ts +10 -0
  226. package/dist/esm/i18n/resources/wildoApplicationFlowSystemExecutions.fr.d.ts.map +1 -1
  227. package/dist/esm/i18n/resources/wildoApplicationFlowSystemExecutions.fr.js +10 -0
  228. package/dist/esm/i18n/resources/wildoApplicationFlowSystemExecutions.fr.js.map +1 -1
  229. package/dist/esm/i18n/resources/workbenchAspects.en.d.ts.map +1 -1
  230. package/dist/esm/i18n/resources/workbenchAspects.en.js +4 -0
  231. package/dist/esm/i18n/resources/workbenchAspects.en.js.map +1 -1
  232. package/dist/esm/i18n/resources/workbenchBuildDispatchPlan.fr.d.ts +25 -20
  233. package/dist/esm/i18n/resources/workbenchBuildDispatchPlan.fr.d.ts.map +1 -1
  234. package/dist/esm/i18n/resources/workbenchBuildDispatchPlan.fr.js +25 -20
  235. package/dist/esm/i18n/resources/workbenchBuildDispatchPlan.fr.js.map +1 -1
  236. package/dist/esm/i18n/resources/workbenchBuildPlanTasks.fr.d.ts +32 -32
  237. package/dist/esm/i18n/resources/workbenchBuildPlanTasks.fr.js +32 -32
  238. package/dist/esm/i18n/resources/workbenchBuildPlanTasks.fr.js.map +1 -1
  239. package/dist/esm/i18n/resources/workbenchBuildTaskRecords.fr.d.ts +65 -65
  240. package/dist/esm/i18n/resources/workbenchBuildTaskRecords.fr.js +65 -65
  241. package/dist/esm/i18n/resources/workbenchBuildTaskRecords.fr.js.map +1 -1
  242. package/dist/esm/i18n/resources/workbenchDossierEntries.fr.d.ts +20 -0
  243. package/dist/esm/i18n/resources/workbenchDossierEntries.fr.d.ts.map +1 -1
  244. package/dist/esm/i18n/resources/workbenchDossierEntries.fr.js +20 -0
  245. package/dist/esm/i18n/resources/workbenchDossierEntries.fr.js.map +1 -1
  246. package/dist/esm/i18n/resources/workbenchGovernanceQuestions.fr.d.ts +12 -0
  247. package/dist/esm/i18n/resources/workbenchGovernanceQuestions.fr.d.ts.map +1 -1
  248. package/dist/esm/i18n/resources/workbenchGovernanceQuestions.fr.js +13 -1
  249. package/dist/esm/i18n/resources/workbenchGovernanceQuestions.fr.js.map +1 -1
  250. package/dist/esm/i18n/resources/workbenchSpecificationArtifacts.en.d.ts +35 -0
  251. package/dist/esm/i18n/resources/workbenchSpecificationArtifacts.en.d.ts.map +1 -1
  252. package/dist/esm/i18n/resources/workbenchSpecificationArtifacts.en.js +12 -0
  253. package/dist/esm/i18n/resources/workbenchSpecificationArtifacts.en.js.map +1 -1
  254. package/dist/esm/i18n/resources/workbenchSpecificationArtifacts.fr.d.ts +536 -531
  255. package/dist/esm/i18n/resources/workbenchSpecificationArtifacts.fr.d.ts.map +1 -1
  256. package/dist/esm/i18n/resources/workbenchSpecificationArtifacts.fr.js +536 -531
  257. package/dist/esm/i18n/resources/workbenchSpecificationArtifacts.fr.js.map +1 -1
  258. package/dist/esm/i18n/system_enums/application-creation.fr.d.ts +170 -170
  259. package/dist/esm/i18n/system_enums/application-creation.fr.js +170 -170
  260. package/dist/esm/i18n/system_enums/application-creation.fr.js.map +1 -1
  261. package/dist/esm/i18n/system_enums/flows-actors.fr.d.ts +22 -22
  262. package/dist/esm/i18n/system_enums/flows-actors.fr.js +22 -22
  263. package/dist/esm/i18n/system_enums/flows-actors.fr.js.map +1 -1
  264. package/dist/esm/i18n/system_enums/run-records.fr.d.ts +21 -21
  265. package/dist/esm/i18n/system_enums/run-records.fr.js +21 -21
  266. package/dist/esm/i18n/system_enums/run-records.fr.js.map +1 -1
  267. package/dist/esm/i18n/system_enums/workbench-build.en.d.ts +3 -2
  268. package/dist/esm/i18n/system_enums/workbench-build.en.d.ts.map +1 -1
  269. package/dist/esm/i18n/system_enums/workbench-build.en.js +3 -2
  270. package/dist/esm/i18n/system_enums/workbench-build.en.js.map +1 -1
  271. package/dist/esm/i18n/system_enums/workbench-build.fr.d.ts +37 -33
  272. package/dist/esm/i18n/system_enums/workbench-build.fr.d.ts.map +1 -1
  273. package/dist/esm/i18n/system_enums/workbench-build.fr.js +37 -33
  274. package/dist/esm/i18n/system_enums/workbench-build.fr.js.map +1 -1
  275. package/dist/esm/i18n/system_enums/workbench-creation-home.en.d.ts +1 -0
  276. package/dist/esm/i18n/system_enums/workbench-creation-home.en.d.ts.map +1 -1
  277. package/dist/esm/i18n/system_enums/workbench-creation-home.en.js +1 -0
  278. package/dist/esm/i18n/system_enums/workbench-creation-home.en.js.map +1 -1
  279. package/dist/esm/i18n/system_enums/workbench-creation-home.fr.d.ts +18 -17
  280. package/dist/esm/i18n/system_enums/workbench-creation-home.fr.d.ts.map +1 -1
  281. package/dist/esm/i18n/system_enums/workbench-creation-home.fr.js +18 -17
  282. package/dist/esm/i18n/system_enums/workbench-creation-home.fr.js.map +1 -1
  283. package/dist/esm/i18n/system_enums/workbench-dossier.fr.d.ts +7 -5
  284. package/dist/esm/i18n/system_enums/workbench-dossier.fr.d.ts.map +1 -1
  285. package/dist/esm/i18n/system_enums/workbench-dossier.fr.js +8 -6
  286. package/dist/esm/i18n/system_enums/workbench-dossier.fr.js.map +1 -1
  287. package/dist/esm/i18n/system_enums/workbench-secrets.fr.d.ts +12 -12
  288. package/dist/esm/i18n/system_enums/workbench-secrets.fr.js +12 -12
  289. package/dist/esm/i18n/system_enums/workbench-secrets.fr.js.map +1 -1
  290. package/dist/esm/i18n/system_enums/workbench-specification-artifact.fr.d.ts +1 -0
  291. package/dist/esm/i18n/system_enums/workbench-specification-artifact.fr.d.ts.map +1 -1
  292. package/dist/esm/i18n/system_enums/workbench-specification-artifact.fr.js +2 -1
  293. package/dist/esm/i18n/system_enums/workbench-specification-artifact.fr.js.map +1 -1
  294. package/dist/esm/i18n-labelling/services/email-template-labelling-units.companion.service.d.ts.map +1 -1
  295. package/dist/esm/i18n-labelling/services/email-template-labelling-units.companion.service.js +7 -3
  296. package/dist/esm/i18n-labelling/services/email-template-labelling-units.companion.service.js.map +1 -1
  297. package/dist/esm/i18n-labelling/services/labelling-planner.companion.service.d.ts.map +1 -1
  298. package/dist/esm/i18n-labelling/services/labelling-planner.companion.service.js +3 -4
  299. package/dist/esm/i18n-labelling/services/labelling-planner.companion.service.js.map +1 -1
  300. package/dist/esm/i18n-labelling/utils/declared-refusal-codes.utils.d.ts +11 -0
  301. package/dist/esm/i18n-labelling/utils/declared-refusal-codes.utils.d.ts.map +1 -1
  302. package/dist/esm/i18n-labelling/utils/declared-refusal-codes.utils.js +21 -0
  303. package/dist/esm/i18n-labelling/utils/declared-refusal-codes.utils.js.map +1 -1
  304. package/dist/esm/meta-workflows/models/creation-journey-timeline.models.d.ts +9 -0
  305. package/dist/esm/meta-workflows/models/creation-journey-timeline.models.d.ts.map +1 -1
  306. package/dist/esm/meta-workflows/models/creation-journey-timeline.models.js +18 -2
  307. package/dist/esm/meta-workflows/models/creation-journey-timeline.models.js.map +1 -1
  308. package/dist/esm/meta-workflows/services/application-build-dispatch.companion.service.d.ts +153 -22
  309. package/dist/esm/meta-workflows/services/application-build-dispatch.companion.service.d.ts.map +1 -1
  310. package/dist/esm/meta-workflows/services/application-build-dispatch.companion.service.js +970 -208
  311. package/dist/esm/meta-workflows/services/application-build-dispatch.companion.service.js.map +1 -1
  312. package/dist/esm/meta-workflows/services/application-build-follow-up-derivation.companion.d.ts +115 -13
  313. package/dist/esm/meta-workflows/services/application-build-follow-up-derivation.companion.d.ts.map +1 -1
  314. package/dist/esm/meta-workflows/services/application-build-follow-up-derivation.companion.js +295 -56
  315. package/dist/esm/meta-workflows/services/application-build-follow-up-derivation.companion.js.map +1 -1
  316. package/dist/esm/meta-workflows/services/application-build-landing-projection.companion.d.ts +3 -3
  317. package/dist/esm/meta-workflows/services/application-build-landing-projection.companion.js +3 -3
  318. package/dist/esm/meta-workflows/services/application-build-landing-projection.companion.js.map +1 -1
  319. package/dist/esm/meta-workflows/services/application-build-task-closure.companion.d.ts +9 -0
  320. package/dist/esm/meta-workflows/services/application-build-task-closure.companion.d.ts.map +1 -1
  321. package/dist/esm/meta-workflows/services/application-build-task-closure.companion.js +19 -0
  322. package/dist/esm/meta-workflows/services/application-build-task-closure.companion.js.map +1 -1
  323. package/dist/esm/meta-workflows/services/application-build-task-coding-policy.companion.service.d.ts +1 -1
  324. package/dist/esm/meta-workflows/services/application-build-task-coding-policy.companion.service.d.ts.map +1 -1
  325. package/dist/esm/meta-workflows/services/application-build-task-coding-policy.companion.service.js +48 -26
  326. package/dist/esm/meta-workflows/services/application-build-task-coding-policy.companion.service.js.map +1 -1
  327. package/dist/esm/meta-workflows/services/build-task-brief-application-facts.companion.d.ts +12 -0
  328. package/dist/esm/meta-workflows/services/build-task-brief-application-facts.companion.d.ts.map +1 -1
  329. package/dist/esm/meta-workflows/services/build-task-brief-application-facts.companion.js +30 -1
  330. package/dist/esm/meta-workflows/services/build-task-brief-application-facts.companion.js.map +1 -1
  331. package/dist/esm/meta-workflows/services/creation-intervention-ledger.companion.service.d.ts.map +1 -1
  332. package/dist/esm/meta-workflows/services/creation-intervention-ledger.companion.service.js +4 -5
  333. package/dist/esm/meta-workflows/services/creation-intervention-ledger.companion.service.js.map +1 -1
  334. package/dist/esm/meta-workflows/services/creation-run-report.companion.service.d.ts.map +1 -1
  335. package/dist/esm/meta-workflows/services/creation-run-report.companion.service.js +12 -1
  336. package/dist/esm/meta-workflows/services/creation-run-report.companion.service.js.map +1 -1
  337. package/dist/esm/meta-workflows/services/foundation-executor.companion.service.d.ts.map +1 -1
  338. package/dist/esm/meta-workflows/services/foundation-executor.companion.service.js +6 -3
  339. package/dist/esm/meta-workflows/services/foundation-executor.companion.service.js.map +1 -1
  340. package/dist/esm/meta-workflows/services/playbook-run-write-register-window.companion.d.ts.map +1 -1
  341. package/dist/esm/meta-workflows/services/playbook-run-write-register-window.companion.js +3 -5
  342. package/dist/esm/meta-workflows/services/playbook-run-write-register-window.companion.js.map +1 -1
  343. package/dist/esm/meta-workflows/services/playbook-run.companion.service.d.ts +8 -1
  344. package/dist/esm/meta-workflows/services/playbook-run.companion.service.d.ts.map +1 -1
  345. package/dist/esm/meta-workflows/services/playbook-run.companion.service.js +119 -25
  346. package/dist/esm/meta-workflows/services/playbook-run.companion.service.js.map +1 -1
  347. package/dist/esm/meta-workflows/services/provider-registry-brief.companion.utils.d.ts +55 -1
  348. package/dist/esm/meta-workflows/services/provider-registry-brief.companion.utils.d.ts.map +1 -1
  349. package/dist/esm/meta-workflows/services/provider-registry-brief.companion.utils.js +157 -10
  350. package/dist/esm/meta-workflows/services/provider-registry-brief.companion.utils.js.map +1 -1
  351. package/dist/esm/module-layout/module-layout-convention.companion.d.ts +158 -0
  352. package/dist/esm/module-layout/module-layout-convention.companion.d.ts.map +1 -0
  353. package/dist/esm/module-layout/module-layout-convention.companion.js +272 -0
  354. package/dist/esm/module-layout/module-layout-convention.companion.js.map +1 -0
  355. package/dist/esm/module-layout/module-layout-inspection.companion.d.ts +42 -0
  356. package/dist/esm/module-layout/module-layout-inspection.companion.d.ts.map +1 -0
  357. package/dist/esm/module-layout/module-layout-inspection.companion.js +290 -0
  358. package/dist/esm/module-layout/module-layout-inspection.companion.js.map +1 -0
  359. package/dist/esm/module-layout/module-source-files.companion.d.ts +3 -0
  360. package/dist/esm/module-layout/module-source-files.companion.d.ts.map +1 -0
  361. package/dist/esm/module-layout/module-source-files.companion.js +45 -0
  362. package/dist/esm/module-layout/module-source-files.companion.js.map +1 -0
  363. package/package.json +18 -18
@@ -134,11 +134,32 @@ export var FollowUpGapNotDerivedReason;
134
134
  * selection and a run each. Only that positive statement drops a gap; silence and a malformed block never do.
135
135
  */
136
136
  FollowUpGapNotDerivedReason["MET_SINCE"] = "MET_SINCE";
137
+ /**
138
+ * The follow-up that would carry it could not join the plan (#3204): its ref already names a task, or the plan refused
139
+ * it. Recorded so the gap still reads OPEN, with no follow-up, rather than falling out of every reading.
140
+ */
141
+ FollowUpGapNotDerivedReason["FOLLOW_UP_NOT_APPENDED"] = "FOLLOW_UP_NOT_APPENDED";
142
+ /**
143
+ * The report said a PERSON must decide something first (#3886: `needsDecision`): no coding task can close it, so none is
144
+ * derived. It stays OPEN, for the maturity reading and on the creation Home's ASKED section. On reference run 43691253927
145
+ * six follow-up runs changed nothing for this reason ("the creator must decide the RESOURCE_DATA retention period").
146
+ */
147
+ FollowUpGapNotDerivedReason["AWAITS_DECISION"] = "AWAITS_DECISION";
137
148
  })(FollowUpGapNotDerivedReason || (FollowUpGapNotDerivedReason = {}));
138
149
  /** The key one gap is addressed by: its origin, its reporting run and its requirement. */
139
150
  export function followUpGapKey(gap) {
140
151
  return `${gap.originTaskRef}\u0000${gap.reportingRunTaskId}\u0000${gap.requirementRef}`;
141
152
  }
153
+ /**
154
+ * The reference a PERSON is shown for one report a derived follow-up covers (#3833): `<requirementRef>@<originTaskRef>/<run>`,
155
+ * so `wildo build tasks` can list it and `wildo build close|approve --covers` can send back what was seen. It names the
156
+ * same three parts as {@link followUpGapKey}, so two reports never share one. The requirement ref and the run id come
157
+ * from a run's report and the plan, so each part is percent-encoded: the result never holds a comma (the CLI splits
158
+ * `--covers` on commas), whitespace, or a separator of its own (`@`, `/`). A task ref is already a slug.
159
+ */
160
+ export function followUpReportRefOf(gap) {
161
+ return `${encodeURIComponent(gap.requirementRef)}@${encodeURIComponent(gap.originTaskRef)}/${encodeURIComponent(gap.reportingRunTaskId)}`;
162
+ }
142
163
  /**
143
164
  * The follow-up ref of ONE origin's ONE reporting run: the origin, then a token of the run, so the same report derives the
144
165
  * same task on every read while a later run reporting again derives a NEW task (the old follow-up's completed run must not
@@ -156,13 +177,14 @@ export function deriveFollowUpTaskRef(originTaskRef, reportingRunTaskId) {
156
177
  return `${HOST_DERIVED_FOLLOW_UP_TASK_REF_PREFIX}${origin}-${digest(reportingRunTaskId).slice(0, 6)}`;
157
178
  }
158
179
  /**
159
- * A follow-up waiting on its origin and, when there is one, on the follow-up before it on its target. One function, so the
180
+ * A follow-up waiting on what it waits on by itself (`ownPrerequisiteTaskRefs`: its first report's origin, its gaps' owner
181
+ * (#3886) or its routed scope's planned tasks (#3991)) and, when there is one, on the follow-up before it on its target. One function, so the
160
182
  * dispatch host can re-link a follow-up after one it could not append (a name collision, a schema refusal): a chain
161
183
  * naming a task the plan does not hold would make the plan unreadable.
162
184
  */
163
185
  export function chainFollowUpAfter(followUp, previousOnTarget) {
164
- const origin = followUp.prerequisiteTaskRefs[0];
165
- return { ...followUp, prerequisiteTaskRefs: previousOnTarget === undefined ? [origin] : [origin, previousOnTarget] };
186
+ const own = [...followUp.ownPrerequisiteTaskRefs];
187
+ return { ...followUp.task, prerequisiteTaskRefs: previousOnTarget === undefined ? own : [...own, previousOnTarget] };
166
188
  }
167
189
  /** A target's identity: two tasks with equal targets write the same scope (#3227). */
168
190
  export function targetKey(target) {
@@ -173,26 +195,43 @@ export function targetKey(target) {
173
195
  * The follow-up tasks the reported gaps derive (#2496, #3227). Pure: the dispatch host supplies the plan and each task's
174
196
  * latest completed run.
175
197
  *
176
- * ## One follow-up per reporting run, chained per target
198
+ * ## One follow-up per target for what is not dispatched yet, chained per target
177
199
  *
178
200
  * - **Every requirement one run reported is folded into one follow-up** (#3227): one scope, one worker, one set of
179
201
  * checks, instead of the same task once per requirement.
180
- * - **Its identity is the origin and the reporting run, and nothing else**, so it is STABLE while that report stands:
181
- * another task on the same target reporting later derives a NEW follow-up rather than renaming this one. A follow-up
182
- * the build is running, or has run, therefore never leaves the plan because somebody else reported (#2530); and a
183
- * completed follow-up is never re-derived with gaps it already answered.
202
+ * - **A follow-up not dispatched yet absorbs every later report on its target** (#3204): one worker reads the scope once,
203
+ * with every gap in front of it. The reference run of 2026-11-12 derived 225 follow-ups from website sections onto 24
204
+ * modules (17 requirements, each re-reported by up to 7 sections and routed to every module serving it), and 173 changed
205
+ * nothing. Absorption needs the dispatch record and the decisions (`absorption`); without them, one follow-up per report.
206
+ * - **Its identity is its FIRST report's origin and run, and nothing else**, so it is STABLE: a later report joins it
207
+ * rather than renaming it, and a follow-up the build is running, or has run, never leaves the plan because somebody
208
+ * else reported (#2530). Once dispatched it is FIXED: it carries exactly the gaps recorded on its runs at dispatch,
209
+ * which are the gaps its objective held, and a later report starts the next one. A follow-up a person closed or
210
+ * approved is fixed too, to the gaps the decision recorded ({@link FollowUpAbsorptionInputs}, #3832).
184
211
  * - **Follow-ups on one target are chained IN THE ORDER THEIR REPORTS SETTLED** (then by origin ref), each waiting on the
185
212
  * one before it: they write one scope, and two of them at once would overwrite each other (the interference that made
186
213
  * the wave re-run each alone). Report order rather than plan order, so a new report always joins the TAIL: in plan
187
214
  * order, an origin earlier in the plan reporting later went to the head, made a running follow-up wait on it, and was
188
215
  * ready at once beside it (review of f077ae7db). A follow-up declares no product, so no interference check could see it.
216
+ * - **Of the origins it carries, it waits on its first report's only**: the chain already holds a target's later follow-ups behind the earlier
217
+ * ones, so waiting on every absorbed origin would hold all their gaps behind any one of them that never lands.
218
+ * - **It does not wait on the other tasks serving its requirements across the plan**, only names them: a task that never
219
+ * lands would hold it for ever. Waiting was weighed again for #3204 and would not have helped: on that reference run the
220
+ * sections reported their gaps after most of the product tasks serving them had run.
221
+ * - **Except the tasks of the scope it was ROUTED to (#3991)**, when no owner was named. A routed follow-up writes their
222
+ * scope, so running before them does their work: on reference run 43876218697 a routed gap overtook the planned
223
+ * provider-binding task and did its whole job. Waiting on them costs only when one never lands, and then the gap is that
224
+ * task's and stays open under it; once they land, a run of theirs that states it met drops the gap (#3227). Absorbed
225
+ * reports add their scope's tasks too: they are the same scope. An OWNED gap waits on its named owner instead (#3886),
226
+ * so owners never wait on each other.
189
227
  *
190
228
  * ## A gap a later run STATED met is dropped; silence drops nothing
191
229
  *
192
230
  * Dropping on ABSENCE was tried and withdrawn (review of 5e3ab7d76): a missing block, a malformed one and a run that never
193
231
  * looked at the requirement all read the same, so it closed gaps nobody had closed. The worker contract now carries the
194
232
  * positive half, a `wildo-requirements-met` block, and a gap is dropped only when {@link collectFollowUpGapsMetSince} finds
195
- * a later run that states it and the host confirms that run LANDED and the follow-up was never attempted (`metSince`).
233
+ * a later run that states it and the host confirms that run LANDED and no follow-up carrying the gap was ever attempted
234
+ * (`metSince`): neither its own report's nor one that absorbed it (#3204).
196
235
  * Every drop is in `notDerived`, with the run and its evidence, so the host logs it. The follow-up's own worker is still
197
236
  * told to read what was built since and change nothing when a gap is met.
198
237
  *
@@ -210,7 +249,14 @@ export function deriveBuildPlanFollowUpTasks(input) {
210
249
  const reported = run?.unmetRequirements ?? [];
211
250
  if (run === undefined || reported.length === 0)
212
251
  continue;
213
- const reportedGaps = reported.map((entry) => ({ originTaskRef: origin.taskRef, reportingRunTaskId: run.runTaskId, requirementRef: entry.requirementRef, missing: entry.missing }));
252
+ const reportedGaps = reported.map((entry) => ({
253
+ originTaskRef: origin.taskRef,
254
+ reportingRunTaskId: run.runTaskId,
255
+ requirementRef: entry.requirementRef,
256
+ missing: entry.missing,
257
+ ...(entry.ownedByTaskRef !== undefined ? { ownedByTaskRef: entry.ownedByTaskRef } : {}),
258
+ ...(entry.needsDecision !== undefined ? { needsDecision: entry.needsDecision } : {}),
259
+ }));
214
260
  if (origin.target.kind === BuildPlanTaskTargetKind.COMPANION_GENERATION_STEP) {
215
261
  notDerived.push(...reportedGaps.map((gap) => ({ ...gap, reason: FollowUpGapNotDerivedReason.GENERATION_STEP })));
216
262
  continue;
@@ -226,6 +272,12 @@ export function deriveBuildPlanFollowUpTasks(input) {
226
272
  return true;
227
273
  notDerived.push({ ...gap, reason: FollowUpGapNotDerivedReason.MET_SINCE, metSince: { metByTaskRef: met.metByTaskRef, metByRunTaskId: met.metByRunTaskId, evidence: met.evidence } });
228
274
  return false;
275
+ }).filter((gap) => {
276
+ // A decision only a person can make (#3886): no coding task, and the gap stays open on ASKED.
277
+ if (gap.needsDecision === undefined)
278
+ return true;
279
+ notDerived.push({ ...gap, reason: FollowUpGapNotDerivedReason.AWAITS_DECISION });
280
+ return false;
229
281
  });
230
282
  if (gaps.length === 0)
231
283
  continue;
@@ -239,62 +291,245 @@ export function deriveBuildPlanFollowUpTasks(input) {
239
291
  };
240
292
  const byReportedAt = (left, right) => (left === right ? 0 : left < right ? -1 : 1);
241
293
  reports.sort((left, right) => byReportedAt(reportedAt(left.run), reportedAt(right.run)) || left.origin.taskRef.localeCompare(right.origin.taskRef));
242
- const followUps = [];
243
- const refByOriginRequirement = new Map();
244
- const previousOnTarget = new Map();
294
+ /*
295
+ * The owner a report named, when the plan can honour it (#3886): a planned task (never a follow-up), not the origin
296
+ * itself, that serves the very requirement. Anything else is ignored and the gap is an ordinary one: a worker's free text
297
+ * must never make a follow-up wait on a task that does not exist or does not do that work.
298
+ */
299
+ const honouredOwner = (gap, origin) => honouredFollowUpOwner(gap, origin, planTasks);
300
+ const groupsByTarget = new Map();
245
301
  for (const { origin, run, gaps } of reports) {
246
- /*
247
- * One follow-up per CLOSING SCOPE of this report (#3701): the origin's own, unless the origin only presents the product,
248
- * in which case each product scope serving a reported requirement gets the gaps it can close. A routed follow-up's ref
249
- * adds its scope to the run's token, so the same report keeps deriving the same tasks.
250
- */
251
302
  const byScope = new Map();
252
303
  for (const gap of gaps) {
304
+ const owner = honouredOwner(gap, origin);
253
305
  for (const scope of resolveFollowUpClosingScopes(origin, gap.requirementRef, planTasks)) {
254
306
  const key = targetKey(scope.target);
255
- const entry = byScope.get(key) ?? { scope, gaps: [] };
256
- entry.gaps.push(gap);
257
- byScope.set(key, entry);
307
+ const routed = scope.servingTaskRefs.length > 0;
308
+ // An owned gap is its own group, so waiting for its owner holds no other gap (#3886); unowned refs are unchanged.
309
+ const groupKey = owner === undefined ? key : `${key}\u0000owner:${owner}`;
310
+ const group = byScope.get(groupKey) ?? {
311
+ origin, run, scope, gaps: [],
312
+ taskRef: owner !== undefined ? deriveFollowUpTaskRef(origin.taskRef, `${run.runTaskId}\u0000${key}\u0000owner:${owner}`)
313
+ : routed ? deriveFollowUpTaskRef(origin.taskRef, `${run.runTaskId}\u0000${key}`) : deriveFollowUpTaskRef(origin.taskRef, run.runTaskId),
314
+ settledAtMs: reportedAt(run),
315
+ ...(owner !== undefined ? { owner } : {}),
316
+ };
317
+ group.gaps.push(gap);
318
+ byScope.set(groupKey, group);
319
+ }
320
+ }
321
+ for (const group of byScope.values()) {
322
+ const key = targetKey(group.scope.target);
323
+ groupsByTarget.set(key, [...(groupsByTarget.get(key) ?? []), group]);
324
+ }
325
+ }
326
+ /*
327
+ * ONE follow-up per target for everything not yet dispatched (#3204). The reference run of 2026-11-12 derived 225
328
+ * follow-ups from website sections on 24 module scopes: 17 requirements, each reported by up to 7 sections and routed
329
+ * to every module serving it, all waiting at once, and 173 changed nothing.
330
+ *
331
+ * - A DISPATCHED follow-up carries its own report and exactly the gaps recorded on its runs (what its objective held).
332
+ * - A DECIDED follow-up (a person closed or approved it, or a decision holds it) carries its own report and exactly the
333
+ * gaps the decision recorded (#3832).
334
+ * - Every other gap on the target goes to ONE pending follow-up: the first report not yet dispatched, under its own ref,
335
+ * so it is never renamed (#2530). One worker reads the scope once, with every gap in front of it.
336
+ *
337
+ * Only the first report's origin is waited on: the chain already held every later follow-up on a target behind the
338
+ * earlier ones, so waiting on each absorbed origin as well would hold the gaps of all of them behind any one.
339
+ */
340
+ const absorption = input.absorption;
341
+ const followUpsByTarget = [];
342
+ for (const [key, groups] of groupsByTarget) {
343
+ const members = [];
344
+ const closedToAbsorption = (group) => absorption === undefined || absorption.dispatched.has(group.taskRef) || absorption.decided.has(group.taskRef);
345
+ const anchoredAlone = new Map();
346
+ for (const group of groups) {
347
+ if (absorption === undefined || closedToAbsorption(group)) {
348
+ const member = { anchor: group, carried: new Map() };
349
+ members.push(member);
350
+ anchoredAlone.set(group, member);
351
+ }
352
+ }
353
+ if (absorption !== undefined) {
354
+ // What each dispatched or decided follow-up carried, from its records; never a gap whose own report is either.
355
+ const claimedBy = new Map();
356
+ for (const member of members) {
357
+ const recorded = new Set([...(absorption.dispatched.get(member.anchor.taskRef) ?? []), ...(absorption.decided.get(member.anchor.taskRef) ?? [])]);
358
+ for (const group of groups) {
359
+ if (group === member.anchor || closedToAbsorption(group))
360
+ continue;
361
+ for (const gap of group.gaps) {
362
+ const gapKey = followUpGapKey(gap);
363
+ if (!recorded.has(gapKey) || claimedBy.has(gapKey))
364
+ continue;
365
+ claimedBy.set(gapKey, member);
366
+ member.carried.set(group, [...(member.carried.get(group) ?? []), gap]);
367
+ }
368
+ }
369
+ }
370
+ // The decided anchors are already in the order their reports settled (pushed in report order above).
371
+ // Everything else: the first pending report anchors, every later one joins it. Its follow-up goes LAST on its target,
372
+ // after every dispatched or decided one, so a report that surfaced late never runs beside one already running.
373
+ // One pending follow-up for the target's unowned gaps, and one per owner (#3886), so an owner holds only its own gaps.
374
+ const pendingByOwner = new Map();
375
+ for (const group of groups) {
376
+ if (closedToAbsorption(group))
377
+ continue;
378
+ const remaining = group.gaps.filter((gap) => !claimedBy.has(followUpGapKey(gap)));
379
+ if (remaining.length === 0)
380
+ continue;
381
+ const pending = pendingByOwner.get(group.owner);
382
+ if (pending === undefined) {
383
+ const member = { anchor: { ...group, gaps: remaining }, carried: new Map() };
384
+ pendingByOwner.set(group.owner, member);
385
+ members.push(member);
386
+ }
387
+ else {
388
+ pending.carried.set(group, remaining);
389
+ }
258
390
  }
259
391
  }
260
- for (const [key, { scope, gaps: scopeGaps }] of byScope) {
261
- const routed = scope.servingTaskRefs.length > 0;
262
- const taskRef = routed ? deriveFollowUpTaskRef(origin.taskRef, `${run.runTaskId}\u0000${key}`) : deriveFollowUpTaskRef(origin.taskRef, run.runTaskId);
263
- const previous = previousOnTarget.get(key);
264
- previousOnTarget.set(key, taskRef);
265
- const requirementRefs = [...new Set(scopeGaps.map((gap) => gap.requirementRef))];
392
+ /*
393
+ * A follow-up waiting for its owner is on a CHAIN OF ITS OWN (#3886, review M1): it waits on the follow-up before it
394
+ * for the same owner on this target, never on another owner's or on the target's unowned follow-ups, and none of them
395
+ * waits on it. One chain per target would hold every gap behind any owner that never lands, #3204's objection one level
396
+ * down. Two follow-ups on one scope still never RUN at once: the dispatch's selection takes one follow-up per scope at a
397
+ * time (`followUpScopeBusy`), since they declare no product and nothing else could see them meet.
398
+ */
399
+ const build = (anchor, contributions) => {
400
+ const all = contributions.map(([group]) => group);
401
+ const gaps = contributions.flatMap(([, contributed]) => contributed);
402
+ const requirementRefs = [...new Set(gaps.map((gap) => gap.requirementRef))];
403
+ const originRefs = [...new Set(all.map((group) => group.origin.taskRef))];
266
404
  const servingTasks = [...new Set(planTasks
267
- .filter((task) => task.taskRef !== origin.taskRef && requirementRefs.some((ref) => task.servesRefs.includes(ref)))
405
+ .filter((task) => !originRefs.includes(task.taskRef) && requirementRefs.some((ref) => task.servesRefs.includes(ref)))
268
406
  .map((task) => task.taskRef))];
269
- const task = chainFollowUpAfter({
270
- taskRef,
271
- objective: (routed
272
- ? `${origin.taskRef} presents the product and reported that the product does not yet deliver: `
273
- + scopeGaps.map((gap) => `${gap.requirementRef}: ${gap.missing}`).join(' ')
274
- + ` Build what is missing in this scope, where ${scope.servingTaskRefs.join(', ')} built the requirement; a page cannot. `
275
- + 'If what is missing lies outside this scope, change nothing and report it. '
276
- : `Meet what ${origin.taskRef} reported still unmet: `
277
- + scopeGaps.map((gap) => `${gap.requirementRef}: ${gap.missing}`).join(' ') + ' ')
278
- + 'Read what is already built first: if a task that ran since has met one, change nothing for it and say so. '
279
- + (servingTasks.length > 0 ? `Other tasks serving them: ${servingTasks.join(', ')}; their work is theirs. ` : '')
280
- + 'Derived by the dispatch host from that run\'s closing report.',
281
- target: scope.target,
282
- produces: [],
283
- functionalTopic: scope.functionalTopic,
284
- skillRefs: [...scope.skillRefs],
285
- // The origin FIRST (`followUpOf` reads it); the follow-up before it on the same target is added by the chain.
286
- prerequisiteTaskRefs: [origin.taskRef],
287
- // Only refs the origin serves: a free-text ref would be a dangling citation in the plan.
288
- servesRefs: requirementRefs.filter((ref) => origin.servesRefs.includes(ref)),
289
- }, previous);
290
- followUps.push({ task, gaps: scopeGaps, targetKey: key });
291
- for (const gap of scopeGaps) {
292
- const originRequirement = `${gap.originTaskRef}\u0000${gap.requirementRef}`;
293
- if (!refByOriginRequirement.has(originRequirement))
294
- refByOriginRequirement.set(originRequirement, taskRef);
407
+ const builtBy = [...new Set(all.flatMap((group) => group.scope.servingTaskRefs))];
408
+ const downstreamOfOrigins = planTasksDownstreamOf(originRefs, planTasks);
409
+ const describe = (groupGaps) => {
410
+ const byRequirement = new Map();
411
+ for (const gap of groupGaps)
412
+ byRequirement.set(gap.requirementRef, (byRequirement.get(gap.requirementRef) ?? new Set()).add(gap.missing));
413
+ return [...byRequirement].map(([ref, missing]) => `${ref}: ${[...missing].join(' / ')}`).join(' ');
414
+ };
415
+ const routed = contributions.filter(([group]) => group.scope.servingTaskRefs.length > 0);
416
+ const own = contributions.filter(([group]) => group.scope.servingTaskRefs.length === 0);
417
+ const presenters = [...new Set(routed.map(([group]) => group.origin.taskRef))];
418
+ const reporters = [...new Set(own.map(([group]) => group.origin.taskRef))];
419
+ /*
420
+ * A ROUTED follow-up waits for the planned tasks whose scope it writes (#3991), as an owned one waits for its named
421
+ * owner (#3886). Measured on reference run 43876218697: a website page reported that the daily digest reached no
422
+ * inbox, the gap was routed to `build-task-brevo-provider-binding`'s scope while that task was still blocked, and the
423
+ * follow-up did the whole binding itself (installed the provider, bound it) ahead of the task planned for it.
424
+ *
425
+ * Narrower than what #3204 refused: not every task serving the requirement across the plan, only those whose own
426
+ * scope this follow-up writes, so the work it would do is exactly theirs. One that never lands leaves the gap open
427
+ * under it. Once they land, a run of theirs that states the requirement met drops the gap (#3227) at no run's cost.
428
+ */
429
+ /*
430
+ * An UNOWNED follow-up also waits for the planned tasks DOWNSTREAM of its origins that serve the same requirement
431
+ * (#3999). What a stage reports missing lies outside its own scope, and planned later work is what delivers it.
432
+ * Measured on reference run 43961156770: a communication schema reported its resource "not yet linked to its
433
+ * contact, customer…", and the follow-up wrote the module's relationships before the planned relationships task,
434
+ * whose prerequisites (the customer, contact and job configs) had not landed. Once they land, a run of theirs that
435
+ * states the requirement met drops the gap at no run's cost (#3227).
436
+ */
437
+ const downstreamServing = anchor.owner !== undefined ? [] : servingTasks.filter((ref) => downstreamOfOrigins.has(ref));
438
+ // Owned: the named owner (#3886), so one owner never holds another's gaps. Routed and unowned: the scope's tasks.
439
+ const ownPrerequisiteTaskRefs = [...new Set([anchor.origin.taskRef, ...(anchor.owner !== undefined ? [anchor.owner] : [...builtBy, ...downstreamServing])])];
440
+ const objective = (routed.length > 0
441
+ ? `${presenters.join(', ')} ${presenters.length > 1 ? 'present' : 'presents'} the product and reported that the product does not yet deliver: `
442
+ + describe(routed.flatMap(([, contributed]) => contributed))
443
+ // Only an UNOWNED routed follow-up waits for the scope's tasks, so only it may say they built it (#3991).
444
+ + (anchor.owner === undefined
445
+ ? ` Build what is missing in this scope, where ${builtBy.join(', ')} ${builtBy.length > 1 ? 'have' : 'has'} built the requirement; a page cannot. `
446
+ : ` Build what is missing in the scope of ${builtBy.join(', ')}; a page cannot. `)
447
+ + 'If what is missing lies outside this scope, change nothing and report it. '
448
+ : '')
449
+ + (own.length > 0 ? `Meet what ${reporters.join(', ')} reported still unmet: ${describe(own.flatMap(([, contributed]) => contributed))} ` : '')
450
+ + (contributions.length > 1 ? 'These reports were gathered into this one task because they concern this one scope: answer each. ' : '')
451
+ + 'Read what is already built first: if a task that ran since has met one, change nothing for it and say so. '
452
+ + (anchor.owner !== undefined ? `It was reported as ${anchor.owner}'s own work, so it runs once that task has landed: read what it built, and change nothing for a gap it met. ` : '')
453
+ // Every serving task it does not wait on: their work is theirs, whether or not it has run yet.
454
+ + (servingTasks.some((ref) => !ownPrerequisiteTaskRefs.includes(ref)) ? `Other tasks serving them: ${servingTasks.filter((ref) => !ownPrerequisiteTaskRefs.includes(ref)).join(', ')}; their work is theirs. ` : '')
455
+ + (contributions.length > 1 ? 'Derived by the dispatch host from those runs\' closing reports.' : 'Derived by the dispatch host from that run\'s closing report.');
456
+ return {
457
+ task: {
458
+ taskRef: anchor.taskRef,
459
+ objective,
460
+ target: anchor.scope.target,
461
+ produces: [],
462
+ functionalTopic: anchor.scope.functionalTopic,
463
+ skillRefs: [...new Set(all.flatMap((group) => group.scope.skillRefs))],
464
+ // Its first report's origin (`followUpOf` reads it), then EITHER the owner its gaps were reported as (#3886) OR, when
465
+ // routed with no owner, the planned tasks of its scope (#3991); the follow-up before it on its target is added by the chain.
466
+ prerequisiteTaskRefs: ownPrerequisiteTaskRefs,
467
+ // Only refs an origin serves: a free-text ref would be a dangling citation in the plan.
468
+ servesRefs: requirementRefs.filter((ref) => all.some((group) => group.origin.servesRefs.includes(ref))),
469
+ },
470
+ gaps,
471
+ // The CHAIN it belongs to (#3886): its target's, or its target's for one owner, so owners never wait on each other.
472
+ targetKey: anchor.owner === undefined ? key : `${key}\u0000owner:${anchor.owner}`,
473
+ ownPrerequisiteTaskRefs,
474
+ };
475
+ };
476
+ const previousOnChain = new Map();
477
+ for (const { anchor, carried } of members) {
478
+ const derived = {
479
+ ...build(anchor, [[anchor, anchor.gaps], ...carried]),
480
+ absorbed: [...carried].map(([group, contributed]) => build(group, [[group, contributed]])),
481
+ };
482
+ const task = chainFollowUpAfter(derived, previousOnChain.get(derived.targetKey));
483
+ previousOnChain.set(derived.targetKey, task.taskRef);
484
+ followUpsByTarget.push({ ...derived, task });
485
+ }
486
+ }
487
+ return assembleFollowUpDerivation(followUpsByTarget, notDerived);
488
+ }
489
+ /**
490
+ * Every planned task that waits, directly or through others, on one of `taskRefs` (#3999): the plan's later work on what
491
+ * they built. Follow-ups are never in it, so a follow-up waiting on these can close no cycle.
492
+ */
493
+ export function planTasksDownstreamOf(taskRefs, planTasks) {
494
+ const downstream = new Set();
495
+ const reached = new Set(taskRefs);
496
+ for (let grew = true; grew;) {
497
+ grew = false;
498
+ for (const task of planTasks) {
499
+ if (reached.has(task.taskRef) || task.taskRef.startsWith(HOST_DERIVED_FOLLOW_UP_TASK_REF_PREFIX))
500
+ continue;
501
+ if (task.prerequisiteTaskRefs.some((ref) => reached.has(ref))) {
502
+ reached.add(task.taskRef);
503
+ downstream.add(task.taskRef);
504
+ grew = true;
295
505
  }
296
506
  }
297
507
  }
508
+ return downstream;
509
+ }
510
+ /**
511
+ * The owner a report named for a gap, when the plan can honour it (#3886): a planned task (never a follow-up), not the
512
+ * origin itself, that serves the very requirement. Anything else is ignored and the gap is an ordinary one.
513
+ */
514
+ export function honouredFollowUpOwner(gap, origin, planTasks) {
515
+ if (gap.ownedByTaskRef === undefined)
516
+ return undefined;
517
+ const owner = planTasks.find((task) => task.taskRef === gap.ownedByTaskRef && !task.taskRef.startsWith(HOST_DERIVED_FOLLOW_UP_TASK_REF_PREFIX));
518
+ return owner !== undefined && owner.taskRef !== origin.taskRef && owner.servesRefs.includes(gap.requirementRef) ? owner.taskRef : undefined;
519
+ }
520
+ /**
521
+ * A derivation's readers over a given set of follow-ups (#3204): what the plan holds, so a host that could not append one
522
+ * (and appended the reports it absorbed instead) answers from what it appended, and no reader names a task the plan lacks.
523
+ */
524
+ export function assembleFollowUpDerivation(followUps, notDerived) {
525
+ const refByOriginRequirement = new Map();
526
+ for (const followUp of followUps) {
527
+ for (const gap of followUp.gaps) {
528
+ const originRequirement = `${gap.originTaskRef}\u0000${gap.requirementRef}`;
529
+ if (!refByOriginRequirement.has(originRequirement))
530
+ refByOriginRequirement.set(originRequirement, followUp.task.taskRef);
531
+ }
532
+ }
298
533
  return {
299
534
  followUps,
300
535
  notDerived,
@@ -314,7 +549,8 @@ export function deriveBuildPlanFollowUpTasks(input) {
314
549
  *
315
550
  * EVERY such task is a candidate, in plan order, so a statement whose run has not landed does not hide one that has. A
316
551
  * gap's own follow-up is never its verifier: once it has run, it is attempted and keeps the gap anyway. The host must
317
- * still confirm that the stating run LANDED and that the follow-up was never attempted before it passes a candidate on as
552
+ * still confirm that the stating run LANDED and that no follow-up carrying the gap (its own, or one that absorbed it,
553
+ * #3204) was ever attempted before it passes a candidate on as
318
554
  * `metSince`; this function only finds who said so.
319
555
  */
320
556
  export function collectFollowUpGapsMetSince(input) {
@@ -340,8 +576,11 @@ export function collectFollowUpGapsMetSince(input) {
340
576
  const routedRefs = new Set(scopes.filter((scope) => scope.servingTaskRefs.length > 0)
341
577
  .map((scope) => deriveFollowUpTaskRef(origin.taskRef, `${run.runTaskId}\u0000${targetKey(scope.target)}`)));
342
578
  const routed = routedRefs.size > 0;
579
+ // The follow-ups an owned gap derives (#3886, review LOW) are this report's own too: never a run that met it since.
580
+ const owner = honouredFollowUpOwner(entry, origin, planTasks);
581
+ const ownedRefs = new Set(owner === undefined ? [] : scopes.map((scope) => deriveFollowUpTaskRef(origin.taskRef, `${run.runTaskId}\u0000${targetKey(scope.target)}\u0000owner:${owner}`)));
343
582
  for (const task of input.tasks) {
344
- if (task.taskRef === origin.taskRef || task.taskRef === followUpTaskRef || routedRefs.has(task.taskRef))
583
+ if (task.taskRef === origin.taskRef || task.taskRef === followUpTaskRef || routedRefs.has(task.taskRef) || ownedRefs.has(task.taskRef))
345
584
  continue;
346
585
  const taskScope = routed ? productClosingTarget(task.target) : task.target;
347
586
  if (taskScope === undefined || !closingKeys.has(targetKey(taskScope)) || !task.servesRefs.includes(entry.requirementRef))