@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
@@ -1 +1 @@
1
- {"version":3,"file":"application-build-task-closure.companion.js","sourceRoot":"","sources":["../../../../src/meta-workflows/services/application-build-task-closure.companion.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,oBAAoB,EAAE,MAAM,gCAAgC,CAAC;AACtE,OAAO,EAAE,4BAA4B,EAAE,MAAM,wCAAwC,CAAC;AACtF,OAAO,EAAE,wBAAwB,EAA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CAAC,IAAI,KAAK,oBAAoB,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC;YAC5H,IAAI,CAAC,MAAM;gBAAE,SAAS;YACtB,QAAQ,CAAC,GAAG,CAAC,OAAO,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;YACvC,OAAO,GAAG,IAAI,CAAC;QACjB,CAAC;IACH,CAAC;IACD,OAAO,QAAQ,CAAC;AAClB,CAAC;AAED;;;;GAIG;AACH,MAAM,UAAU,yBAAyB,CAAC,OAA+B;IACvE,OAAO,wBAAwB,CAAC,OAAO,EAAE,4BAA4B,CAAC,cAAc,CAAC,KAAK,qBAAqB,CAAC,OAAO,CAAC;AAC1H,CAAC;AAED;;;;GAIG;AACH,MAAM,UAAU,oBAAoB,CAAC,KAKpC;IACC,OAAO,KAAK,CAAC,OAAO,CAAC,UAAU,CAAC,sCAAsC,CAAC;WAClE,yBAAyB,CAAC,KAAK,CAAC,OAAO,CAAC;WACxC,CAAC,KAAK,CAAC,SAAS,CAAC,GAAG,CAAC,KAAK,CAAC,OAAO,CAAC;WACnC,CAAC,KAAK,CAAC,eAAe,CAAC;AAC9B,CAAC","sourcesContent":["import { z } from 'zod';\n\nimport { BuildTaskClosureKind } from '@wildo-ai/platform-core-shared';\nimport { PlaybookLaneBoundaryDecision } from '@wildo-ai/application-creation-runtime';\nimport { AcceptedChangeTrailerKey, AcceptOrigin, COMPANION_COMMIT_AUTHOR, type Journey_AutonomyPreset } from '@wildo-ai/saas-specifications/application-creation';\n\nimport { BUILD_TASK_DECISIONS_PACKAGE_RELATIVE_PATH } from '../models/build-task-decisions-path.models';\nimport { LaneBoundaryTreatment, laneBoundaryTreatmentFor } from '../models/playbook-run-checkpoint.models';\nimport { HOST_DERIVED_FOLLOW_UP_TASK_REF_PREFIX } from './application-build-follow-up-derivation.companion';\n\n/**\n * A person's DECISIONS about build tasks the plan cannot settle on its own (#3224, #3225, #3227): `wildo build close`\n * and `wildo build approve`.\n *\n * ## Why doors, and why they are a committed file\n *\n * A task can be done while its probe can never say so. On app-creation-test-007 three tasks were `completed_unlanded`\n * for the rest of the build: `build-task-enquiry-qualification-creates-opportunity`, whose behaviour the lifecycle task\n * had already built into `qualify`; `build-task-sidebar-placement`, whose sidebar the app-shell task had already written;\n * and `build-task-navigation-config`. Each worker verified the work, changed nothing, and parked or failed to land, and\n * the plan could never reach 100%. The plan-side defects that produced them are refused now, but a plan landed before,\n * or a probe that misses, still needs a way past that a person can take, says why, and can be reviewed later\n * (`design-philosophy.md`, \"Immutability needs a paired mutation path\"). The same holds for a host-derived follow-up the\n * creator does not want (#3227): only a person can decline it, and under the GUIDED posture only a person can let one run.\n *\n * A decision about what the build delivers is recorded the way every decision of this lane is: a file in the\n * application's specifications, committed (`one-source-of-truth.md`: accepted = committed). Landing and dispatch read\n * it from HEAD only, so an uncommitted decision changes nothing, two branches can carry different decisions, and\n * `git log` says who decided what and why (the commit carries the person's identity and the reason as its purpose\n * trailer). Run records were rejected for it: they are a per-run cache, and a closure is a fact about the product.\n *\n * ## Who may decide\n *\n * A PERSON, through the console or the companion route behind it; nothing in the selector, the wave or the loop calls\n * these doors. The plugin's command list leaves both verbs to the person (`claude-plugin-authored-commands.test.ts`).\n * Neither is a dispatch: a decision runs nothing, and a `wildo build stop` hold stays where it is.\n *\n * ## What a closure is NOT\n *\n * It never makes a task's product true. A task closed as satisfied by another task is landed only while that task is\n * landed, and the record carries the closure beside the landing, so a reader always sees that a person, not a probe,\n * said it. DECLINING is only for a host-derived follow-up: declining a task of the accepted plan would report a build\n * complete without what it decomposed, which the plan's own coverage refusal exists to prevent (#2220).\n */\n\n/**\n * The trailer value the decision door writes for a person's decision (`DecisionRecordActor.CREATOR`). Named here, not\n * imported, because the accept service that owns that enum imports this module's neighbours; the pin in the closure test\n * holds the two equal.\n */\nexport const PERSON_DECISION_ACTOR_TRAILER_VALUE = 'creator';\n\n/**\n * Where a person's build-task decisions stand when they are read (#3224 review, the rules the orchestrator fixed):\n * three outcomes, never two, because an unknown is not a refusal.\n */\nexport enum BuildTaskDecisionsStanding {\n /** HEAD's bytes were produced by a person's door, and set outside every coding run's window: they decide. */\n HONOURED = 'honoured',\n /** HEAD's bytes are not a person's decision (or there are none): nothing is decided, and the reason is named. */\n NOT_HONOURED = 'not_honoured',\n /**\n * Git or the run records could not be read, so whether a person decided cannot be known. The landing pass is\n * PROVISIONAL, the tasks the file names are held, and the decision door refuses: it must never write a file that\n * drops decisions it could not read.\n */\n UNKNOWN = 'unknown',\n}\n\n/** The commit that last changed the decisions file, as the reader asks git for it. */\nexport interface BuildTaskDecisionsCommit {\n readonly sha: string;\n readonly authorName: string;\n readonly authorEmail: string;\n /** The whole message, trailers included. */\n readonly body: string;\n}\n\n/**\n * Which decisions bytes the reader honours (#3224 review): by CONTENT, never by which commit came last.\n *\n * HEAD's blob of the file is honoured exactly when BOTH (a) the commit that last changed the file (the one that set\n * HEAD's bytes) lies outside every coding run's window, AND (b) some commit made through a person's door\n * ({@link decisionsCommitIsAPersonsDoor}) outside every window, and RECORDED by the door in the companion's own run\n * records (#3284, {@link doorCommitIsRecorded}), produced that same blob. (b) alone let a run replay old\n * door-produced bytes; (a) alone let a run's honest-looking commit through. Keying on the LAST commit broke the documented undo: `git revert` writes no door trailers, so reverting one\n * decision made the whole file ignored (earlier closures unlanded, declined follow-ups ran again) and the next decision\n * replaced it under the person's name. A revert restores a blob a door produced, so it stays honoured; bytes no door\n * produced (an agent's write, a hand edit, an auto-merged JSON) decide nothing.\n *\n * The run-window condition answers a run that commits by itself (an UNRESTRICTED agent's shell can `git commit` the file\n * under the local identity with forged trailers, and nothing blocks a commit made during a run, it is only recorded).\n * The decision door refuses while any coding run is live, so a genuine door commit is never inside a run's window\n * (`baseline..postRun`); a commit inside one is treated as the run's. Same-user gaps that remain (a background process\n * the run leaves behind calling the door after it settles; editing the run records; rebasing a forged commit out of\n * its window) are deliberate same-user tampering outside a run, out of this guard's threat model, tracked in #3284.\n *\n * `latestDoorCommit` is the newest door commit outside every window: what a decision door builds on when HEAD's bytes\n * are not honoured, so a person's earlier decisions are carried and the unhonoured bytes are dropped.\n */\nexport function resolveHonouredDecisionsBlob(input: {\n readonly headBlobId: string | undefined;\n /**\n * Newest first: `commits[0]` is the commit that set HEAD's current bytes. Each carries the blob it left at the path\n * (absent when it removed the file), in-window commits included, so a reason can name them.\n */\n readonly commits: readonly (BuildTaskDecisionsCommit & { readonly blobId?: string })[];\n /** Commits made inside some coding run's window, each with a sentence naming that run. */\n readonly insideRunWindows: ReadonlyMap<string, string>;\n /**\n * The decisions the door RECORDED in the companion's own run records (#3284), by nonce, with the SHA once completed:\n * a door commit counts only when one of them carries the nonce it names ({@link doorCommitIsRecorded}).\n */\n readonly recordedDoorDecisions: ReadonlyMap<string, RecordedDoorDecision>;\n}): {\n readonly standing: BuildTaskDecisionsStanding.HONOURED | BuildTaskDecisionsStanding.NOT_HONOURED;\n readonly reason?: string;\n readonly latestDoorCommit?: { readonly sha: string; readonly blobId: string };\n} {\n const doorCommits = input.commits.filter((commit) => commit.blobId !== undefined\n && !input.insideRunWindows.has(commit.sha)\n && decisionsCommitIsAPersonsDoor(commit).honoured\n && doorCommitIsRecorded(commit, input.commits, input.recordedDoorDecisions));\n const latest = doorCommits[0];\n const latestDoorCommit = latest !== undefined ? { sha: latest.sha, blobId: latest.blobId! } : undefined;\n const notHonoured = (reason: string) => ({ standing: BuildTaskDecisionsStanding.NOT_HONOURED as const, reason, ...(latestDoorCommit ? { latestDoorCommit } : {}) });\n if (input.headBlobId === undefined) return notHonoured('HEAD holds no decisions file');\n /*\n * R1 (a): the commit that SET HEAD's bytes must lie outside every run window. Without it a run could replay old\n * door-produced bytes (`git checkout <old> -- file && git commit`) and pass (b): the bytes are a door's, the act is not.\n */\n const setter = input.commits[0];\n if (setter !== undefined && input.insideRunWindows.has(setter.sha)) {\n return notHonoured(`its bytes were last set by ${setter.sha.slice(0, 8)}, inside ${input.insideRunWindows.get(setter.sha)}, so no person decided them`);\n }\n // R1 (b): those bytes are a blob a door commit made outside every run window produced.\n if (doorCommits.some((commit) => commit.blobId === input.headBlobId)) {\n return { standing: BuildTaskDecisionsStanding.HONOURED, ...(latestDoorCommit ? { latestDoorCommit } : {}) };\n }\n const unrecorded = setter !== undefined && decisionsCommitIsAPersonsDoor(setter).honoured && !doorCommitIsRecorded(setter, input.commits, input.recordedDoorDecisions) ? setter : undefined;\n return notHonoured(unrecorded\n ? `its bytes were set by ${unrecorded.sha.slice(0, 8)}, which carries the door's trailers but no decision the door recorded under its \\`${AcceptedChangeTrailerKey.DECISION_ID}\\`, so it was not made through \\`wildo build close\\` or \\`wildo build approve\\` (a direct git commit, or one rebased or cherry-picked to a new SHA). Make the decision again with \\`wildo build close\\` or \\`wildo build approve\\`; earlier recorded decisions are carried`\n : 'its bytes are not what any decision recorded through `wildo build close` or `wildo build approve` outside a coding run produced');\n}\n\n/** A decision the door recorded in the companion's run records (#3284): opened before its commit, completed with its SHA. */\nexport interface RecordedDoorDecision {\n /** Absent while the record is pending: the commit happened (or not) and completing the record failed or has not run. */\n readonly commitSha?: string;\n}\n\n/**\n * Whether the door recorded the decision a door-shaped commit names (#3284). The door opens its record, keyed by a\n * fresh nonce, BEFORE committing, puts the nonce in the commit's `Wildo-Decision-Id` trailer, then completes the record\n * with the SHA. So a commit is recorded when a record carries its nonce and either names this SHA, or is still pending\n * (a crash after the commit) and this is the only commit naming that nonce. A direct commit carries no nonce a record\n * has; a commit replaying a completed nonce at another SHA (rebased, cherry-picked, copied) is refused by the SHA.\n */\nexport function doorCommitIsRecorded(\n commit: BuildTaskDecisionsCommit,\n history: readonly BuildTaskDecisionsCommit[],\n recorded: ReadonlyMap<string, RecordedDoorDecision>,\n): boolean {\n const decisionId = readDecisionTrailers(commit).get(AcceptedChangeTrailerKey.DECISION_ID);\n if (decisionId === undefined) return false;\n const record = recorded.get(decisionId);\n if (record === undefined) return false;\n if (record.commitSha !== undefined) return record.commitSha === commit.sha;\n return history.filter((other) => readDecisionTrailers(other).get(AcceptedChangeTrailerKey.DECISION_ID) === decisionId).length === 1;\n}\n\n/** The trailer paragraph (the message's last paragraph) of a decisions commit, by key. */\nfunction readDecisionTrailers(commit: BuildTaskDecisionsCommit): ReadonlyMap<string, string> {\n const trailers = new Map<string, string>();\n for (const line of (commit.body.trim().split(/\\n\\s*\\n/u).pop() ?? '').split('\\n')) {\n const match = /^([A-Za-z-]+):\\s*(.*)$/u.exec(line.trim());\n if (match) trailers.set(match[1]!, match[2]!.trim());\n }\n return trailers;\n}\n\n/**\n * Whether ONE commit was made through a PERSON's door (`wildo build close` / `approve`): what\n * {@link resolveHonouredDecisionsBlob} asks of each commit whose bytes it might honour. The door writes a decision\n * record: authored by git's own identity (never the companion's), with `Wildo-Purpose`, `Wildo-Actor: creator` and\n * `Wildo-Accept-Origin: operator` in its trailer paragraph. A person's hand commit without the trailers is not a door.\n * Trailers alone do not prove a person (a shell can write them); the run-window condition in the resolver is what\n * keeps a run's own commit out.\n */\nexport function decisionsCommitIsAPersonsDoor(commit: BuildTaskDecisionsCommit): { readonly honoured: true } | { readonly honoured: false; readonly reason: string } {\n if (commit.authorEmail === COMPANION_COMMIT_AUTHOR.email || commit.authorName === COMPANION_COMMIT_AUTHOR.name) {\n return { honoured: false, reason: `it was last changed by ${commit.sha.slice(0, 8)}, which the companion authored, so no person decided it` };\n }\n const trailers = readDecisionTrailers(commit);\n if (!trailers.has(AcceptedChangeTrailerKey.PURPOSE)\n || trailers.get(AcceptedChangeTrailerKey.ACTOR) !== PERSON_DECISION_ACTOR_TRAILER_VALUE\n || trailers.get(AcceptedChangeTrailerKey.ACCEPT_ORIGIN) !== AcceptOrigin.OPERATOR) {\n return { honoured: false, reason: `it was last changed by ${commit.sha.slice(0, 8)}, which is not a decision recorded through \\`wildo build close\\` or \\`wildo build approve\\`` };\n }\n return { honoured: true };\n}\n\nconst NonEmptyTextSchema = z.string().trim().min(1);\n\nexport const BuildTaskClosureSchema = z.strictObject({\n taskRef: NonEmptyTextSchema,\n kind: z.enum(BuildTaskClosureKind),\n /** The task (for `SATISFIED_BY_TASK`) or the full commit SHA (for `SATISFIED_BY_COMMIT`). Absent when declined. */\n satisfiedBy: NonEmptyTextSchema.optional(),\n /** Why, in the person's words. Required: a closure nobody can explain is a probe silenced, not a decision. */\n reason: NonEmptyTextSchema,\n closedAt: z.iso.datetime(),\n}).superRefine((closure, context) => {\n const needsSatisfier = closure.kind !== BuildTaskClosureKind.DECLINED;\n if (needsSatisfier !== (closure.satisfiedBy !== undefined)) {\n context.addIssue({ code: 'custom', path: ['satisfiedBy'], message: needsSatisfier ? `a ${closure.kind} closure names what satisfied it` : 'a declined closure names nothing that satisfied it' });\n }\n});\nexport type BuildTaskClosure = z.infer<typeof BuildTaskClosureSchema>;\n\n/**\n * A derived follow-up a person reviewed and let run (#3227, GUIDED posture). Only a follow-up: a task of the accepted\n * plan was reviewed when the plan was.\n */\nexport const BuildFollowUpApprovalSchema = z.strictObject({\n taskRef: NonEmptyTextSchema.refine((taskRef) => taskRef.startsWith(HOST_DERIVED_FOLLOW_UP_TASK_REF_PREFIX), { message: 'only a derived follow-up is approved' }),\n /** What the person said, when they said anything; the commit records who and when either way. */\n note: NonEmptyTextSchema.optional(),\n approvedAt: z.iso.datetime(),\n});\nexport type BuildFollowUpApproval = z.infer<typeof BuildFollowUpApprovalSchema>;\n\nexport const BuildTaskDecisionsFileSchema = z.strictObject({\n closures: z.array(BuildTaskClosureSchema).default([]),\n followUpApprovals: z.array(BuildFollowUpApprovalSchema).default([]),\n});\n\n/** What a committed decisions file holds, latest per task. */\nexport interface BuildTaskDecisions {\n readonly closures: ReadonlyMap<string, BuildTaskClosure>;\n readonly followUpApprovals: ReadonlyMap<string, BuildFollowUpApproval>;\n /** Set when the file did not parse: it then counts NO decision, and the reader says so. */\n readonly unreadable?: string;\n /** How the committed bytes stand ({@link BuildTaskDecisionsStanding}); HONOURED with no file means none were recorded. */\n readonly standing: BuildTaskDecisionsStanding;\n /** Why they are NOT_HONOURED or UNKNOWN, in a sentence a person can act on. */\n readonly reason?: string;\n /** Named conditions on single run records (a window whose commits no longer exist), each with its remedy. */\n readonly conditions?: readonly string[];\n /**\n * UNKNOWN only: every task the committed file NAMES, read without trusting it. They and their dependents are held,\n * never dispatched, until the standing is known (an unread closure must not let a closed task run again).\n */\n readonly heldTaskRefs?: ReadonlySet<string>;\n}\n\n/** A decision refused before anything was written: the caller's request, named. */\nexport class BuildTaskDecisionRefusedError extends Error {\n public constructor(message: string) {\n super(message);\n this.name = 'BuildTaskDecisionRefusedError';\n }\n}\n\n/**\n * The decisions a committed file holds. A file that does not parse yields NONE and says so through `unreadable`:\n * landing must never read a malformed decision as a closure, and the plan must still be read.\n */\nexport function parseBuildTaskDecisions(text: string | undefined | null): BuildTaskDecisions {\n const none = { closures: new Map(), followUpApprovals: new Map(), standing: BuildTaskDecisionsStanding.HONOURED };\n if (text === undefined || text === null) return none;\n let json: unknown;\n try {\n json = JSON.parse(text);\n } catch (error) {\n return { ...none, unreadable: `not JSON: ${(error as Error).message}` };\n }\n const parsed = BuildTaskDecisionsFileSchema.safeParse(json);\n if (!parsed.success) return { ...none, unreadable: parsed.error.issues.slice(0, 2).map((issue) => `${issue.path.join('.')}: ${issue.message}`).join('; ') };\n return {\n closures: new Map(parsed.data.closures.map((closure) => [closure.taskRef, closure] as const)),\n followUpApprovals: new Map(parsed.data.followUpApprovals.map((approval) => [approval.taskRef, approval] as const)),\n standing: BuildTaskDecisionsStanding.HONOURED,\n };\n}\n\n/**\n * The file text with one more decision (replacing an earlier one of the same kind for the same task), stable and\n * reviewable. Refuses on a file that does not parse, so no earlier decision is lost by rewriting over it.\n */\nexport function withBuildTaskDecision(\n currentText: string | undefined,\n decision: { readonly closure: BuildTaskClosure } | { readonly followUpApproval: BuildFollowUpApproval },\n): string {\n const current = parseBuildTaskDecisions(currentText);\n if (current.unreadable !== undefined) {\n throw new BuildTaskDecisionRefusedError(`The build-task decisions file does not parse (${current.unreadable}); repair ${BUILD_TASK_DECISIONS_PACKAGE_RELATIVE_PATH} first, so no earlier decision is lost.`);\n }\n const closures = new Map(current.closures);\n const approvals = new Map(current.followUpApprovals);\n if ('closure' in decision) closures.set(decision.closure.taskRef, decision.closure);\n else approvals.set(decision.followUpApproval.taskRef, decision.followUpApproval);\n const byTaskRef = <T extends { readonly taskRef: string }>(entries: Iterable<T>): T[] => [...entries].sort((left, right) => left.taskRef.localeCompare(right.taskRef));\n return `${JSON.stringify({ closures: byTaskRef(closures.values()), followUpApprovals: byTaskRef(approvals.values()) }, null, 2)}\\n`;\n}\n\n/**\n * Which closed tasks count as landed, given what landed on its own. Pure and total over the closures:\n *\n * - `SATISFIED_BY_TASK` counts while its satisfier is landed — by a probe, or by a closure of its own that is not a\n * DECLINE (resolved to a fixed point, so a chain resolves and a cycle resolves to nothing). A declined follow-up built\n * nothing, so it can satisfy nothing;\n * - `SATISFIED_BY_COMMIT` counts: the commit was on HEAD when the closure was made, and the closure is committed after it;\n * - `DECLINED` counts only for a host-derived follow-up;\n * - a closure of a task the plan does not hold (a follow-up whose report has since been superseded) changes nothing;\n * - a task that landed by its own probe is not \"closed\", whatever the file says: the probe is the stronger answer.\n */\nexport function resolveClosedBuildTaskRefs(input: {\n readonly closures: ReadonlyMap<string, BuildTaskClosure>;\n readonly planTaskRefs: ReadonlySet<string>;\n readonly landed: ReadonlySet<string>;\n}): ReadonlyMap<string, BuildTaskClosure> {\n const honoured = new Map<string, BuildTaskClosure>();\n let changed = true;\n while (changed) {\n changed = false;\n for (const closure of input.closures.values()) {\n if (honoured.has(closure.taskRef) || !input.planTaskRefs.has(closure.taskRef) || input.landed.has(closure.taskRef)) continue;\n const counts = closure.kind === BuildTaskClosureKind.SATISFIED_BY_COMMIT\n || (closure.kind === BuildTaskClosureKind.DECLINED && closure.taskRef.startsWith(HOST_DERIVED_FOLLOW_UP_TASK_REF_PREFIX))\n || (closure.kind === BuildTaskClosureKind.SATISFIED_BY_TASK && closure.satisfiedBy !== undefined\n && (input.landed.has(closure.satisfiedBy)\n || (honoured.has(closure.satisfiedBy) && honoured.get(closure.satisfiedBy)!.kind !== BuildTaskClosureKind.DECLINED)));\n if (!counts) continue;\n honoured.set(closure.taskRef, closure);\n changed = true;\n }\n }\n return honoured;\n}\n\n/**\n * Whether the autonomy posture makes a derived follow-up wait for a person's review before it runs (#3227). Asked\n * through the ONE posture table, as an APPROVE_RESULT boundary: a follow-up is work the accepted plan never listed, so\n * letting it run is approving a result. GUIDED suspends there; YOLO_LIGHT and YOLO proceed, as they do for every result.\n */\nexport function followUpsAwaitReviewUnder(posture: Journey_AutonomyPreset): boolean {\n return laneBoundaryTreatmentFor(posture, PlaybookLaneBoundaryDecision.APPROVE_RESULT) === LaneBoundaryTreatment.SUSPEND;\n}\n\n/**\n * Whether one task is a derived follow-up still waiting for that review (#3227): the posture asks for one, nobody has\n * approved it, and it has never completed a run (a follow-up that already ran was let through before; holding it now\n * would hide what it did). A task of the accepted plan never waits here.\n */\nexport function followUpAwaitsReview(input: {\n readonly posture: Journey_AutonomyPreset;\n readonly taskRef: string;\n readonly approvals: ReadonlyMap<string, BuildFollowUpApproval>;\n readonly hasCompletedRun: boolean;\n}): boolean {\n return input.taskRef.startsWith(HOST_DERIVED_FOLLOW_UP_TASK_REF_PREFIX)\n && followUpsAwaitReviewUnder(input.posture)\n && !input.approvals.has(input.taskRef)\n && !input.hasCompletedRun;\n}\n"]}
1
+ {"version":3,"file":"application-build-task-closure.companion.js","sourceRoot":"","sources":["../../../../src/meta-workflows/services/application-build-task-closure.companion.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,oBAAoB,EAAE,MAAM,gCAAgC,CAAC;AACtE,OAAO,EAAE,4BAA4B,EAAE,MAAM,wCAAwC,CAAC;AACtF,OAAO,EAAE,wBAAwB,EAAE,YAAY,EAAE,uBAAuB,EAA+B,MAAM,oDAAoD,CAAC;AAElK,OAAO,EAAE,0CAA0C,EAAE,MAAM,4CAA4C,CAAC;AACx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CAAC,GAAG,CAAC,OAAO,CAAC,WAAW,CAAC,IAAI,QAAQ,CAAC,GAAG,CAAC,OAAO,CAAC,WAAW,CAAE,CAAC,IAAI,KAAK,oBAAoB,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC;YAC5H,IAAI,CAAC,MAAM;gBAAE,SAAS;YACtB,QAAQ,CAAC,GAAG,CAAC,OAAO,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;YACvC,OAAO,GAAG,IAAI,CAAC;QACjB,CAAC;IACH,CAAC;IACD,OAAO,QAAQ,CAAC;AAClB,CAAC;AAED;;;;GAIG;AACH,MAAM,UAAU,yBAAyB,CAAC,OAA+B;IACvE,OAAO,wBAAwB,CAAC,OAAO,EAAE,4BAA4B,CAAC,cAAc,CAAC,KAAK,qBAAqB,CAAC,OAAO,CAAC;AAC1H,CAAC;AAED;;;;GAIG;AACH,MAAM,UAAU,oBAAoB,CAAC,KAKpC;IACC,OAAO,KAAK,CAAC,OAAO,CAAC,UAAU,CAAC,sCAAsC,CAAC;WAClE,yBAAyB,CAAC,KAAK,CAAC,OAAO,CAAC;WACxC,CAAC,KAAK,CAAC,SAAS,CAAC,GAAG,CAAC,KAAK,CAAC,OAAO,CAAC;WACnC,CAAC,KAAK,CAAC,eAAe,CAAC;AAC9B,CAAC","sourcesContent":["import { z } from 'zod';\n\nimport { BuildTaskClosureKind } from '@wildo-ai/platform-core-shared';\nimport { PlaybookLaneBoundaryDecision } from '@wildo-ai/application-creation-runtime';\nimport { AcceptedChangeTrailerKey, AcceptOrigin, COMPANION_COMMIT_AUTHOR, type Journey_AutonomyPreset } from '@wildo-ai/saas-specifications/application-creation';\n\nimport { BUILD_TASK_DECISIONS_PACKAGE_RELATIVE_PATH } from '../models/build-task-decisions-path.models';\nimport { LaneBoundaryTreatment, laneBoundaryTreatmentFor } from '../models/playbook-run-checkpoint.models';\nimport { HOST_DERIVED_FOLLOW_UP_TASK_REF_PREFIX } from './application-build-follow-up-derivation.companion';\n\n/**\n * A person's DECISIONS about build tasks the plan cannot settle on its own (#3224, #3225, #3227): `wildo build close`\n * and `wildo build approve`.\n *\n * ## Why doors, and why they are a committed file\n *\n * A task can be done while its probe can never say so. On app-creation-test-007 three tasks were `completed_unlanded`\n * for the rest of the build: `build-task-enquiry-qualification-creates-opportunity`, whose behaviour the lifecycle task\n * had already built into `qualify`; `build-task-sidebar-placement`, whose sidebar the app-shell task had already written;\n * and `build-task-navigation-config`. Each worker verified the work, changed nothing, and parked or failed to land, and\n * the plan could never reach 100%. The plan-side defects that produced them are refused now, but a plan landed before,\n * or a probe that misses, still needs a way past that a person can take, says why, and can be reviewed later\n * (`design-philosophy.md`, \"Immutability needs a paired mutation path\"). The same holds for a host-derived follow-up the\n * creator does not want (#3227): only a person can decline it, and under the GUIDED posture only a person can let one run.\n *\n * A decision about what the build delivers is recorded the way every decision of this lane is: a file in the\n * application's specifications, committed (`one-source-of-truth.md`: accepted = committed). Landing and dispatch read\n * it from HEAD only, so an uncommitted decision changes nothing, two branches can carry different decisions, and\n * `git log` says who decided what and why (the commit carries the person's identity and the reason as its purpose\n * trailer). Run records were rejected for it: they are a per-run cache, and a closure is a fact about the product.\n *\n * ## Who may decide\n *\n * A PERSON, through the console or the companion route behind it; nothing in the selector, the wave or the loop calls\n * these doors. The plugin's command list leaves both verbs to the person (`claude-plugin-authored-commands.test.ts`).\n * Neither is a dispatch: a decision runs nothing, and a `wildo build stop` hold stays where it is.\n *\n * ## What a closure is NOT\n *\n * It never makes a task's product true. A task closed as satisfied by another task is landed only while that task is\n * landed, and the record carries the closure beside the landing, so a reader always sees that a person, not a probe,\n * said it. DECLINING is only for a host-derived follow-up: declining a task of the accepted plan would report a build\n * complete without what it decomposed, which the plan's own coverage refusal exists to prevent (#2220).\n */\n\n/**\n * The trailer value the decision door writes for a person's decision (`DecisionRecordActor.CREATOR`). Named here, not\n * imported, because the accept service that owns that enum imports this module's neighbours; the pin in the closure test\n * holds the two equal.\n */\nexport const PERSON_DECISION_ACTOR_TRAILER_VALUE = 'creator';\n\n/**\n * Where a person's build-task decisions stand when they are read (#3224 review, the rules the orchestrator fixed):\n * three outcomes, never two, because an unknown is not a refusal.\n */\nexport enum BuildTaskDecisionsStanding {\n /** HEAD's bytes were produced by a person's door, and set outside every coding run's window: they decide. */\n HONOURED = 'honoured',\n /** HEAD's bytes are not a person's decision (or there are none): nothing is decided, and the reason is named. */\n NOT_HONOURED = 'not_honoured',\n /**\n * Git or the run records could not be read, so whether a person decided cannot be known. The landing pass is\n * PROVISIONAL, the tasks the file names are held, and the decision door refuses: it must never write a file that\n * drops decisions it could not read.\n */\n UNKNOWN = 'unknown',\n}\n\n/** The commit that last changed the decisions file, as the reader asks git for it. */\nexport interface BuildTaskDecisionsCommit {\n readonly sha: string;\n readonly authorName: string;\n readonly authorEmail: string;\n /** The whole message, trailers included. */\n readonly body: string;\n}\n\n/**\n * Which decisions bytes the reader honours (#3224 review): by CONTENT, never by which commit came last.\n *\n * HEAD's blob of the file is honoured exactly when BOTH (a) the commit that last changed the file (the one that set\n * HEAD's bytes) lies outside every coding run's window, AND (b) some commit made through a person's door\n * ({@link decisionsCommitIsAPersonsDoor}) outside every window, and RECORDED by the door in the companion's own run\n * records (#3284, {@link doorCommitIsRecorded}), produced that same blob. (b) alone let a run replay old\n * door-produced bytes; (a) alone let a run's honest-looking commit through. Keying on the LAST commit broke the documented undo: `git revert` writes no door trailers, so reverting one\n * decision made the whole file ignored (earlier closures unlanded, declined follow-ups ran again) and the next decision\n * replaced it under the person's name. A revert restores a blob a door produced, so it stays honoured; bytes no door\n * produced (an agent's write, a hand edit, an auto-merged JSON) decide nothing.\n *\n * The run-window condition answers a run that commits by itself (an UNRESTRICTED agent's shell can `git commit` the file\n * under the local identity with forged trailers, and nothing blocks a commit made during a run, it is only recorded).\n * The decision door refuses while any coding run is live, so a genuine door commit is never inside a run's window\n * (`baseline..postRun`); a commit inside one is treated as the run's. Same-user gaps that remain (a background process\n * the run leaves behind calling the door after it settles; editing the run records; rebasing a forged commit out of\n * its window) are deliberate same-user tampering outside a run, out of this guard's threat model, tracked in #3284.\n *\n * `latestDoorCommit` is the newest door commit outside every window: what a decision door builds on when HEAD's bytes\n * are not honoured, so a person's earlier decisions are carried and the unhonoured bytes are dropped.\n */\nexport function resolveHonouredDecisionsBlob(input: {\n readonly headBlobId: string | undefined;\n /**\n * Newest first: `commits[0]` is the commit that set HEAD's current bytes. Each carries the blob it left at the path\n * (absent when it removed the file), in-window commits included, so a reason can name them.\n */\n readonly commits: readonly (BuildTaskDecisionsCommit & { readonly blobId?: string })[];\n /** Commits made inside some coding run's window, each with a sentence naming that run. */\n readonly insideRunWindows: ReadonlyMap<string, string>;\n /**\n * The decisions the door RECORDED in the companion's own run records (#3284), by nonce, with the SHA once completed:\n * a door commit counts only when one of them carries the nonce it names ({@link doorCommitIsRecorded}).\n */\n readonly recordedDoorDecisions: ReadonlyMap<string, RecordedDoorDecision>;\n}): {\n readonly standing: BuildTaskDecisionsStanding.HONOURED | BuildTaskDecisionsStanding.NOT_HONOURED;\n readonly reason?: string;\n readonly latestDoorCommit?: { readonly sha: string; readonly blobId: string };\n} {\n const doorCommits = input.commits.filter((commit) => commit.blobId !== undefined\n && !input.insideRunWindows.has(commit.sha)\n && decisionsCommitIsAPersonsDoor(commit).honoured\n && doorCommitIsRecorded(commit, input.commits, input.recordedDoorDecisions));\n const latest = doorCommits[0];\n const latestDoorCommit = latest !== undefined ? { sha: latest.sha, blobId: latest.blobId! } : undefined;\n const notHonoured = (reason: string) => ({ standing: BuildTaskDecisionsStanding.NOT_HONOURED as const, reason, ...(latestDoorCommit ? { latestDoorCommit } : {}) });\n if (input.headBlobId === undefined) return notHonoured('HEAD holds no decisions file');\n /*\n * R1 (a): the commit that SET HEAD's bytes must lie outside every run window. Without it a run could replay old\n * door-produced bytes (`git checkout <old> -- file && git commit`) and pass (b): the bytes are a door's, the act is not.\n */\n const setter = input.commits[0];\n if (setter !== undefined && input.insideRunWindows.has(setter.sha)) {\n return notHonoured(`its bytes were last set by ${setter.sha.slice(0, 8)}, inside ${input.insideRunWindows.get(setter.sha)}, so no person decided them`);\n }\n // R1 (b): those bytes are a blob a door commit made outside every run window produced.\n if (doorCommits.some((commit) => commit.blobId === input.headBlobId)) {\n return { standing: BuildTaskDecisionsStanding.HONOURED, ...(latestDoorCommit ? { latestDoorCommit } : {}) };\n }\n const unrecorded = setter !== undefined && decisionsCommitIsAPersonsDoor(setter).honoured && !doorCommitIsRecorded(setter, input.commits, input.recordedDoorDecisions) ? setter : undefined;\n return notHonoured(unrecorded\n ? `its bytes were set by ${unrecorded.sha.slice(0, 8)}, which carries the door's trailers but no decision the door recorded under its \\`${AcceptedChangeTrailerKey.DECISION_ID}\\`, so it was not made through \\`wildo build close\\` or \\`wildo build approve\\` (a direct git commit, or one rebased or cherry-picked to a new SHA). Make the decision again with \\`wildo build close\\` or \\`wildo build approve\\`; earlier recorded decisions are carried`\n : 'its bytes are not what any decision recorded through `wildo build close` or `wildo build approve` outside a coding run produced');\n}\n\n/** A decision the door recorded in the companion's run records (#3284): opened before its commit, completed with its SHA. */\nexport interface RecordedDoorDecision {\n /** Absent while the record is pending: the commit happened (or not) and completing the record failed or has not run. */\n readonly commitSha?: string;\n}\n\n/**\n * Whether the door recorded the decision a door-shaped commit names (#3284). The door opens its record, keyed by a\n * fresh nonce, BEFORE committing, puts the nonce in the commit's `Wildo-Decision-Id` trailer, then completes the record\n * with the SHA. So a commit is recorded when a record carries its nonce and either names this SHA, or is still pending\n * (a crash after the commit) and this is the only commit naming that nonce. A direct commit carries no nonce a record\n * has; a commit replaying a completed nonce at another SHA (rebased, cherry-picked, copied) is refused by the SHA.\n */\nexport function doorCommitIsRecorded(\n commit: BuildTaskDecisionsCommit,\n history: readonly BuildTaskDecisionsCommit[],\n recorded: ReadonlyMap<string, RecordedDoorDecision>,\n): boolean {\n const decisionId = readDecisionTrailers(commit).get(AcceptedChangeTrailerKey.DECISION_ID);\n if (decisionId === undefined) return false;\n const record = recorded.get(decisionId);\n if (record === undefined) return false;\n if (record.commitSha !== undefined) return record.commitSha === commit.sha;\n return history.filter((other) => readDecisionTrailers(other).get(AcceptedChangeTrailerKey.DECISION_ID) === decisionId).length === 1;\n}\n\n/** The trailer paragraph (the message's last paragraph) of a decisions commit, by key. */\nfunction readDecisionTrailers(commit: BuildTaskDecisionsCommit): ReadonlyMap<string, string> {\n const trailers = new Map<string, string>();\n for (const line of (commit.body.trim().split(/\\n\\s*\\n/u).pop() ?? '').split('\\n')) {\n const match = /^([A-Za-z-]+):\\s*(.*)$/u.exec(line.trim());\n if (match) trailers.set(match[1]!, match[2]!.trim());\n }\n return trailers;\n}\n\n/**\n * Whether ONE commit was made through a PERSON's door (`wildo build close` / `approve`): what\n * {@link resolveHonouredDecisionsBlob} asks of each commit whose bytes it might honour. The door writes a decision\n * record: authored by git's own identity (never the companion's), with `Wildo-Purpose`, `Wildo-Actor: creator` and\n * `Wildo-Accept-Origin: operator` in its trailer paragraph. A person's hand commit without the trailers is not a door.\n * Trailers alone do not prove a person (a shell can write them); the run-window condition in the resolver is what\n * keeps a run's own commit out.\n */\nexport function decisionsCommitIsAPersonsDoor(commit: BuildTaskDecisionsCommit): { readonly honoured: true } | { readonly honoured: false; readonly reason: string } {\n if (commit.authorEmail === COMPANION_COMMIT_AUTHOR.email || commit.authorName === COMPANION_COMMIT_AUTHOR.name) {\n return { honoured: false, reason: `it was last changed by ${commit.sha.slice(0, 8)}, which the companion authored, so no person decided it` };\n }\n const trailers = readDecisionTrailers(commit);\n if (!trailers.has(AcceptedChangeTrailerKey.PURPOSE)\n || trailers.get(AcceptedChangeTrailerKey.ACTOR) !== PERSON_DECISION_ACTOR_TRAILER_VALUE\n || trailers.get(AcceptedChangeTrailerKey.ACCEPT_ORIGIN) !== AcceptOrigin.OPERATOR) {\n return { honoured: false, reason: `it was last changed by ${commit.sha.slice(0, 8)}, which is not a decision recorded through \\`wildo build close\\` or \\`wildo build approve\\`` };\n }\n return { honoured: true };\n}\n\nconst NonEmptyTextSchema = z.string().trim().min(1);\n\nexport const BuildTaskClosureSchema = z.strictObject({\n taskRef: NonEmptyTextSchema,\n kind: z.enum(BuildTaskClosureKind),\n /** The task (for `SATISFIED_BY_TASK`) or the full commit SHA (for `SATISFIED_BY_COMMIT`). Absent when declined. */\n satisfiedBy: NonEmptyTextSchema.optional(),\n /** Why, in the person's words. Required: a closure nobody can explain is a probe silenced, not a decision. */\n reason: NonEmptyTextSchema,\n closedAt: z.iso.datetime(),\n /**\n * For a derived follow-up: the reported gaps (their `followUpGapKey` values) its objective showed when the person decided\n * (#3832). A follow-up absorbs every report on its target until it is decided or dispatched, so the decision covers\n * exactly these and the follow-up carries them from then on. Absent on a decision recorded before the field: the\n * follow-up then carries its own report only.\n */\n carriedFollowUpGapKeys: z.array(NonEmptyTextSchema).optional(),\n}).superRefine((closure, context) => {\n const needsSatisfier = closure.kind !== BuildTaskClosureKind.DECLINED;\n if (needsSatisfier !== (closure.satisfiedBy !== undefined)) {\n context.addIssue({ code: 'custom', path: ['satisfiedBy'], message: needsSatisfier ? `a ${closure.kind} closure names what satisfied it` : 'a declined closure names nothing that satisfied it' });\n }\n});\nexport type BuildTaskClosure = z.infer<typeof BuildTaskClosureSchema>;\n\n/**\n * A derived follow-up a person reviewed and let run (#3227, GUIDED posture). Only a follow-up: a task of the accepted\n * plan was reviewed when the plan was.\n */\nexport const BuildFollowUpApprovalSchema = z.strictObject({\n taskRef: NonEmptyTextSchema.refine((taskRef) => taskRef.startsWith(HOST_DERIVED_FOLLOW_UP_TASK_REF_PREFIX), { message: 'only a derived follow-up is approved' }),\n /** What the person said, when they said anything; the commit records who and when either way. */\n note: NonEmptyTextSchema.optional(),\n approvedAt: z.iso.datetime(),\n /**\n * For a derived follow-up: the reported gaps (their `followUpGapKey` values) its objective showed when the person decided\n * (#3832). A follow-up absorbs every report on its target until it is decided or dispatched, so the decision covers\n * exactly these and the follow-up carries them from then on. Absent on a decision recorded before the field: the\n * follow-up then carries its own report only.\n */\n carriedFollowUpGapKeys: z.array(NonEmptyTextSchema).optional(),\n});\nexport type BuildFollowUpApproval = z.infer<typeof BuildFollowUpApprovalSchema>;\n\n/**\n * The decisions file (strict). A field added to a record is unreadable to an OLDER companion, which then honours no\n * decision at all until it is updated: deliver the current companion before relying on a new field (#3832 added\n * `carriedFollowUpGapKeys`).\n */\nexport const BuildTaskDecisionsFileSchema = z.strictObject({\n closures: z.array(BuildTaskClosureSchema).default([]),\n followUpApprovals: z.array(BuildFollowUpApprovalSchema).default([]),\n});\n\n/** What a committed decisions file holds, latest per task. */\nexport interface BuildTaskDecisions {\n readonly closures: ReadonlyMap<string, BuildTaskClosure>;\n readonly followUpApprovals: ReadonlyMap<string, BuildFollowUpApproval>;\n /** Set when the file did not parse: it then counts NO decision, and the reader says so. */\n readonly unreadable?: string;\n /** How the committed bytes stand ({@link BuildTaskDecisionsStanding}); HONOURED with no file means none were recorded. */\n readonly standing: BuildTaskDecisionsStanding;\n /** Why they are NOT_HONOURED or UNKNOWN, in a sentence a person can act on. */\n readonly reason?: string;\n /** Named conditions on single run records (a window whose commits no longer exist), each with its remedy. */\n readonly conditions?: readonly string[];\n /**\n * UNKNOWN only: every task the committed file NAMES, read without trusting it. They and their dependents are held,\n * never dispatched, until the standing is known (an unread closure must not let a closed task run again).\n */\n readonly heldTaskRefs?: ReadonlySet<string>;\n}\n\n/** A decision refused before anything was written: the caller's request, named. */\nexport class BuildTaskDecisionRefusedError extends Error {\n public constructor(message: string) {\n super(message);\n this.name = 'BuildTaskDecisionRefusedError';\n }\n}\n\n/**\n * The decisions a committed file holds. A file that does not parse yields NONE and says so through `unreadable`:\n * landing must never read a malformed decision as a closure, and the plan must still be read.\n */\nexport function parseBuildTaskDecisions(text: string | undefined | null): BuildTaskDecisions {\n const none = { closures: new Map(), followUpApprovals: new Map(), standing: BuildTaskDecisionsStanding.HONOURED };\n if (text === undefined || text === null) return none;\n let json: unknown;\n try {\n json = JSON.parse(text);\n } catch (error) {\n return { ...none, unreadable: `not JSON: ${(error as Error).message}` };\n }\n const parsed = BuildTaskDecisionsFileSchema.safeParse(json);\n if (!parsed.success) return { ...none, unreadable: parsed.error.issues.slice(0, 2).map((issue) => `${issue.path.join('.')}: ${issue.message}`).join('; ') };\n return {\n closures: new Map(parsed.data.closures.map((closure) => [closure.taskRef, closure] as const)),\n followUpApprovals: new Map(parsed.data.followUpApprovals.map((approval) => [approval.taskRef, approval] as const)),\n standing: BuildTaskDecisionsStanding.HONOURED,\n };\n}\n\n/**\n * The file text with one more decision (replacing an earlier one of the same kind for the same task), stable and\n * reviewable. Refuses on a file that does not parse, so no earlier decision is lost by rewriting over it.\n */\nexport function withBuildTaskDecision(\n currentText: string | undefined,\n decision: { readonly closure: BuildTaskClosure } | { readonly followUpApproval: BuildFollowUpApproval },\n): string {\n const current = parseBuildTaskDecisions(currentText);\n if (current.unreadable !== undefined) {\n throw new BuildTaskDecisionRefusedError(`The build-task decisions file does not parse (${current.unreadable}); repair ${BUILD_TASK_DECISIONS_PACKAGE_RELATIVE_PATH} first, so no earlier decision is lost.`);\n }\n const closures = new Map(current.closures);\n const approvals = new Map(current.followUpApprovals);\n if ('closure' in decision) closures.set(decision.closure.taskRef, decision.closure);\n else approvals.set(decision.followUpApproval.taskRef, decision.followUpApproval);\n const byTaskRef = <T extends { readonly taskRef: string }>(entries: Iterable<T>): T[] => [...entries].sort((left, right) => left.taskRef.localeCompare(right.taskRef));\n return `${JSON.stringify({ closures: byTaskRef(closures.values()), followUpApprovals: byTaskRef(approvals.values()) }, null, 2)}\\n`;\n}\n\n/**\n * Which closed tasks count as landed, given what landed on its own. Pure and total over the closures:\n *\n * - `SATISFIED_BY_TASK` counts while its satisfier is landed — by a probe, or by a closure of its own that is not a\n * DECLINE (resolved to a fixed point, so a chain resolves and a cycle resolves to nothing). A declined follow-up built\n * nothing, so it can satisfy nothing;\n * - `SATISFIED_BY_COMMIT` counts: the commit was on HEAD when the closure was made, and the closure is committed after it;\n * - `DECLINED` counts only for a host-derived follow-up;\n * - a closure of a task the plan does not hold (a follow-up whose report has since been superseded) changes nothing;\n * - a task that landed by its own probe is not \"closed\", whatever the file says: the probe is the stronger answer.\n */\nexport function resolveClosedBuildTaskRefs(input: {\n readonly closures: ReadonlyMap<string, BuildTaskClosure>;\n readonly planTaskRefs: ReadonlySet<string>;\n readonly landed: ReadonlySet<string>;\n}): ReadonlyMap<string, BuildTaskClosure> {\n const honoured = new Map<string, BuildTaskClosure>();\n let changed = true;\n while (changed) {\n changed = false;\n for (const closure of input.closures.values()) {\n if (honoured.has(closure.taskRef) || !input.planTaskRefs.has(closure.taskRef) || input.landed.has(closure.taskRef)) continue;\n const counts = closure.kind === BuildTaskClosureKind.SATISFIED_BY_COMMIT\n || (closure.kind === BuildTaskClosureKind.DECLINED && closure.taskRef.startsWith(HOST_DERIVED_FOLLOW_UP_TASK_REF_PREFIX))\n || (closure.kind === BuildTaskClosureKind.SATISFIED_BY_TASK && closure.satisfiedBy !== undefined\n && (input.landed.has(closure.satisfiedBy)\n || (honoured.has(closure.satisfiedBy) && honoured.get(closure.satisfiedBy)!.kind !== BuildTaskClosureKind.DECLINED)));\n if (!counts) continue;\n honoured.set(closure.taskRef, closure);\n changed = true;\n }\n }\n return honoured;\n}\n\n/**\n * Whether the autonomy posture makes a derived follow-up wait for a person's review before it runs (#3227). Asked\n * through the ONE posture table, as an APPROVE_RESULT boundary: a follow-up is work the accepted plan never listed, so\n * letting it run is approving a result. GUIDED suspends there; YOLO_LIGHT and YOLO proceed, as they do for every result.\n */\nexport function followUpsAwaitReviewUnder(posture: Journey_AutonomyPreset): boolean {\n return laneBoundaryTreatmentFor(posture, PlaybookLaneBoundaryDecision.APPROVE_RESULT) === LaneBoundaryTreatment.SUSPEND;\n}\n\n/**\n * Whether one task is a derived follow-up still waiting for that review (#3227): the posture asks for one, nobody has\n * approved it, and it has never completed a run (a follow-up that already ran was let through before; holding it now\n * would hide what it did). A task of the accepted plan never waits here.\n */\nexport function followUpAwaitsReview(input: {\n readonly posture: Journey_AutonomyPreset;\n readonly taskRef: string;\n readonly approvals: ReadonlyMap<string, BuildFollowUpApproval>;\n readonly hasCompletedRun: boolean;\n}): boolean {\n return input.taskRef.startsWith(HOST_DERIVED_FOLLOW_UP_TASK_REF_PREFIX)\n && followUpsAwaitReviewUnder(input.posture)\n && !input.approvals.has(input.taskRef)\n && !input.hasCompletedRun;\n}\n"]}
@@ -583,7 +583,7 @@ export declare function dataSeedFileStem(seedKey: string): string;
583
583
  * decomposer that forgot to list it must not leave the agent without it.
584
584
  */
585
585
  export declare function productDerivedSkillRefs(task: BuildPlanTask): readonly string[];
586
- /** Where a resource's schema lives in the standard layout — the file a resource SCHEMA task writes. */
586
+ /** Where a resource's schema lives in the standard layout — the file a resource SCHEMA task writes (the module layout convention, #3904). */
587
587
  export declare function resourceSchemaFilePath(moduleRef: string, resourceRef: string): string;
588
588
  /**
589
589
  * Does this schema source DECLARE personal data (#2495)? Read lexically, with comments blanked, because at dispatch the
@@ -1 +1 @@
1
- {"version":3,"file":"application-build-task-coding-policy.companion.service.d.ts","sourceRoot":"","sources":["../../../../src/meta-workflows/services/application-build-task-coding-policy.companion.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,wBAAwB,EAGxB,qBAAqB,EACrB,gBAAgB,EAGhB,KAAK,aAAa,EAMlB,KAAK,gBAAgB,EAiBrB,KAAK,oBAAoB,EAC1B,MAAM,oDAAoD,CAAC;AAE5D,OAAO,EAAiF,KAAK,qBAAqB,EAAE,KAAK,kBAAkB,EAAE,KAAK,gCAAgC,EAAE,KAAK,+BAA+B,EAAE,MAAM,uBAAuB,CAAC;AAExP,OAAO,EAAE,iBAAiB,EAAuB,MAAM,qCAAqC,CAAC;AAW7F;;;;;;;;;;GAUG;AACH,MAAM,WAAW,gCAAgC;IAC/C,QAAQ,CAAC,mBAAmB,EAAE,SAAS,MAAM,EAAE,CAAC;IAChD,QAAQ,CAAC,sBAAsB,EAAE,SAAS,MAAM,EAAE,CAAC;IACnD,QAAQ,C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M,GAAG,MAAM,CAE/E;AAED,kHAAkH;AAClH,wBAAgB,sBAAsB,CAAC,OAAO,EAAE,gBAAgB,GAAG,MAAM,CAExE;AAED;;;;;;GAMG;AACH,wBAAgB,2BAA2B,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,CAIpE;AAED;;;GAGG;AACH,eAAO,MAAM,2BAA2B,2CAA2C,CAAC;AAEpF,sFAAsF;AACtF,oBAAY,yBAAyB;IACnC,+CAA+C;IAC/C,OAAO,YAAY;IACnB,2BAA2B;IAC3B,QAAQ,aAAa;IACrB,qHAAqH;IACrH,MAAM,WAAW;IACjB,yHAAyH;IACzH,YAAY,iBAAiB;CAC9B;AAED;;;;GAIG;AACH,wBAAgB,wBAAwB,CAAC,IAAI,EAAE,MAAM,GAAG,SAAS,GAAG,yBAAyB,CAgB5F;AAcD;;;GAGG;AACH,oBAAY,4BAA4B;IACtC;;;OAGG;IACH,4BAA4B,iCAAiC;CAC9D;AAED,sHAAsH;AACtH,MAAM,WAAW,wBAAwB;IACvC,QAAQ,CAAC,IAAI,EAAE,4BAA4B,CAAC;IAC5C,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IAC7B,QAAQ,CAAC,WAAW,EAAE,yBAAyB,CAAC;IAChD,2FAA2F;IAC3F,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;CACzB;AAED,8HAA8H;AAC9H,wBAAgB,iCAAiC,CAAC,IAAI,EAAE,aAAa,GAAG,OAAO,CAE9E;AAED;;;;;;;;;GASG;AACH,wBAAgB,iCAAiC,CAC/C,IAAI,EAAE,aAAa,EACnB,SAAS,EAAE;IAAE,QAAQ,CAAC,wBAAwB,EAAE,MAAM,GAAG,SAAS,CAAA;CAAE,GACnE,SAAS,wBAAwB,EAAE,CAcrC"}
1
+ {"version":3,"file":"application-build-task-coding-policy.companion.service.d.ts","sourceRoot":"","sources":["../../../../src/meta-workflows/services/application-build-task-coding-policy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AAO,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IAC7B,QAAQ,CAAC,WAAW,EAAE,yBAAyB,CAAC;IAChD,2FAA2F;IAC3F,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;CACzB;AAED,8HAA8H;AAC9H,wBAAgB,iCAAiC,CAAC,IAAI,EAAE,aAAa,GAAG,OAAO,CAE9E;AAED;;;;;;;;;GASG;AACH,wBAAgB,iCAAiC,CAC/C,IAAI,EAAE,aAAa,EACnB,SAAS,EAAE;IAAE,QAAQ,CAAC,wBAAwB,EAAE,MAAM,GAAG,SAAS,CAAA;CAAE,GACnE,SAAS,wBAAwB,EAAE,CAcrC"}
@@ -1,4 +1,4 @@
1
- import { BuildPlanResourceStage, BuildPlanTaskProductKind, BuildPlanWorkerRuntime, ApplicationGuidanceKind, FrontendConfigSurface, PlacementSurface, ProviderBindingScope, BuildPlanTaskTargetKind, isScaffoldedResourceOperationRef, isScaffoldedWebsiteStarterPage, isScaffoldedWebsiteStarterSection, PlacementSubjectKind, placementViewIdentity, INTEGRATION_INBOUND_CHANNEL_SKILL_REF, BILLING_CATALOG_SKILL_REF, APPLICATION_ROLES_SKILL_REF, BuildPlanDataSeedContent, DATA_SEED_SKILL_REF, PDF_TEMPLATE_SKILL_REF, ORGANIZATION_RELATIONSHIPS_SKILL_REF, RESOURCE_RETENTION_SKILL_REF, AGENT_APPROVAL_GATE_SKILL_REF, AI_USE_DECLARATION_SKILL_REF, BUILD_PLAN_AGENT_SHAPE_SKILL_REF, BuildPlanAgentShape, WORK_UNIT_SKILL_REF, ORGANIZATION_TYPE_SKILL_REF, ORGANIZATION_UNIT_CONFINEMENT_SKILL_REF, SYSTEM_OF_RECORD_BINDING_SKILL_REFS, } from '@wildo-ai/saas-specifications/application-creation';
1
+ import { BuildPlanResourceStage, BuildPlanTaskProductKind, BuildPlanWorkerRuntime, ApplicationGuidanceKind, FrontendConfigSurface, PlacementSurface, ProviderBindingScope, BuildPlanTaskTargetKind, isScaffoldedResourceOperationRef, isScaffoldedWebsiteStarterPage, isScaffoldedWebsiteStarterSection, PlacementSubjectKind, placementViewIdentity, INTEGRATION_INBOUND_CHANNEL_SKILL_REF, BILLING_CATALOG_SKILL_REF, APPLICATION_ROLES_SKILL_REF, BuildPlanDataSeedContent, DATA_SEED_SKILL_REF, PDF_TEMPLATE_SKILL_REF, ORGANIZATION_RELATIONSHIPS_SKILL_REF, RESOURCE_RETENTION_SKILL_REF, AGENT_APPROVAL_GATE_SKILL_REF, AI_USE_DECLARATION_SKILL_REF, BUILD_PLAN_AGENT_SHAPE_SKILL_REF, BuildPlanAgentShape, WORK_UNIT_SKILL_REF, ORGANIZATION_TYPE_SKILL_REF, ORGANIZATION_UNIT_CONFINEMENT_SKILL_REF, SYSTEM_OF_RECORD_BINDING_SKILL_REFS, integrationMinionDirectoryName, integrationWorkerDirectoryName, } from '@wildo-ai/saas-specifications/application-creation';
2
2
  import { posix } from 'node:path';
3
3
  import { AgentWorkShortfallKind, isOrganizationRoleOfferedByType, SystemOfRecordAccess } from '@wildo-ai/saas-models';
4
4
  import { LauncherItemTargetKind } from '@wildo-ai/saas-frontend-lib/companion';
@@ -8,6 +8,7 @@ import { flattenNestedStringLabels, parseNestedLabelsTsSource } from '../../i18n
8
8
  import { createInitialAssuranceDocumentAuthorityCatalog, selectAssuranceDocumentBlueprintForDocumentRef, } from '@wildo-ai/saas-specifications/assurance';
9
9
  import { BUILD_TASK_DECISIONS_DEFAULT_APPLICATION_PATH } from '../models/build-task-decisions-path.models.js';
10
10
  import { blankSourceComments } from '@wildo-ai/saas-models/public-runtime';
11
+ import { conventionalModuleFilePath, MODULE_PACKAGES, MODULES_SOURCE_DIRECTORY, ModuleConventionalFileKind } from '../../module-layout/module-layout-convention.companion.js';
11
12
  /** A build task no coding agent may run: the companion owns it (labels, seeds, emails…). */
12
13
  export class ApplicationBuildTaskNotACodingTaskError extends Error {
13
14
  taskRef;
@@ -202,10 +203,18 @@ const PROVIDER_BINDING_DECLARATION_FILE = {
202
203
  [ProviderBindingScope.FRONTEND_APP]: 'frontend/src/provider-contributions.ts',
203
204
  [ProviderBindingScope.WEBSITE]: 'website/src/provider-contributions.ts',
204
205
  };
206
+ /**
207
+ * A worker's package directory, from the integration plan's `worker-<slug>` ref, by the rule the foundation step composes
208
+ * the package with. Every worker path below goes through it: run 44031607175 probed `workers/worker-spreadsheet-import/`
209
+ * for a package composed in `workers/spreadsheet-import/`, and the task never landed.
210
+ */
211
+ const workerPackageDirectory = (workerRef) => `workers/${integrationWorkerDirectoryName(workerRef)}`;
212
+ /** A minion's package directory, by the same rule as {@link workerPackageDirectory}. */
213
+ const minionPackageDirectory = (minionRef) => `minions/${integrationMinionDirectoryName(minionRef)}`;
205
214
  /** A worker's entry file, by runtime — where its jobs are declared and where a landing probe reads. */
206
215
  const WORKER_ENTRY_FILE = {
207
- [BuildPlanWorkerRuntime.NODE]: (workerRef) => `workers/${workerRef}/src/index.ts`,
208
- [BuildPlanWorkerRuntime.RUST]: (workerRef) => `workers/${workerRef}/src/main.rs`,
216
+ [BuildPlanWorkerRuntime.NODE]: (workerRef) => `${workerPackageDirectory(workerRef)}/src/index.ts`,
217
+ [BuildPlanWorkerRuntime.RUST]: (workerRef) => `${workerPackageDirectory(workerRef)}/src/main.rs`,
209
218
  };
210
219
  /**
211
220
  * A documentation chapter's own file, named by its `chapterRef` (#3204). One file per chapter, which nothing imports:
@@ -548,6 +557,12 @@ const CHECK_COVERAGE = {
548
557
  * ones and the module registry in `backend-api/`; a write to either can make the factory refuse at the next start.
549
558
  */
550
559
  'check:resources-registry-init': ['shared-lib/', 'backend-api/'],
560
+ /*
561
+ * Every module's conventional files in their conventional folders (#3904): a write under any package's
562
+ * `src/modules/` can place a module file where the framework never reads it (an email definitions file in `email/`,
563
+ * the reference run 43691253927 defect). Read from source by path and syntax tree, so it speaks about what it covers.
564
+ */
565
+ 'check:module-layout': MODULE_PACKAGES.map((modulePackage) => `${modulePackage}/${MODULES_SOURCE_DIRECTORY}/`),
551
566
  'check:website-typecheck': ['website/'],
552
567
  /*
553
568
  * The website's drawn demos, held to the resources they draw (#2784). After the typecheck: a site that does not
@@ -610,6 +625,9 @@ export function deriveApplicationAssemblyCheckRefs(packageDirectories, nonTypeSc
610
625
  // factory refuses, and a later task can make an earlier one untrue (a removed enum member it names).
611
626
  'check:specification-exports',
612
627
  'check:resources-registry-init',
628
+ // Every module's files where the framework reads them (#3904): a misplacement a task's check carried, or one that
629
+ // predates the build lane, is asked once more at the end, where a repair run moves it.
630
+ 'check:module-layout',
613
631
  'check:website-demo-facts',
614
632
  ...APPLICATION_ASSEMBLY_ONLY_CHECK_REFS,
615
633
  'check:schema-plan-in-sync',
@@ -763,11 +781,11 @@ function resolveBuildPlanTaskTargetCodingPolicy(task) {
763
781
  * one run must reach both. A RUST worker has no TypeScript to check — the honest answer is no
764
782
  * check, stated here, rather than a command the catalog cannot run.
765
783
  */
766
- return policy([`workers/${target.workerRef}/`, 'wildo.saas.config.ts'], {
767
- nonTypeScriptPackages: target.runtime === BuildPlanWorkerRuntime.NODE ? [] : [`workers/${target.workerRef}`],
784
+ return policy([`${workerPackageDirectory(target.workerRef)}/`, 'wildo.saas.config.ts'], {
785
+ nonTypeScriptPackages: target.runtime === BuildPlanWorkerRuntime.NODE ? [] : [workerPackageDirectory(target.workerRef)],
768
786
  });
769
787
  case BuildPlanTaskTargetKind.MINION:
770
- return policy([`minions/${target.minionRef}/`, 'wildo.saas.config.ts']);
788
+ return policy([`${minionPackageDirectory(target.minionRef)}/`, 'wildo.saas.config.ts']);
771
789
  case BuildPlanTaskTargetKind.PROVIDER_BINDING:
772
790
  /*
773
791
  * Every file a binding can touch, for every scope, because one task may bind one provider on
@@ -1433,9 +1451,9 @@ export function productDerivedSkillRefs(task) {
1433
1451
  ...(kinds.has(BuildPlanTaskProductKind.SYSTEM_OF_RECORD_BINDING) ? SYSTEM_OF_RECORD_BINDING_SKILL_REFS : []),
1434
1452
  ].filter((skillRef, index, all) => all.indexOf(skillRef) === index);
1435
1453
  }
1436
- /** Where a resource's schema lives in the standard layout — the file a resource SCHEMA task writes. */
1454
+ /** Where a resource's schema lives in the standard layout — the file a resource SCHEMA task writes (the module layout convention, #3904). */
1437
1455
  export function resourceSchemaFilePath(moduleRef, resourceRef) {
1438
- return `shared-lib/src/modules/${moduleRef}/resources/${resourceRef}/${resourceRef}.schemas.ts`;
1456
+ return conventionalModuleFilePath(ModuleConventionalFileKind.RESOURCE_SCHEMA, moduleRef, resourceRef);
1439
1457
  }
1440
1458
  /**
1441
1459
  * The field declarations that make a resource hold PERSONAL DATA — the same markers the engine's
@@ -1561,7 +1579,7 @@ function landedProbeDraft(task, product, moduleRefOf) {
1561
1579
  case BuildPlanTaskProductKind.RESOURCE_CUSTOM_VIEW:
1562
1580
  return {
1563
1581
  kind: BuildPlanTaskLandedProbeKind.COMMITTED_FILE_DECLARES,
1564
- path: `frontend/src/modules/${moduleRefOf()}/resources/${product.resourceRef}/${product.resourceRef}.ui-behavior.tsx`,
1582
+ path: conventionalModuleFilePath(ModuleConventionalFileKind.RESOURCE_UI_BEHAVIOR, moduleRefOf(), product.resourceRef),
1565
1583
  // The COMPONENT the binding names, not the plan's ref — which the tree never spells.
1566
1584
  declarations: [resourceCustomViewIdentity(product.viewRef)],
1567
1585
  };
@@ -1574,13 +1592,13 @@ function landedProbeDraft(task, product, moduleRefOf) {
1574
1592
  */
1575
1593
  return {
1576
1594
  kind: BuildPlanTaskLandedProbeKind.COMMITTED_FILE_DECLARES,
1577
- path: `frontend/src/modules/${moduleRefOf()}/resources/${product.resourceRef}/${product.resourceRef}.ui-behavior.tsx`,
1595
+ path: conventionalModuleFilePath(ModuleConventionalFileKind.RESOURCE_UI_BEHAVIOR, moduleRefOf(), product.resourceRef),
1578
1596
  declarations: [product.viewRef],
1579
1597
  };
1580
1598
  case BuildPlanTaskProductKind.RESOURCE_CHART_VIEW:
1581
1599
  return {
1582
1600
  kind: BuildPlanTaskLandedProbeKind.COMMITTED_FILE_DECLARES,
1583
- path: `frontend/src/modules/${moduleRefOf()}/resources/${product.resourceRef}/${product.resourceRef}.ui-behavior.tsx`,
1601
+ path: conventionalModuleFilePath(ModuleConventionalFileKind.RESOURCE_UI_BEHAVIOR, moduleRefOf(), product.resourceRef),
1584
1602
  declarations: [product.chartRef],
1585
1603
  };
1586
1604
  case BuildPlanTaskProductKind.CUSTOM_COMPONENT: {
@@ -1657,9 +1675,12 @@ function landedProbeDraft(task, product, moduleRefOf) {
1657
1675
  * second reason: the WORKER policy beside this one states that the config is in the task's
1658
1676
  * scope *"because the worker's declaration lives there … a task that composes the package
1659
1677
  * and declares it in one run must reach both"*. Composing WITHOUT declaring leaves a package
1660
- * nothing runs, so the declaration — not the directory — is what landing means here. The ref
1661
- * appears twice in it, as the camel key and inside the kebab `path`, and {@link refSpellings}
1662
- * matches either.
1678
+ * nothing runs, so the declaration — not the directory — is what landing means here. What
1679
+ * the config spells is the package's DIRECTORY name, twice: as the camel key and inside the
1680
+ * kebab `path`, and {@link refSpellings} matches either. The plan's `minion-<slug>` ref is
1681
+ * spelled nowhere in it, so the probe asks for the directory name; asking for the ref made
1682
+ * run 44031607175's agents add the ref to the config as comments and an invented ref map,
1683
+ * for the probe to find.
1663
1684
  *
1664
1685
  * ## What this gives up, and why that is the lesser loss
1665
1686
  *
@@ -1669,15 +1690,16 @@ function landedProbeDraft(task, product, moduleRefOf) {
1669
1690
  * Until then the choice is between a probe that is coarse and one that can never match, and
1670
1691
  * a probe that can never match reports finished work as undone forever.
1671
1692
  *
1672
- * NOT applied to `APPLICATION_WORKER` above, which has the same shape by inspection — a
1673
- * worker's entry declares an HTTP route, not job refs — because no application has a
1674
- * journey-built worker to measure against, and changing a probe on a suspicion is what this
1675
- * comment exists to stop.
1693
+ * NOT applied to `APPLICATION_WORKER` above, and now measured rather than suspected: the
1694
+ * first journey-built worker (client creation run 44031607175) registers each job as a
1695
+ * route named after its job ref (`router.post('/parse-and-preview', …)` in
1696
+ * `workers/spreadsheet-import/src/index.ts`), so the job refs ARE spelled in its entry. That
1697
+ * task failed to land only because its entry was looked for under the wrong directory.
1676
1698
  */
1677
1699
  return {
1678
1700
  kind: BuildPlanTaskLandedProbeKind.COMMITTED_FILE_DECLARES,
1679
1701
  path: 'wildo.saas.config.ts',
1680
- declarations: [product.minionRef],
1702
+ declarations: [integrationMinionDirectoryName(product.minionRef)],
1681
1703
  };
1682
1704
  case BuildPlanTaskProductKind.PROVIDER_BINDING:
1683
1705
  // An augmentation (#2025) lands on its opt-in, in the application config whatever its scope; see
@@ -1777,7 +1799,7 @@ function landedProbeDraft(task, product, moduleRefOf) {
1777
1799
  return undefined;
1778
1800
  return {
1779
1801
  kind: BuildPlanTaskLandedProbeKind.COMMITTED_FILE_DECLARES,
1780
- path: `shared-lib/src/modules/${moduleRefOf()}/resources/${product.resourceRef}/${product.resourceRef}.resources-config.ts`,
1802
+ path: conventionalModuleFilePath(ModuleConventionalFileKind.RESOURCE_CONFIGURATION, moduleRefOf(), product.resourceRef),
1781
1803
  declarations: gained,
1782
1804
  };
1783
1805
  }
@@ -1797,12 +1819,12 @@ function landedProbeDraft(task, product, moduleRefOf) {
1797
1819
  */
1798
1820
  return {
1799
1821
  kind: BuildPlanTaskLandedProbeKind.COMMITTED_FILE,
1800
- path: `frontend/src/modules/${moduleRefOf()}/resources/${product.resourceRef}/${product.resourceRef}.ui-behavior.tsx`,
1822
+ path: conventionalModuleFilePath(ModuleConventionalFileKind.RESOURCE_UI_BEHAVIOR, moduleRefOf(), product.resourceRef),
1801
1823
  };
1802
1824
  case BuildPlanTaskProductKind.RESOURCE_SPECIFICATION:
1803
1825
  return {
1804
1826
  kind: BuildPlanTaskLandedProbeKind.COMMITTED_FILE_DECLARES,
1805
- path: `specifications/src/modules/${moduleRefOf()}/resources/${product.resourceRef}.resource.specification.ts`,
1827
+ path: conventionalModuleFilePath(ModuleConventionalFileKind.RESOURCE_SPECIFICATION, moduleRefOf(), product.resourceRef),
1806
1828
  declarations: product.fieldRefs,
1807
1829
  };
1808
1830
  case BuildPlanTaskProductKind.RESOURCE_RELATIONSHIP:
@@ -1818,13 +1840,13 @@ function landedProbeDraft(task, product, moduleRefOf) {
1818
1840
  */
1819
1841
  return {
1820
1842
  kind: BuildPlanTaskLandedProbeKind.COMMITTED_FILE_DECLARES,
1821
- path: `shared-lib/src/modules/${moduleRefOf()}/resources/${moduleRefOf()}.relationships.ts`,
1843
+ path: conventionalModuleFilePath(ModuleConventionalFileKind.MODULE_RELATIONSHIPS, moduleRefOf(), moduleRefOf()),
1822
1844
  declarations: [product.sourceResourceRef, product.targetResourceRef],
1823
1845
  };
1824
1846
  case BuildPlanTaskProductKind.RESOURCE_OPERATION:
1825
1847
  return {
1826
1848
  kind: BuildPlanTaskLandedProbeKind.COMMITTED_FILE_DECLARES,
1827
- path: `shared-lib/src/modules/${moduleRefOf()}/resources/${product.resourceRef}/${product.resourceRef}.resources-config.ts`,
1849
+ path: conventionalModuleFilePath(ModuleConventionalFileKind.RESOURCE_CONFIGURATION, moduleRefOf(), product.resourceRef),
1828
1850
  declarations: [product.operationRef],
1829
1851
  };
1830
1852
  case BuildPlanTaskProductKind.APPLICATION_VIEW:
@@ -1953,7 +1975,7 @@ function landedProbeDraft(task, product, moduleRefOf) {
1953
1975
  case BuildPlanTaskProductKind.WORK_UNIT_RESOURCE:
1954
1976
  case BuildPlanTaskProductKind.METERED_USAGE_RECORDING:
1955
1977
  case BuildPlanTaskProductKind.RESOURCE_RETENTION_BINDING: {
1956
- const resourceConfiguration = `shared-lib/src/modules/${moduleRefOf()}/resources/${product.resourceRef}/${product.resourceRef}.resources-config.ts`;
1978
+ const resourceConfiguration = conventionalModuleFilePath(ModuleConventionalFileKind.RESOURCE_CONFIGURATION, moduleRefOf(), product.resourceRef);
1957
1979
  return {
1958
1980
  kind: BuildPlanTaskLandedProbeKind.AGENT_WORK_REGISTERED,
1959
1981
  product,
@@ -1997,7 +2019,7 @@ function landedProbeDraft(task, product, moduleRefOf) {
1997
2019
  * names is declared in the application's configuration. Both are written by the task and both must be committed.
1998
2020
  */
1999
2021
  case BuildPlanTaskProductKind.SYSTEM_OF_RECORD_BINDING: {
2000
- const resourceConfiguration = `shared-lib/src/modules/${moduleRefOf()}/resources/${product.resourceRef}/${product.resourceRef}.resources-config.ts`;
2022
+ const resourceConfiguration = conventionalModuleFilePath(ModuleConventionalFileKind.RESOURCE_CONFIGURATION, moduleRefOf(), product.resourceRef);
2001
2023
  return {
2002
2024
  kind: BuildPlanTaskLandedProbeKind.AGENT_WORK_REGISTERED,
2003
2025
  product,