@wildo-ai/dev-companion 1.1.12 → 1.1.14

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 (313) hide show
  1. package/dist/esm/.tsbuildinfo +1 -1
  2. package/dist/esm/claude-cli/models/coding-agent-dispatch.models.d.ts +21 -0
  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 +37 -4
  5. package/dist/esm/claude-cli/models/coding-agent-dispatch.models.js.map +1 -1
  6. package/dist/esm/claude-cli/services/accepted-change-commit.companion.service.d.ts.map +1 -1
  7. package/dist/esm/claude-cli/services/accepted-change-commit.companion.service.js +9 -2
  8. package/dist/esm/claude-cli/services/accepted-change-commit.companion.service.js.map +1 -1
  9. package/dist/esm/claude-cli/services/coding-agent-dispatch.companion.service.d.ts +66 -0
  10. package/dist/esm/claude-cli/services/coding-agent-dispatch.companion.service.d.ts.map +1 -1
  11. package/dist/esm/claude-cli/services/coding-agent-dispatch.companion.service.js +191 -13
  12. package/dist/esm/claude-cli/services/coding-agent-dispatch.companion.service.js.map +1 -1
  13. package/dist/esm/claude-cli/services/git-change-set.companion.service.d.ts +6 -2
  14. package/dist/esm/claude-cli/services/git-change-set.companion.service.d.ts.map +1 -1
  15. package/dist/esm/claude-cli/services/git-change-set.companion.service.js +16 -39
  16. package/dist/esm/claude-cli/services/git-change-set.companion.service.js.map +1 -1
  17. package/dist/esm/code-compliance-check/check-raw-feature-id-literals.companion.js +31 -2
  18. package/dist/esm/code-compliance-check/check-raw-feature-id-literals.companion.js.map +1 -1
  19. package/dist/esm/companion-api/companion-api.schemas.d.ts +2 -0
  20. package/dist/esm/companion-api/companion-api.schemas.d.ts.map +1 -1
  21. package/dist/esm/companion-api/companion-api.schemas.js +8 -0
  22. package/dist/esm/companion-api/companion-api.schemas.js.map +1 -1
  23. package/dist/esm/companion-api/controllers/companion.controller.d.ts +13 -0
  24. package/dist/esm/companion-api/controllers/companion.controller.d.ts.map +1 -1
  25. package/dist/esm/companion-api/controllers/companion.controller.js +39 -13
  26. package/dist/esm/companion-api/controllers/companion.controller.js.map +1 -1
  27. package/dist/esm/companion-api/controllers/long-held-request.companion.d.ts +17 -0
  28. package/dist/esm/companion-api/controllers/long-held-request.companion.d.ts.map +1 -0
  29. package/dist/esm/companion-api/controllers/long-held-request.companion.js +33 -0
  30. package/dist/esm/companion-api/controllers/long-held-request.companion.js.map +1 -0
  31. package/dist/esm/core/introspection/resources/creation-home-projection.companion.d.ts +9 -0
  32. package/dist/esm/core/introspection/resources/creation-home-projection.companion.d.ts.map +1 -1
  33. package/dist/esm/core/introspection/resources/creation-home-projection.companion.js +19 -0
  34. package/dist/esm/core/introspection/resources/creation-home-projection.companion.js.map +1 -1
  35. package/dist/esm/core/introspection/resources/creation-plane-projection.companion.service.d.ts.map +1 -1
  36. package/dist/esm/core/introspection/resources/creation-plane-projection.companion.service.js +7 -1
  37. package/dist/esm/core/introspection/resources/creation-plane-projection.companion.service.js.map +1 -1
  38. package/dist/esm/core/introspection/resources/launch-blockers.companion.d.ts +5 -1
  39. package/dist/esm/core/introspection/resources/launch-blockers.companion.d.ts.map +1 -1
  40. package/dist/esm/core/introspection/resources/launch-blockers.companion.js +37 -4
  41. package/dist/esm/core/introspection/resources/launch-blockers.companion.js.map +1 -1
  42. package/dist/esm/core/introspection/services/companion-introspection.companion.service.d.ts +14 -0
  43. package/dist/esm/core/introspection/services/companion-introspection.companion.service.d.ts.map +1 -1
  44. package/dist/esm/core/introspection/services/companion-introspection.companion.service.js +48 -0
  45. package/dist/esm/core/introspection/services/companion-introspection.companion.service.js.map +1 -1
  46. package/dist/esm/core/introspection/services/introspection-dependency-tree.companion.d.ts +128 -0
  47. package/dist/esm/core/introspection/services/introspection-dependency-tree.companion.d.ts.map +1 -0
  48. package/dist/esm/core/introspection/services/introspection-dependency-tree.companion.js +180 -0
  49. package/dist/esm/core/introspection/services/introspection-dependency-tree.companion.js.map +1 -0
  50. package/dist/esm/core/introspection/services/introspection-source-state.companion.service.d.ts +8 -20
  51. package/dist/esm/core/introspection/services/introspection-source-state.companion.service.d.ts.map +1 -1
  52. package/dist/esm/core/introspection/services/introspection-source-state.companion.service.js +37 -142
  53. package/dist/esm/core/introspection/services/introspection-source-state.companion.service.js.map +1 -1
  54. package/dist/esm/core/introspection/services/introspection-source-walk.worker.d.ts +64 -0
  55. package/dist/esm/core/introspection/services/introspection-source-walk.worker.d.ts.map +1 -0
  56. package/dist/esm/core/introspection/services/introspection-source-walk.worker.js +304 -0
  57. package/dist/esm/core/introspection/services/introspection-source-walk.worker.js.map +1 -0
  58. package/dist/esm/core/introspection/services/introspection-worker-pool.companion.d.ts +9 -0
  59. package/dist/esm/core/introspection/services/introspection-worker-pool.companion.d.ts.map +1 -1
  60. package/dist/esm/core/introspection/services/introspection-worker-pool.companion.js +25 -3
  61. package/dist/esm/core/introspection/services/introspection-worker-pool.companion.js.map +1 -1
  62. package/dist/esm/core/runtime/companion-language-model-route.d.ts +16 -1
  63. package/dist/esm/core/runtime/companion-language-model-route.d.ts.map +1 -1
  64. package/dist/esm/core/runtime/companion-language-model-route.js +23 -1
  65. package/dist/esm/core/runtime/companion-language-model-route.js.map +1 -1
  66. package/dist/esm/core/runtime/restart-drain.companion.d.ts +107 -0
  67. package/dist/esm/core/runtime/restart-drain.companion.d.ts.map +1 -0
  68. package/dist/esm/core/runtime/restart-drain.companion.js +237 -0
  69. package/dist/esm/core/runtime/restart-drain.companion.js.map +1 -0
  70. package/dist/esm/core/runtime/services/start-companion-application.service.d.ts.map +1 -1
  71. package/dist/esm/core/runtime/services/start-companion-application.service.js +3 -2
  72. package/dist/esm/core/runtime/services/start-companion-application.service.js.map +1 -1
  73. package/dist/esm/core/utils/git-read-broker.companion.d.ts +62 -0
  74. package/dist/esm/core/utils/git-read-broker.companion.d.ts.map +1 -0
  75. package/dist/esm/core/utils/git-read-broker.companion.js +282 -0
  76. package/dist/esm/core/utils/git-read-broker.companion.js.map +1 -0
  77. package/dist/esm/core/utils/local-write-recording.companion.d.ts +8 -1
  78. package/dist/esm/core/utils/local-write-recording.companion.d.ts.map +1 -1
  79. package/dist/esm/core/utils/local-write-recording.companion.js +7 -23
  80. package/dist/esm/core/utils/local-write-recording.companion.js.map +1 -1
  81. package/dist/esm/executions/services/companion-executions.companion.service.d.ts +18 -1
  82. package/dist/esm/executions/services/companion-executions.companion.service.d.ts.map +1 -1
  83. package/dist/esm/executions/services/companion-executions.companion.service.js +34 -8
  84. package/dist/esm/executions/services/companion-executions.companion.service.js.map +1 -1
  85. package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_CHART_DASHBOARD_LAYOUT_EDITOR.en.d.ts +29 -0
  86. package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_CHART_DASHBOARD_LAYOUT_EDITOR.en.d.ts.map +1 -0
  87. package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_CHART_DASHBOARD_LAYOUT_EDITOR.en.js +29 -0
  88. package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_CHART_DASHBOARD_LAYOUT_EDITOR.en.js.map +1 -0
  89. package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_CHART_DASHBOARD_LAYOUT_EDITOR.fr.d.ts +29 -0
  90. package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_CHART_DASHBOARD_LAYOUT_EDITOR.fr.d.ts.map +1 -0
  91. package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_CHART_DASHBOARD_LAYOUT_EDITOR.fr.js +29 -0
  92. package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_CHART_DASHBOARD_LAYOUT_EDITOR.fr.js.map +1 -0
  93. package/dist/esm/i18n/components/LOW_LEVEL_AI_APPROVAL.en.d.ts +1 -0
  94. package/dist/esm/i18n/components/LOW_LEVEL_AI_APPROVAL.en.d.ts.map +1 -1
  95. package/dist/esm/i18n/components/LOW_LEVEL_AI_APPROVAL.en.js +2 -1
  96. package/dist/esm/i18n/components/LOW_LEVEL_AI_APPROVAL.en.js.map +1 -1
  97. package/dist/esm/i18n/components/LOW_LEVEL_AI_APPROVAL.fr.d.ts +1 -0
  98. package/dist/esm/i18n/components/LOW_LEVEL_AI_APPROVAL.fr.d.ts.map +1 -1
  99. package/dist/esm/i18n/components/LOW_LEVEL_AI_APPROVAL.fr.js +2 -1
  100. package/dist/esm/i18n/components/LOW_LEVEL_AI_APPROVAL.fr.js.map +1 -1
  101. package/dist/esm/i18n/components/LOW_LEVEL_AI_CONVERSATION_THREAD.en.d.ts +5 -2
  102. package/dist/esm/i18n/components/LOW_LEVEL_AI_CONVERSATION_THREAD.en.d.ts.map +1 -1
  103. package/dist/esm/i18n/components/LOW_LEVEL_AI_CONVERSATION_THREAD.en.js +5 -2
  104. package/dist/esm/i18n/components/LOW_LEVEL_AI_CONVERSATION_THREAD.en.js.map +1 -1
  105. package/dist/esm/i18n/components/LOW_LEVEL_AI_CONVERSATION_THREAD.fr.d.ts +5 -2
  106. package/dist/esm/i18n/components/LOW_LEVEL_AI_CONVERSATION_THREAD.fr.d.ts.map +1 -1
  107. package/dist/esm/i18n/components/LOW_LEVEL_AI_CONVERSATION_THREAD.fr.js +5 -2
  108. package/dist/esm/i18n/components/LOW_LEVEL_AI_CONVERSATION_THREAD.fr.js.map +1 -1
  109. package/dist/esm/i18n/components/LOW_LEVEL_APPROVAL_SEAL.en.d.ts +41 -0
  110. package/dist/esm/i18n/components/LOW_LEVEL_APPROVAL_SEAL.en.d.ts.map +1 -0
  111. package/dist/esm/i18n/components/LOW_LEVEL_APPROVAL_SEAL.en.js +41 -0
  112. package/dist/esm/i18n/components/LOW_LEVEL_APPROVAL_SEAL.en.js.map +1 -0
  113. package/dist/esm/i18n/components/LOW_LEVEL_APPROVAL_SEAL.fr.d.ts +41 -0
  114. package/dist/esm/i18n/components/LOW_LEVEL_APPROVAL_SEAL.fr.d.ts.map +1 -0
  115. package/dist/esm/i18n/components/LOW_LEVEL_APPROVAL_SEAL.fr.js +41 -0
  116. package/dist/esm/i18n/components/LOW_LEVEL_APPROVAL_SEAL.fr.js.map +1 -0
  117. package/dist/esm/i18n/components/LOW_LEVEL_CONTENT_SECTION_CONTAINER.en.d.ts +1 -0
  118. package/dist/esm/i18n/components/LOW_LEVEL_CONTENT_SECTION_CONTAINER.en.d.ts.map +1 -1
  119. package/dist/esm/i18n/components/LOW_LEVEL_CONTENT_SECTION_CONTAINER.en.js +2 -1
  120. package/dist/esm/i18n/components/LOW_LEVEL_CONTENT_SECTION_CONTAINER.en.js.map +1 -1
  121. package/dist/esm/i18n/components/LOW_LEVEL_CONTENT_SECTION_CONTAINER.fr.d.ts +1 -0
  122. package/dist/esm/i18n/components/LOW_LEVEL_CONTENT_SECTION_CONTAINER.fr.d.ts.map +1 -1
  123. package/dist/esm/i18n/components/LOW_LEVEL_CONTENT_SECTION_CONTAINER.fr.js +2 -1
  124. package/dist/esm/i18n/components/LOW_LEVEL_CONTENT_SECTION_CONTAINER.fr.js.map +1 -1
  125. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_STRING.en.d.ts +1 -0
  126. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_STRING.en.d.ts.map +1 -1
  127. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_STRING.en.js +2 -1
  128. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_STRING.en.js.map +1 -1
  129. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_STRING.fr.d.ts +1 -0
  130. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_STRING.fr.d.ts.map +1 -1
  131. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_STRING.fr.js +2 -1
  132. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_STRING.fr.js.map +1 -1
  133. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_MFA_CHALLENGE.en.d.ts +1 -0
  134. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_MFA_CHALLENGE.en.d.ts.map +1 -1
  135. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_MFA_CHALLENGE.en.js +2 -1
  136. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_MFA_CHALLENGE.en.js.map +1 -1
  137. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_MFA_CHALLENGE.fr.d.ts +1 -0
  138. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_MFA_CHALLENGE.fr.d.ts.map +1 -1
  139. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_MFA_CHALLENGE.fr.js +2 -1
  140. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_MFA_CHALLENGE.fr.js.map +1 -1
  141. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_TERMS.en.d.ts +2 -0
  142. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_TERMS.en.d.ts.map +1 -1
  143. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_TERMS.en.js +3 -1
  144. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_TERMS.en.js.map +1 -1
  145. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_TERMS.fr.d.ts +2 -0
  146. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_TERMS.fr.d.ts.map +1 -1
  147. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_TERMS.fr.js +3 -1
  148. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_TERMS.fr.js.map +1 -1
  149. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_AUTH.en.d.ts +1 -1
  150. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_AUTH.en.js +1 -1
  151. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_AUTH.en.js.map +1 -1
  152. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_AUTH.fr.d.ts +1 -1
  153. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_AUTH.fr.js +1 -1
  154. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_AUTH.fr.js.map +1 -1
  155. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_FILTERS.en.d.ts +2 -0
  156. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_FILTERS.en.d.ts.map +1 -1
  157. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_FILTERS.en.js +3 -1
  158. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_FILTERS.en.js.map +1 -1
  159. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_FILTERS.fr.d.ts +3 -1
  160. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_FILTERS.fr.d.ts.map +1 -1
  161. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_FILTERS.fr.js +4 -2
  162. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_FILTERS.fr.js.map +1 -1
  163. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_LIST.en.d.ts +17 -0
  164. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_LIST.en.d.ts.map +1 -1
  165. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_LIST.en.js +18 -1
  166. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_LIST.en.js.map +1 -1
  167. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_LIST.fr.d.ts +17 -0
  168. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_LIST.fr.d.ts.map +1 -1
  169. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_LIST.fr.js +18 -1
  170. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_LIST.fr.js.map +1 -1
  171. package/dist/esm/i18n/composite_views/app.creation-conversation.fr.d.ts +206 -195
  172. package/dist/esm/i18n/composite_views/app.creation-conversation.fr.d.ts.map +1 -1
  173. package/dist/esm/i18n/composite_views/app.creation-conversation.fr.js +206 -195
  174. package/dist/esm/i18n/composite_views/app.creation-conversation.fr.js.map +1 -1
  175. package/dist/esm/i18n/composite_views/app.creation-dossier.fr.d.ts +10 -0
  176. package/dist/esm/i18n/composite_views/app.creation-dossier.fr.d.ts.map +1 -1
  177. package/dist/esm/i18n/composite_views/app.creation-dossier.fr.js +12 -2
  178. package/dist/esm/i18n/composite_views/app.creation-dossier.fr.js.map +1 -1
  179. package/dist/esm/i18n/resources/wildoApplicationActorSystemExecutions.fr.d.ts +70 -0
  180. package/dist/esm/i18n/resources/wildoApplicationActorSystemExecutions.fr.d.ts.map +1 -1
  181. package/dist/esm/i18n/resources/wildoApplicationActorSystemExecutions.fr.js +70 -0
  182. package/dist/esm/i18n/resources/wildoApplicationActorSystemExecutions.fr.js.map +1 -1
  183. package/dist/esm/i18n/resources/wildoApplicationActorTasks.fr.d.ts +12 -2
  184. package/dist/esm/i18n/resources/wildoApplicationActorTasks.fr.d.ts.map +1 -1
  185. package/dist/esm/i18n/resources/wildoApplicationActorTasks.fr.js +12 -2
  186. package/dist/esm/i18n/resources/wildoApplicationActorTasks.fr.js.map +1 -1
  187. package/dist/esm/i18n/resources/wildoApplicationFlowSystemExecutions.fr.d.ts +10 -0
  188. package/dist/esm/i18n/resources/wildoApplicationFlowSystemExecutions.fr.d.ts.map +1 -1
  189. package/dist/esm/i18n/resources/wildoApplicationFlowSystemExecutions.fr.js +10 -0
  190. package/dist/esm/i18n/resources/wildoApplicationFlowSystemExecutions.fr.js.map +1 -1
  191. package/dist/esm/i18n/resources/workbenchBuildDispatchPlan.fr.d.ts +25 -20
  192. package/dist/esm/i18n/resources/workbenchBuildDispatchPlan.fr.d.ts.map +1 -1
  193. package/dist/esm/i18n/resources/workbenchBuildDispatchPlan.fr.js +25 -20
  194. package/dist/esm/i18n/resources/workbenchBuildDispatchPlan.fr.js.map +1 -1
  195. package/dist/esm/i18n/resources/workbenchBuildPlanTasks.fr.d.ts +32 -32
  196. package/dist/esm/i18n/resources/workbenchBuildPlanTasks.fr.js +32 -32
  197. package/dist/esm/i18n/resources/workbenchBuildPlanTasks.fr.js.map +1 -1
  198. package/dist/esm/i18n/resources/workbenchBuildTaskRecords.fr.d.ts +65 -65
  199. package/dist/esm/i18n/resources/workbenchBuildTaskRecords.fr.js +65 -65
  200. package/dist/esm/i18n/resources/workbenchBuildTaskRecords.fr.js.map +1 -1
  201. package/dist/esm/i18n/resources/workbenchDossierEntries.fr.d.ts +20 -0
  202. package/dist/esm/i18n/resources/workbenchDossierEntries.fr.d.ts.map +1 -1
  203. package/dist/esm/i18n/resources/workbenchDossierEntries.fr.js +20 -0
  204. package/dist/esm/i18n/resources/workbenchDossierEntries.fr.js.map +1 -1
  205. package/dist/esm/i18n/resources/workbenchGovernanceQuestions.fr.d.ts +12 -0
  206. package/dist/esm/i18n/resources/workbenchGovernanceQuestions.fr.d.ts.map +1 -1
  207. package/dist/esm/i18n/resources/workbenchGovernanceQuestions.fr.js +13 -1
  208. package/dist/esm/i18n/resources/workbenchGovernanceQuestions.fr.js.map +1 -1
  209. package/dist/esm/i18n/resources/workbenchSpecificationArtifacts.en.d.ts +40 -0
  210. package/dist/esm/i18n/resources/workbenchSpecificationArtifacts.en.d.ts.map +1 -1
  211. package/dist/esm/i18n/resources/workbenchSpecificationArtifacts.en.js +13 -0
  212. package/dist/esm/i18n/resources/workbenchSpecificationArtifacts.en.js.map +1 -1
  213. package/dist/esm/i18n/resources/workbenchSpecificationArtifacts.fr.d.ts +40 -0
  214. package/dist/esm/i18n/resources/workbenchSpecificationArtifacts.fr.d.ts.map +1 -1
  215. package/dist/esm/i18n/resources/workbenchSpecificationArtifacts.fr.js +40 -0
  216. package/dist/esm/i18n/resources/workbenchSpecificationArtifacts.fr.js.map +1 -1
  217. package/dist/esm/i18n/system_enums/application-creation.en.d.ts +5 -0
  218. package/dist/esm/i18n/system_enums/application-creation.en.d.ts.map +1 -1
  219. package/dist/esm/i18n/system_enums/application-creation.en.js +6 -0
  220. package/dist/esm/i18n/system_enums/application-creation.en.js.map +1 -1
  221. package/dist/esm/i18n/system_enums/application-creation.fr.d.ts +175 -170
  222. package/dist/esm/i18n/system_enums/application-creation.fr.d.ts.map +1 -1
  223. package/dist/esm/i18n/system_enums/application-creation.fr.js +175 -170
  224. package/dist/esm/i18n/system_enums/application-creation.fr.js.map +1 -1
  225. package/dist/esm/i18n/system_enums/flows-actors.fr.d.ts +22 -22
  226. package/dist/esm/i18n/system_enums/flows-actors.fr.js +22 -22
  227. package/dist/esm/i18n/system_enums/flows-actors.fr.js.map +1 -1
  228. package/dist/esm/i18n/system_enums/run-records.fr.d.ts +21 -21
  229. package/dist/esm/i18n/system_enums/run-records.fr.js +21 -21
  230. package/dist/esm/i18n/system_enums/run-records.fr.js.map +1 -1
  231. package/dist/esm/i18n/system_enums/workbench-build.en.d.ts +3 -0
  232. package/dist/esm/i18n/system_enums/workbench-build.en.d.ts.map +1 -1
  233. package/dist/esm/i18n/system_enums/workbench-build.en.js +3 -0
  234. package/dist/esm/i18n/system_enums/workbench-build.en.js.map +1 -1
  235. package/dist/esm/i18n/system_enums/workbench-build.fr.d.ts +37 -33
  236. package/dist/esm/i18n/system_enums/workbench-build.fr.d.ts.map +1 -1
  237. package/dist/esm/i18n/system_enums/workbench-build.fr.js +37 -33
  238. package/dist/esm/i18n/system_enums/workbench-build.fr.js.map +1 -1
  239. package/dist/esm/i18n/system_enums/workbench-creation-home.en.d.ts +1 -0
  240. package/dist/esm/i18n/system_enums/workbench-creation-home.en.d.ts.map +1 -1
  241. package/dist/esm/i18n/system_enums/workbench-creation-home.en.js +1 -0
  242. package/dist/esm/i18n/system_enums/workbench-creation-home.en.js.map +1 -1
  243. package/dist/esm/i18n/system_enums/workbench-creation-home.fr.d.ts +18 -17
  244. package/dist/esm/i18n/system_enums/workbench-creation-home.fr.d.ts.map +1 -1
  245. package/dist/esm/i18n/system_enums/workbench-creation-home.fr.js +18 -17
  246. package/dist/esm/i18n/system_enums/workbench-creation-home.fr.js.map +1 -1
  247. package/dist/esm/i18n/system_enums/workbench-dossier.fr.d.ts +7 -5
  248. package/dist/esm/i18n/system_enums/workbench-dossier.fr.d.ts.map +1 -1
  249. package/dist/esm/i18n/system_enums/workbench-dossier.fr.js +8 -6
  250. package/dist/esm/i18n/system_enums/workbench-dossier.fr.js.map +1 -1
  251. package/dist/esm/i18n/system_enums/workbench-secrets.fr.d.ts +12 -12
  252. package/dist/esm/i18n/system_enums/workbench-secrets.fr.js +12 -12
  253. package/dist/esm/i18n/system_enums/workbench-secrets.fr.js.map +1 -1
  254. package/dist/esm/i18n/system_enums/workbench-specification-artifact.fr.d.ts +1 -0
  255. package/dist/esm/i18n/system_enums/workbench-specification-artifact.fr.d.ts.map +1 -1
  256. package/dist/esm/i18n/system_enums/workbench-specification-artifact.fr.js +2 -1
  257. package/dist/esm/i18n/system_enums/workbench-specification-artifact.fr.js.map +1 -1
  258. package/dist/esm/i18n-labelling/services/labelling-planner.companion.service.d.ts.map +1 -1
  259. package/dist/esm/i18n-labelling/services/labelling-planner.companion.service.js +3 -4
  260. package/dist/esm/i18n-labelling/services/labelling-planner.companion.service.js.map +1 -1
  261. package/dist/esm/i18n-labelling/utils/declared-refusal-codes.utils.d.ts +11 -0
  262. package/dist/esm/i18n-labelling/utils/declared-refusal-codes.utils.d.ts.map +1 -1
  263. package/dist/esm/i18n-labelling/utils/declared-refusal-codes.utils.js +21 -0
  264. package/dist/esm/i18n-labelling/utils/declared-refusal-codes.utils.js.map +1 -1
  265. package/dist/esm/meta-workflows/models/application-coding-agent.actors-system.definitions.d.ts +5 -1
  266. package/dist/esm/meta-workflows/models/application-coding-agent.actors-system.definitions.d.ts.map +1 -1
  267. package/dist/esm/meta-workflows/models/application-coding-agent.actors-system.definitions.js +5 -1
  268. package/dist/esm/meta-workflows/models/application-coding-agent.actors-system.definitions.js.map +1 -1
  269. package/dist/esm/meta-workflows/models/playbook-run-record.models.d.ts +12 -0
  270. package/dist/esm/meta-workflows/models/playbook-run-record.models.d.ts.map +1 -1
  271. package/dist/esm/meta-workflows/models/playbook-run-record.models.js +9 -0
  272. package/dist/esm/meta-workflows/models/playbook-run-record.models.js.map +1 -1
  273. package/dist/esm/meta-workflows/services/application-build-dispatch.companion.service.d.ts +200 -20
  274. package/dist/esm/meta-workflows/services/application-build-dispatch.companion.service.d.ts.map +1 -1
  275. package/dist/esm/meta-workflows/services/application-build-dispatch.companion.service.js +1107 -230
  276. package/dist/esm/meta-workflows/services/application-build-dispatch.companion.service.js.map +1 -1
  277. package/dist/esm/meta-workflows/services/application-build-follow-up-derivation.companion.d.ts +158 -16
  278. package/dist/esm/meta-workflows/services/application-build-follow-up-derivation.companion.d.ts.map +1 -1
  279. package/dist/esm/meta-workflows/services/application-build-follow-up-derivation.companion.js +381 -46
  280. package/dist/esm/meta-workflows/services/application-build-follow-up-derivation.companion.js.map +1 -1
  281. package/dist/esm/meta-workflows/services/application-build-generation-step.companion.service.d.ts +58 -0
  282. package/dist/esm/meta-workflows/services/application-build-generation-step.companion.service.d.ts.map +1 -1
  283. package/dist/esm/meta-workflows/services/application-build-generation-step.companion.service.js +116 -2
  284. package/dist/esm/meta-workflows/services/application-build-generation-step.companion.service.js.map +1 -1
  285. package/dist/esm/meta-workflows/services/application-build-landing-projection.companion.d.ts +3 -3
  286. package/dist/esm/meta-workflows/services/application-build-landing-projection.companion.js +3 -3
  287. package/dist/esm/meta-workflows/services/application-build-landing-projection.companion.js.map +1 -1
  288. package/dist/esm/meta-workflows/services/application-build-task-closure.companion.d.ts +9 -0
  289. package/dist/esm/meta-workflows/services/application-build-task-closure.companion.d.ts.map +1 -1
  290. package/dist/esm/meta-workflows/services/application-build-task-closure.companion.js +19 -0
  291. package/dist/esm/meta-workflows/services/application-build-task-closure.companion.js.map +1 -1
  292. package/dist/esm/meta-workflows/services/application-build-task-coding-policy.companion.service.d.ts +12 -0
  293. package/dist/esm/meta-workflows/services/application-build-task-coding-policy.companion.service.d.ts.map +1 -1
  294. package/dist/esm/meta-workflows/services/application-build-task-coding-policy.companion.service.js +31 -7
  295. package/dist/esm/meta-workflows/services/application-build-task-coding-policy.companion.service.js.map +1 -1
  296. package/dist/esm/meta-workflows/services/creation-intervention-ledger.companion.service.d.ts.map +1 -1
  297. package/dist/esm/meta-workflows/services/creation-intervention-ledger.companion.service.js +4 -5
  298. package/dist/esm/meta-workflows/services/creation-intervention-ledger.companion.service.js.map +1 -1
  299. package/dist/esm/meta-workflows/services/creation-run-report.companion.service.d.ts +2 -2
  300. package/dist/esm/meta-workflows/services/creation-run-report.companion.service.d.ts.map +1 -1
  301. package/dist/esm/meta-workflows/services/creation-run-report.companion.service.js +10 -8
  302. package/dist/esm/meta-workflows/services/creation-run-report.companion.service.js.map +1 -1
  303. package/dist/esm/meta-workflows/services/foundation-executor.companion.service.d.ts.map +1 -1
  304. package/dist/esm/meta-workflows/services/foundation-executor.companion.service.js +6 -3
  305. package/dist/esm/meta-workflows/services/foundation-executor.companion.service.js.map +1 -1
  306. package/dist/esm/meta-workflows/services/playbook-run-write-register-window.companion.d.ts.map +1 -1
  307. package/dist/esm/meta-workflows/services/playbook-run-write-register-window.companion.js +3 -5
  308. package/dist/esm/meta-workflows/services/playbook-run-write-register-window.companion.js.map +1 -1
  309. package/dist/esm/meta-workflows/services/playbook-run.companion.service.d.ts +68 -3
  310. package/dist/esm/meta-workflows/services/playbook-run.companion.service.d.ts.map +1 -1
  311. package/dist/esm/meta-workflows/services/playbook-run.companion.service.js +281 -69
  312. package/dist/esm/meta-workflows/services/playbook-run.companion.service.js.map +1 -1
  313. package/package.json +18 -18
@@ -9,9 +9,9 @@ import type { GitLandingSourceState } from '../../claude-cli/services/git-change
9
9
  * `resolveBuildExecutionProgress`) and again in `prepareNextBuildTask` — and every `GET /build/tasks`,
10
10
  * `/build/next`, board publication and creation-feed read asked it again. Measured on the 128-task plan of
11
11
  * `app-creation-test-007` (wave `6ae445c316a9f33246138f32`): `artifact-state` 377 s, `prepareNextBuildTask`
12
- * about 13 min, `GET /build/tasks` 384 s and 1 359 s. Because the wave's fill loop selects one slot at a time,
13
- * a selection that slow kept parallelism 5 at one task in flight all day, and the readers and the wave starved
14
- * each other on one event loop.
12
+ * about 13 min, `GET /build/tasks` 384 s and 1 359 s. Because the wave's fill loop then selected one slot at a time
13
+ * (slots are prepared side by side since #3883), a selection that slow kept parallelism 5 at one task in flight all day,
14
+ * and the readers and the wave starved each other on one event loop.
15
15
  *
16
16
  * Nothing about that answer can move unless one of its inputs moves, and every input is either a FILE (git's
17
17
  * view of the tree, and the build outputs the introspection witnesses read) or an in-process EVENT (a run
@@ -10,9 +10,9 @@ import { join } from 'node:path';
10
10
  * `resolveBuildExecutionProgress`) and again in `prepareNextBuildTask` — and every `GET /build/tasks`,
11
11
  * `/build/next`, board publication and creation-feed read asked it again. Measured on the 128-task plan of
12
12
  * `app-creation-test-007` (wave `6ae445c316a9f33246138f32`): `artifact-state` 377 s, `prepareNextBuildTask`
13
- * about 13 min, `GET /build/tasks` 384 s and 1 359 s. Because the wave's fill loop selects one slot at a time,
14
- * a selection that slow kept parallelism 5 at one task in flight all day, and the readers and the wave starved
15
- * each other on one event loop.
13
+ * about 13 min, `GET /build/tasks` 384 s and 1 359 s. Because the wave's fill loop then selected one slot at a time
14
+ * (slots are prepared side by side since #3883), a selection that slow kept parallelism 5 at one task in flight all day,
15
+ * and the readers and the wave starved each other on one event loop.
16
16
  *
17
17
  * Nothing about that answer can move unless one of its inputs moves, and every input is either a FILE (git's
18
18
  * view of the tree, and the build outputs the introspection witnesses read) or an in-process EVENT (a run
@@ -1 +1 @@
1
- {"version":3,"file":"application-build-landing-projection.companion.js","sourceRoot":"","sources":["../../../../src/meta-workflows/services/application-build-landing-projection.companion.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AACxC,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAIjC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkDG;AAEH,gGAAgG;AAChG,MAAM,CAAC,MAAM,4BAA4B,GAAG,MAAM,CAAC;AAgBnD;;;;GAIG;AACH,MAAM,CAAC,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AY,GAAG,IAAI,CAAC,GAAG,EAAE,GAAG,4BAA4B,CAAC;QACjG,CAAC,EACD,GAAG,EAAE;YACH,qGAAqG;YACrG,IAAI,IAAI,CAAC,IAAI,KAAK,IAAI;gBAAE,IAAI,CAAC,IAAI,GAAG,SAAS,CAAC;QAChD,CAAC,CACF,CAAC;QACF,OAAO,KAAK,CAAC;IACf,CAAC;IAED;;;;OAIG;IACI,MAAM,CAAI,GAAuB,EAAE,IAAY,EAAE,OAAyB;QAC/E,MAAM,IAAI,GAAG,IAAI,CAAC,IAAI,CAAC;QACvB,IAAI,GAAG,KAAK,SAAS,IAAI,IAAI,KAAK,SAAS,IAAI,IAAI,CAAC,GAAG,KAAK,GAAG;YAAE,OAAO,OAAO,EAAE,CAAC;QAClF,MAAM,QAAQ,GAAG,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;QACxC,IAAI,QAAQ,KAAK,SAAS;YAAE,OAAO,QAAsB,CAAC;QAC1D,MAAM,QAAQ,GAAG,OAAO,EAAE,CAAC;QAC3B,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC;QACjC,QAAQ,CAAC,KAAK,CAAC,GAAG,EAAE;YAClB,IAAI,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,KAAK,QAAQ;gBAAE,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;QACrE,CAAC,CAAC,CAAC;QACH,OAAO,QAAQ,CAAC;IAClB,CAAC;CACF","sourcesContent":["import { stat } from 'node:fs/promises';\nimport { join } from 'node:path';\n\nimport type { GitLandingSourceState } from '../../claude-cli/services/git-change-set.companion.service';\n\n/**\n * The build plan's LANDING, computed once per source state and shared by every reader (#3206, #3219).\n *\n * ## Why this exists\n *\n * \"Which of the plan's tasks have landed\" was re-derived from nothing on every ask. One build wave asked it at\n * least twice before each dispatch — once in the playbook's `artifact-state` phase (through\n * `resolveBuildExecutionProgress`) and again in `prepareNextBuildTask` — and every `GET /build/tasks`,\n * `/build/next`, board publication and creation-feed read asked it again. Measured on the 128-task plan of\n * `app-creation-test-007` (wave `6ae445c316a9f33246138f32`): `artifact-state` 377 s, `prepareNextBuildTask`\n * about 13 min, `GET /build/tasks` 384 s and 1 359 s. Because the wave's fill loop selects one slot at a time,\n * a selection that slow kept parallelism 5 at one task in flight all day, and the readers and the wave starved\n * each other on one event loop.\n *\n * Nothing about that answer can move unless one of its inputs moves, and every input is either a FILE (git's\n * view of the tree, and the build outputs the introspection witnesses read) or an in-process EVENT (a run\n * selected, admitted, settled, accepted, re-armed). So the answer is held against a key built from exactly\n * those, re-derived the first time the key differs, and shared — including while it is being computed — by\n * every caller asking at the same key.\n *\n * ## What the key is made of, and why each part\n *\n * - **git: HEAD and the porcelain difference list** (`GitLandingSourceState`). A probe asks \"is this path\n * committed\" — tracked, and HEAD, index and working tree in agreement — so HEAD plus the list of paths that\n * differ from it decides every such answer. Two spawns, whatever the plan's size. A commit (the accept, a\n * reconciliation, a person) moves HEAD, so a task its commit lands is landed at the very next read (#3219).\n * - **the size and mtime of every DIRTY path.** The porcelain line of a file edited twice is the same line,\n * while the introspection witnesses read the working tree, so a second edit must still move the key.\n * - **the build outputs the witnesses read**, signed by the callers that own them (each application package's\n * evaluated companion tree, and the schema-plan inputs). A source edit moves git BEFORE its emit; without\n * this part an answer computed against the old build would be cached under the new key and the emit would\n * change nothing the key sees. The creation-plane projection signs the same population for the same reason.\n * NOT signed, and stated rather than left to be found: the `@wildo-ai/*` packages injected into the FRONTEND (the\n * design-token CLI and the shell introspection read them). In framework development an engine change there respawns\n * the companion, which empties this cache; a published package never changes under a running process.\n * - **the plan itself**, as its tasks serialize: a task added, removed or redeclared is a different question.\n * - **a run-state generation** the owner bumps on every in-process event the files cannot show (a no-product\n * task lands on a COMPLETED run; a commit's result is announced before anyone re-reads git).\n *\n * No digest is taken of any of it (`application-creation-directive.md`): the parts are compared as text, and\n * nothing is persisted. Deleting the whole cache costs one re-derivation.\n *\n * ## The one answer that is NOT held: an UNKNOWN one\n *\n * A generation step whose landing check could not be answered, or a witness the companion could not read (an\n * introspection subprocess still warming, a CLI that timed out), is a fact about THIS PROCESS at THIS INSTANT,\n * not about any file — so no key moves when it heals. Such a resolution is PROVISIONAL: reused only for\n * {@link PROVISIONAL_LANDING_REUSE_MS} at an unchanged key, then derived again. Holding it would keep a step\n * \"landing unknown\" until an unrelated edit, which is #3223's restart race made permanent; not holding it at\n * all would re-derive the whole plan on every read for as long as one check stays unanswerable.\n */\n\n/** How long a resolution that contained an UNKNOWN answer may be reused at an unchanged key. */\nexport const PROVISIONAL_LANDING_REUSE_MS = 20_000;\n\n/** Everything a landing key is composed from, gathered by its owner. */\nexport interface LandingSourceStateInputs {\n /** `undefined` when git could not be asked: the key is then refused, so no cache hit can be authorized. */\n readonly git: GitLandingSourceState | undefined;\n /** The application root the porcelain paths are relative to. */\n readonly saasRoot: string;\n /** The plan, serialized by the caller (its task list). */\n readonly planIdentity: string;\n /** Build-output signatures (`label=signature` lines); a part that could not be read is still a part. */\n readonly buildSignatures: readonly string[];\n /** The owner's in-process run-state generation. */\n readonly runStateGeneration: number;\n}\n\n/**\n * The landing key, or `undefined` when git could not be read — which must never authorize a hit, since an\n * unreadable tree and an unchanged one are indistinguishable from their result\n * (`.claude/rules/negative-results-require-a-positive-probe.md`).\n */\nexport async function composeLandingSourceKey(inputs: LandingSourceStateInputs): Promise<string | undefined> {\n if (inputs.git === undefined) return undefined;\n const dirty = await Promise.all([...new Set(inputs.git.changedPaths)].sort().map(async (path) => {\n try {\n const stats = await stat(join(inputs.saasRoot, path));\n return `${path}:${stats.size}:${stats.mtimeMs}`;\n } catch {\n // Deleted (or a directory git still names): its absence is the state, and the porcelain line already says it.\n return `${path}:absent`;\n }\n }));\n return [\n `head:${inputs.git.headSha ?? 'unborn'}`,\n `run-state:${inputs.runStateGeneration}`,\n `status:${inputs.git.porcelain}`,\n `dirty:${dirty.join('|')}`,\n ...inputs.buildSignatures,\n `plan:${inputs.planIdentity}`,\n ].join('\\n');\n}\n\n/** A resolution held by {@link LandingProjectionCache}, with whatever its readers derived from it at the same key. */\ninterface LandingProjectionSlot<T> {\n readonly key: string;\n /** The order the key's reading STARTED in; an older reading never replaces a newer slot. */\n readonly sequence: number;\n readonly value: Promise<T>;\n /** Set once the value settled and turned out provisional: the instant after which it is no longer reused. */\n reuseUntilMs?: number;\n /** Answers derived FROM this value (the all-stuck reading, …), valid exactly as long as the value is. */\n readonly derived: Map<string, Promise<unknown>>;\n}\n\n/**\n * A single-slot, single-flight memo keyed by a landing source key.\n *\n * Single slot because one companion serves one application and one plan: the previous key is never asked for\n * again once the tree has moved past it. Single-flight because the readers arrive together — a wave's\n * selection, a board publication, a console poll — and each used to start its own derivation.\n */\nexport class LandingProjectionCache<T> {\n private slot: LandingProjectionSlot<T> | undefined;\n /** How many derivations this cache started — read by the benchmark and the pins, never by the product. */\n public derivations = 0;\n\n public constructor(\n /** Whether a settled value holds an UNKNOWN answer and may only be reused briefly. */\n private readonly isProvisional: (value: T) => boolean,\n private readonly now: () => number = () => Date.now(),\n ) {}\n\n /** Drop everything held. A key change does this on its own; this is for an owner that knows better. */\n public clear(): void {\n this.slot = undefined;\n }\n\n /**\n * Drop the held slot when it holds `value`, a derivation its owner has stopped trusting (#3204: one that ran past the\n * landing wait ceiling). The next caller at that key derives again instead of being handed the same pending promise.\n * A slot holding anything else is left alone.\n */\n public evict(value: Promise<T>): void {\n if (this.slot?.value === value) this.slot = undefined;\n }\n\n /**\n * The value at `key`: the held one when it is current, else a fresh derivation every caller at that key\n * shares. With no key (the state could not be read) the derivation runs and nothing is held. `sequence` is the order\n * the key's reading started in (omitted: newest).\n */\n public resolve(key: string | undefined, derive: () => Promise<T>, sequence = Number.MAX_SAFE_INTEGER): Promise<T> {\n if (key === undefined) {\n this.derivations += 1;\n return derive();\n }\n const held = this.slot;\n if (held !== undefined && held.key === key && (held.reuseUntilMs === undefined || this.now() <= held.reuseUntilMs)) {\n return held.value;\n }\n this.derivations += 1;\n const value = derive();\n /*\n * A reading that started BEFORE the held one describes an older state: answered, never held, so a late finisher\n * cannot evict the newer slot and make the next reader derive the newer state a second time.\n */\n if (held !== undefined && held.key !== key && held.sequence > sequence) return value;\n const slot: LandingProjectionSlot<T> = { key, sequence, value, derived: new Map() };\n this.slot = slot;\n value.then(\n (settled) => {\n if (this.isProvisional(settled)) slot.reuseUntilMs = this.now() + PROVISIONAL_LANDING_REUSE_MS;\n },\n () => {\n // A failed derivation is held by nobody: the next caller retries rather than inheriting the failure.\n if (this.slot === slot) this.slot = undefined;\n },\n );\n return value;\n }\n\n /**\n * An answer derived from the value at `key`, held beside it and dropped with it. Asked only after\n * {@link resolve} at the same key, so the two describe one state; a key that is no longer the held one\n * (or none) derives without holding.\n */\n public derive<D>(key: string | undefined, name: string, compute: () => Promise<D>): Promise<D> {\n const held = this.slot;\n if (key === undefined || held === undefined || held.key !== key) return compute();\n const existing = held.derived.get(name);\n if (existing !== undefined) return existing as Promise<D>;\n const computed = compute();\n held.derived.set(name, computed);\n computed.catch(() => {\n if (held.derived.get(name) === computed) held.derived.delete(name);\n });\n return computed;\n }\n}\n"]}
1
+ {"version":3,"file":"application-build-landing-projection.companion.js","sourceRoot":"","sources":["../../../../src/meta-workflows/services/application-build-landing-projection.companion.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AACxC,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAIjC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkDG;AAEH,gGAAgG;AAChG,MAAM,CAAC,MAAM,4BAA4B,GAAG,MAAM,CAAC;AAgBnD;;;;GAIG;AACH,MAAM,CAAC,KAAK,UAAU,uBAAuB,CAAC,MAAgC;IAC5E,IAAI,MAAM,CAAC,GAAG,KAAK,SAAS;QAAE,OAAO,SAAS,CAAC;IAC/C,M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AAI,CAAC,IAAI,KAAK,IAAI;gBAAE,IAAI,CAAC,IAAI,GAAG,SAAS,CAAC;QAChD,CAAC,CACF,CAAC;QACF,OAAO,KAAK,CAAC;IACf,CAAC;IAED;;;;OAIG;IACI,MAAM,CAAI,GAAuB,EAAE,IAAY,EAAE,OAAyB;QAC/E,MAAM,IAAI,GAAG,IAAI,CAAC,IAAI,CAAC;QACvB,IAAI,GAAG,KAAK,SAAS,IAAI,IAAI,KAAK,SAAS,IAAI,IAAI,CAAC,GAAG,KAAK,GAAG;YAAE,OAAO,OAAO,EAAE,CAAC;QAClF,MAAM,QAAQ,GAAG,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;QACxC,IAAI,QAAQ,KAAK,SAAS;YAAE,OAAO,QAAsB,CAAC;QAC1D,MAAM,QAAQ,GAAG,OAAO,EAAE,CAAC;QAC3B,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC;QACjC,QAAQ,CAAC,KAAK,CAAC,GAAG,EAAE;YAClB,IAAI,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,KAAK,QAAQ;gBAAE,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;QACrE,CAAC,CAAC,CAAC;QACH,OAAO,QAAQ,CAAC;IAClB,CAAC;CACF","sourcesContent":["import { stat } from 'node:fs/promises';\nimport { join } from 'node:path';\n\nimport type { GitLandingSourceState } from '../../claude-cli/services/git-change-set.companion.service';\n\n/**\n * The build plan's LANDING, computed once per source state and shared by every reader (#3206, #3219).\n *\n * ## Why this exists\n *\n * \"Which of the plan's tasks have landed\" was re-derived from nothing on every ask. One build wave asked it at\n * least twice before each dispatch — once in the playbook's `artifact-state` phase (through\n * `resolveBuildExecutionProgress`) and again in `prepareNextBuildTask` — and every `GET /build/tasks`,\n * `/build/next`, board publication and creation-feed read asked it again. Measured on the 128-task plan of\n * `app-creation-test-007` (wave `6ae445c316a9f33246138f32`): `artifact-state` 377 s, `prepareNextBuildTask`\n * about 13 min, `GET /build/tasks` 384 s and 1 359 s. Because the wave's fill loop then selected one slot at a time\n * (slots are prepared side by side since #3883), a selection that slow kept parallelism 5 at one task in flight all day,\n * and the readers and the wave starved each other on one event loop.\n *\n * Nothing about that answer can move unless one of its inputs moves, and every input is either a FILE (git's\n * view of the tree, and the build outputs the introspection witnesses read) or an in-process EVENT (a run\n * selected, admitted, settled, accepted, re-armed). So the answer is held against a key built from exactly\n * those, re-derived the first time the key differs, and shared — including while it is being computed — by\n * every caller asking at the same key.\n *\n * ## What the key is made of, and why each part\n *\n * - **git: HEAD and the porcelain difference list** (`GitLandingSourceState`). A probe asks \"is this path\n * committed\" — tracked, and HEAD, index and working tree in agreement — so HEAD plus the list of paths that\n * differ from it decides every such answer. Two spawns, whatever the plan's size. A commit (the accept, a\n * reconciliation, a person) moves HEAD, so a task its commit lands is landed at the very next read (#3219).\n * - **the size and mtime of every DIRTY path.** The porcelain line of a file edited twice is the same line,\n * while the introspection witnesses read the working tree, so a second edit must still move the key.\n * - **the build outputs the witnesses read**, signed by the callers that own them (each application package's\n * evaluated companion tree, and the schema-plan inputs). A source edit moves git BEFORE its emit; without\n * this part an answer computed against the old build would be cached under the new key and the emit would\n * change nothing the key sees. The creation-plane projection signs the same population for the same reason.\n * NOT signed, and stated rather than left to be found: the `@wildo-ai/*` packages injected into the FRONTEND (the\n * design-token CLI and the shell introspection read them). In framework development an engine change there respawns\n * the companion, which empties this cache; a published package never changes under a running process.\n * - **the plan itself**, as its tasks serialize: a task added, removed or redeclared is a different question.\n * - **a run-state generation** the owner bumps on every in-process event the files cannot show (a no-product\n * task lands on a COMPLETED run; a commit's result is announced before anyone re-reads git).\n *\n * No digest is taken of any of it (`application-creation-directive.md`): the parts are compared as text, and\n * nothing is persisted. Deleting the whole cache costs one re-derivation.\n *\n * ## The one answer that is NOT held: an UNKNOWN one\n *\n * A generation step whose landing check could not be answered, or a witness the companion could not read (an\n * introspection subprocess still warming, a CLI that timed out), is a fact about THIS PROCESS at THIS INSTANT,\n * not about any file — so no key moves when it heals. Such a resolution is PROVISIONAL: reused only for\n * {@link PROVISIONAL_LANDING_REUSE_MS} at an unchanged key, then derived again. Holding it would keep a step\n * \"landing unknown\" until an unrelated edit, which is #3223's restart race made permanent; not holding it at\n * all would re-derive the whole plan on every read for as long as one check stays unanswerable.\n */\n\n/** How long a resolution that contained an UNKNOWN answer may be reused at an unchanged key. */\nexport const PROVISIONAL_LANDING_REUSE_MS = 20_000;\n\n/** Everything a landing key is composed from, gathered by its owner. */\nexport interface LandingSourceStateInputs {\n /** `undefined` when git could not be asked: the key is then refused, so no cache hit can be authorized. */\n readonly git: GitLandingSourceState | undefined;\n /** The application root the porcelain paths are relative to. */\n readonly saasRoot: string;\n /** The plan, serialized by the caller (its task list). */\n readonly planIdentity: string;\n /** Build-output signatures (`label=signature` lines); a part that could not be read is still a part. */\n readonly buildSignatures: readonly string[];\n /** The owner's in-process run-state generation. */\n readonly runStateGeneration: number;\n}\n\n/**\n * The landing key, or `undefined` when git could not be read — which must never authorize a hit, since an\n * unreadable tree and an unchanged one are indistinguishable from their result\n * (`.claude/rules/negative-results-require-a-positive-probe.md`).\n */\nexport async function composeLandingSourceKey(inputs: LandingSourceStateInputs): Promise<string | undefined> {\n if (inputs.git === undefined) return undefined;\n const dirty = await Promise.all([...new Set(inputs.git.changedPaths)].sort().map(async (path) => {\n try {\n const stats = await stat(join(inputs.saasRoot, path));\n return `${path}:${stats.size}:${stats.mtimeMs}`;\n } catch {\n // Deleted (or a directory git still names): its absence is the state, and the porcelain line already says it.\n return `${path}:absent`;\n }\n }));\n return [\n `head:${inputs.git.headSha ?? 'unborn'}`,\n `run-state:${inputs.runStateGeneration}`,\n `status:${inputs.git.porcelain}`,\n `dirty:${dirty.join('|')}`,\n ...inputs.buildSignatures,\n `plan:${inputs.planIdentity}`,\n ].join('\\n');\n}\n\n/** A resolution held by {@link LandingProjectionCache}, with whatever its readers derived from it at the same key. */\ninterface LandingProjectionSlot<T> {\n readonly key: string;\n /** The order the key's reading STARTED in; an older reading never replaces a newer slot. */\n readonly sequence: number;\n readonly value: Promise<T>;\n /** Set once the value settled and turned out provisional: the instant after which it is no longer reused. */\n reuseUntilMs?: number;\n /** Answers derived FROM this value (the all-stuck reading, …), valid exactly as long as the value is. */\n readonly derived: Map<string, Promise<unknown>>;\n}\n\n/**\n * A single-slot, single-flight memo keyed by a landing source key.\n *\n * Single slot because one companion serves one application and one plan: the previous key is never asked for\n * again once the tree has moved past it. Single-flight because the readers arrive together — a wave's\n * selection, a board publication, a console poll — and each used to start its own derivation.\n */\nexport class LandingProjectionCache<T> {\n private slot: LandingProjectionSlot<T> | undefined;\n /** How many derivations this cache started — read by the benchmark and the pins, never by the product. */\n public derivations = 0;\n\n public constructor(\n /** Whether a settled value holds an UNKNOWN answer and may only be reused briefly. */\n private readonly isProvisional: (value: T) => boolean,\n private readonly now: () => number = () => Date.now(),\n ) {}\n\n /** Drop everything held. A key change does this on its own; this is for an owner that knows better. */\n public clear(): void {\n this.slot = undefined;\n }\n\n /**\n * Drop the held slot when it holds `value`, a derivation its owner has stopped trusting (#3204: one that ran past the\n * landing wait ceiling). The next caller at that key derives again instead of being handed the same pending promise.\n * A slot holding anything else is left alone.\n */\n public evict(value: Promise<T>): void {\n if (this.slot?.value === value) this.slot = undefined;\n }\n\n /**\n * The value at `key`: the held one when it is current, else a fresh derivation every caller at that key\n * shares. With no key (the state could not be read) the derivation runs and nothing is held. `sequence` is the order\n * the key's reading started in (omitted: newest).\n */\n public resolve(key: string | undefined, derive: () => Promise<T>, sequence = Number.MAX_SAFE_INTEGER): Promise<T> {\n if (key === undefined) {\n this.derivations += 1;\n return derive();\n }\n const held = this.slot;\n if (held !== undefined && held.key === key && (held.reuseUntilMs === undefined || this.now() <= held.reuseUntilMs)) {\n return held.value;\n }\n this.derivations += 1;\n const value = derive();\n /*\n * A reading that started BEFORE the held one describes an older state: answered, never held, so a late finisher\n * cannot evict the newer slot and make the next reader derive the newer state a second time.\n */\n if (held !== undefined && held.key !== key && held.sequence > sequence) return value;\n const slot: LandingProjectionSlot<T> = { key, sequence, value, derived: new Map() };\n this.slot = slot;\n value.then(\n (settled) => {\n if (this.isProvisional(settled)) slot.reuseUntilMs = this.now() + PROVISIONAL_LANDING_REUSE_MS;\n },\n () => {\n // A failed derivation is held by nobody: the next caller retries rather than inheriting the failure.\n if (this.slot === slot) this.slot = undefined;\n },\n );\n return value;\n }\n\n /**\n * An answer derived from the value at `key`, held beside it and dropped with it. Asked only after\n * {@link resolve} at the same key, so the two describe one state; a key that is no longer the held one\n * (or none) derives without holding.\n */\n public derive<D>(key: string | undefined, name: string, compute: () => Promise<D>): Promise<D> {\n const held = this.slot;\n if (key === undefined || held === undefined || held.key !== key) return compute();\n const existing = held.derived.get(name);\n if (existing !== undefined) return existing as Promise<D>;\n const computed = compute();\n held.derived.set(name, computed);\n computed.catch(() => {\n if (held.derived.get(name) === computed) held.derived.delete(name);\n });\n return computed;\n }\n}\n"]}
@@ -144,6 +144,7 @@ export declare const BuildTaskClosureSchema: z.ZodObject<{
144
144
  satisfiedBy: z.ZodOptional<z.ZodString>;
145
145
  reason: z.ZodString;
146
146
  closedAt: z.ZodISODateTime;
147
+ carriedFollowUpGapKeys: z.ZodOptional<z.ZodArray<z.ZodString>>;
147
148
  }, z.core.$strict>;
148
149
  export type BuildTaskClosure = z.infer<typeof BuildTaskClosureSchema>;
149
150
  /**
@@ -154,8 +155,14 @@ export declare const BuildFollowUpApprovalSchema: z.ZodObject<{
154
155
  taskRef: z.ZodString;
155
156
  note: z.ZodOptional<z.ZodString>;
156
157
  approvedAt: z.ZodISODateTime;
158
+ carriedFollowUpGapKeys: z.ZodOptional<z.ZodArray<z.ZodString>>;
157
159
  }, z.core.$strict>;
158
160
  export type BuildFollowUpApproval = z.infer<typeof BuildFollowUpApprovalSchema>;
161
+ /**
162
+ * The decisions file (strict). A field added to a record is unreadable to an OLDER companion, which then honours no
163
+ * decision at all until it is updated: deliver the current companion before relying on a new field (#3832 added
164
+ * `carriedFollowUpGapKeys`).
165
+ */
159
166
  export declare const BuildTaskDecisionsFileSchema: z.ZodObject<{
160
167
  closures: z.ZodDefault<z.ZodArray<z.ZodObject<{
161
168
  taskRef: z.ZodString;
@@ -163,11 +170,13 @@ export declare const BuildTaskDecisionsFileSchema: z.ZodObject<{
163
170
  satisfiedBy: z.ZodOptional<z.ZodString>;
164
171
  reason: z.ZodString;
165
172
  closedAt: z.ZodISODateTime;
173
+ carriedFollowUpGapKeys: z.ZodOptional<z.ZodArray<z.ZodString>>;
166
174
  }, z.core.$strict>>>;
167
175
  followUpApprovals: z.ZodDefault<z.ZodArray<z.ZodObject<{
168
176
  taskRef: z.ZodString;
169
177
  note: z.ZodOptional<z.ZodString>;
170
178
  approvedAt: z.ZodISODateTime;
179
+ carriedFollowUpGapKeys: z.ZodOptional<z.ZodArray<z.ZodString>>;
171
180
  }, z.core.$strict>>>;
172
181
  }, z.core.$strict>;
173
182
  /** What a committed decisions file holds, latest per task. */
@@ -1 +1 @@
1
- {"version":3,"file":"application-build-task-closure.companion.d.ts","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;AAEtE,OAAO,EAAmE,KAAK,sBAAsB,EAAE,MAAM,oDAAoD,CAAC;AAMlK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AAEH;;;;GAIG;AACH,eAAO,MAAM,mCAAmC,YAAY,CAAC;AAE7D;;;GAGG;AACH,oBAAY,0BAA0B;IACpC,6GAA6G;IAC7G,QAAQ,aAAa;IACrB,iHAAiH;IACjH,YAAY,iBAAiB;IAC7B;;;;OAIG;IACH,OAAO,YAAY;CACpB;AAED,sFAAsF;AACtF,MAAM,WAAW,wB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wBAAgB,uBAAuB,CAAC,IAAI,EAAE,MAAM,GAAG,SAAS,GAAG,IAAI,GAAG,kBAAkB,CAgB3F;AAED;;;GAGG;AACH,wBAAgB,qBAAqB,CACnC,WAAW,EAAE,MAAM,GAAG,SAAS,EAC/B,QAAQ,EAAE;IAAE,QAAQ,CAAC,OAAO,EAAE,gBAAgB,CAAA;CAAE,GAAG;IAAE,QAAQ,CAAC,gBAAgB,EAAE,qBAAqB,CAAA;CAAE,GACtG,MAAM,CAWR;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,0BAA0B,CAAC,KAAK,EAAE;IAChD,QAAQ,CAAC,QAAQ,EAAE,WAAW,CAAC,MAAM,EAAE,gBAAgB,CAAC,CAAC;IACzD,QAAQ,CAAC,YAAY,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;IAC3C,QAAQ,CAAC,MAAM,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;CACtC,GAAG,WAAW,CAAC,MAAM,EAAE,gBAAgB,CAAC,CAkBxC;AAED;;;;GAIG;AACH,wBAAgB,yBAAyB,CAAC,OAAO,EAAE,sBAAsB,GAAG,OAAO,CAElF;AAED;;;;GAIG;AACH,wBAAgB,oBAAoB,CAAC,KAAK,EAAE;IAC1C,QAAQ,CAAC,OAAO,EAAE,sBAAsB,CAAC;IACzC,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,SAAS,EAAE,WAAW,CAAC,MAAM,EAAE,qBAAqB,CAAC,CAAC;IAC/D,QAAQ,CAAC,eAAe,EAAE,OAAO,CAAC;CACnC,GAAG,OAAO,CAKV"}
1
+ {"version":3,"file":"application-build-task-closure.companion.d.ts","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;AAEtE,OAAO,EAAmE,KAAK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AW,CAAC,MAAM,EAAE,qBAAqB,CAAC,CAAC;IAC/D,QAAQ,CAAC,eAAe,EAAE,OAAO,CAAC;CACnC,GAAG,OAAO,CAKV"}
@@ -168,6 +168,13 @@ export const BuildTaskClosureSchema = z.strictObject({
168
168
  /** Why, in the person's words. Required: a closure nobody can explain is a probe silenced, not a decision. */
169
169
  reason: NonEmptyTextSchema,
170
170
  closedAt: z.iso.datetime(),
171
+ /**
172
+ * For a derived follow-up: the reported gaps (their `followUpGapKey` values) its objective showed when the person decided
173
+ * (#3832). A follow-up absorbs every report on its target until it is decided or dispatched, so the decision covers
174
+ * exactly these and the follow-up carries them from then on. Absent on a decision recorded before the field: the
175
+ * follow-up then carries its own report only.
176
+ */
177
+ carriedFollowUpGapKeys: z.array(NonEmptyTextSchema).optional(),
171
178
  }).superRefine((closure, context) => {
172
179
  const needsSatisfier = closure.kind !== BuildTaskClosureKind.DECLINED;
173
180
  if (needsSatisfier !== (closure.satisfiedBy !== undefined)) {
@@ -183,7 +190,19 @@ export const BuildFollowUpApprovalSchema = z.strictObject({
183
190
  /** What the person said, when they said anything; the commit records who and when either way. */
184
191
  note: NonEmptyTextSchema.optional(),
185
192
  approvedAt: z.iso.datetime(),
193
+ /**
194
+ * For a derived follow-up: the reported gaps (their `followUpGapKey` values) its objective showed when the person decided
195
+ * (#3832). A follow-up absorbs every report on its target until it is decided or dispatched, so the decision covers
196
+ * exactly these and the follow-up carries them from then on. Absent on a decision recorded before the field: the
197
+ * follow-up then carries its own report only.
198
+ */
199
+ carriedFollowUpGapKeys: z.array(NonEmptyTextSchema).optional(),
186
200
  });
201
+ /**
202
+ * The decisions file (strict). A field added to a record is unreadable to an OLDER companion, which then honours no
203
+ * decision at all until it is updated: deliver the current companion before relying on a new field (#3832 added
204
+ * `carriedFollowUpGapKeys`).
205
+ */
187
206
  export const BuildTaskDecisionsFileSchema = z.strictObject({
188
207
  closures: z.array(BuildTaskClosureSchema).default([]),
189
208
  followUpApprovals: z.array(BuildFollowUpApprovalSchema).default([]),
@@ -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,EAAE,YAAY,EAAE,uBAAuB,EAA+B,MAAM,oDAAoD,CAAC;AAElK,OAAO,EAAE,0CAA0C,EAAE,MAAM,4CAA4C,CAAC;AACxG,OAAO,EAAE,qBAAqB,EAAE,wBAAwB,EAAE,MAAM,0CAA0C,CAAC;AAC3G,OAAO,EAAE,sCAAsC,EAAE,MAAM,oDAAoD,CAAC;AAE5G;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AAEH;;;;GAIG;AACH,MAAM,CAAC,MAAM,mCAAmC,GAAG,SAAS,CAAC;AAE7D;;;GAGG;AACH,MAAM,CAAN,IAAY,0BAWX;AAXD,WAAY,0BAA0B;IACpC,6GAA6G;IAC7G,mDAAqB,CAAA;IACrB,iHAAiH;IACjH,2DAA6B,CAAA;IAC7B;;;;OAIG;IACH,iDAAmB,CAAA;AACrB,CAAC,EAXW,0BAA0B,KAA1B,0BAA0B,QAWrC;AAWD;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,MAAM,UAAU,4BAA4B,CAAC,KAc5C;IAKC,MAAM,WAAW,GAAG,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM,CAAC,MAAM,KAAK,SAAS;WAC3E,CAAC,KAAK,CAAC,gBAAgB,CAAC,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC;WACvC,6BAA6B,CAAC,MAAM,CAAC,CAAC,QAAQ;WAC9C,oBAAoB,CAAC,MAAM,EAAE,K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AAC,sCAAsC,CAAC,CAAC;mBACtH,CAAC,OAAO,CAAC,IAAI,KAAK,oBAAoB,CAAC,iBAAiB,IAAI,OAAO,CAAC,WAAW,KAAK,SAAS;uBAC3F,CAAC,KAAK,CAAC,MAAM,CAAC,GAAG,CAAC,OAAO,CAAC,WAAW,CAAC;2BACpC,CAAC,QAAQ,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}).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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;mBACnE,CAAC,OAAO,CAAC,IAAI,KAAK,oBAAoB,CAAC,QAAQ,IAAI,OAAO,CAAC,OAAO,CAAC,UAAU,CAAC,sCAAsC,CAAC,CAAC;mBACtH,CAAC,OAAO,CAAC,IAAI,KAAK,oBAAoB,CAAC,iBAAiB,IAAI,OAAO,CAAC,WAAW,KAAK,SAAS;uBAC3F,CAAC,KAAK,CAAC,MAAM,CAAC,GAAG,CAAC,OAAO,CAAC,WAAW,CAAC;2BACpC,CAAC,QAAQ,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"]}
@@ -602,6 +602,18 @@ export declare function targetDerivedSkillRefs(task: BuildPlanTask, facts: {
602
602
  readonly targetDeclaresPersonalData: boolean;
603
603
  }): readonly string[];
604
604
  export declare function resolveBuildTaskLandedProbes(task: BuildPlanTask): readonly BuildPlanTaskLandedProbe[];
605
+ /**
606
+ * Where each LAYER registers an application module, as the `add-module` scenario writes it (#3701) — one entry per layer,
607
+ * and a module is registered only when every layer carries it:
608
+ *
609
+ * - **shared**: `shared-lib/src/modules-registry.shared.ts` imports `./modules/<id>` (or the modules barrel exports it);
610
+ * - **frontend**: `frontend/src/modules/index.ts` imports `./<id>` into `applicationFrontendModules` (or the registry names it);
611
+ * - **backend**: the modules barrel DISCOVERS `backend-api/src/modules/<id>/index.ts` by scanning (`scanSubdirDefaultExports`),
612
+ * and that descriptor names `moduleId: '<id>'`; an application that registers by hand names it in the registry or barrel.
613
+ *
614
+ * Every path is in {@link MODULE_REGISTRY_FILES} or under the module's own backend directory, which a MODULE target allows.
615
+ */
616
+ export declare const MODULE_REGISTRY_LAYER_PATHS: Readonly<Record<'shared' | 'frontend' | 'backend', (moduleRef: string) => readonly string[]>>;
605
617
  /**
606
618
  * What a product's declarations ARE (#1539): a SET of symbols, each independently present, or a
607
619
  * RELATION, present together at one syntactic site.
@@ -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,CAAC,iBAAiB,EAAE,SAAS,MAAM,EAAE,CAAC;CAC/C;AAED,4FAA4F;AAC5F,qBAAa,uCAAwC,SAAQ,KAAK;aAC7B,OAAO,EAAE,MAAM;aAAkB,iBAAiB,EAAE,MAAM;gBAA1D,OAAO,EAAE,MAAM,EAAkB,iBAAiB,EAAE,MAAM;CAI9F;AAqFD;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAgB,wCAAwC,CACtD,2BAA2B,EAAE,SAAS,MAAM,EAAE,GAC7C,SAAS,MAAM,EAAE,CAInB;AAmCD;;;;;;;GAOG;AACH,wBAAgB,gCAAgC,CAAC,OAAO,EAAE,qBAAqB,GAAG,MAAM,CAEvF;AA6BD,8GAA8G;AAC9G,eAAO,MAAM,sCAAsC,KAAK,CAAC;AAqCzD;;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;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.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,CAAC,iBAAiB,EAAE,SAAS,MAAM,EAAE,CAAC;CAC/C;AAED,4FAA4F;AAC5F,qBAAa,uCAAwC,SAAQ,KAAK;aAC7B,OAAO,EAAE,MAAM;aAAkB,iBAAiB,EAAE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,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"}
@@ -1497,6 +1497,31 @@ export function resolveBuildTaskLandedProbes(task) {
1497
1497
  return (Array.isArray(drafts) ? drafts : [drafts]).map((draft) => withDeclarationSite(product, draft));
1498
1498
  }).filter((probe) => probe !== undefined);
1499
1499
  }
1500
+ /**
1501
+ * Where each LAYER registers an application module, as the `add-module` scenario writes it (#3701) — one entry per layer,
1502
+ * and a module is registered only when every layer carries it:
1503
+ *
1504
+ * - **shared**: `shared-lib/src/modules-registry.shared.ts` imports `./modules/<id>` (or the modules barrel exports it);
1505
+ * - **frontend**: `frontend/src/modules/index.ts` imports `./<id>` into `applicationFrontendModules` (or the registry names it);
1506
+ * - **backend**: the modules barrel DISCOVERS `backend-api/src/modules/<id>/index.ts` by scanning (`scanSubdirDefaultExports`),
1507
+ * and that descriptor names `moduleId: '<id>'`; an application that registers by hand names it in the registry or barrel.
1508
+ *
1509
+ * Every path is in {@link MODULE_REGISTRY_FILES} or under the module's own backend directory, which a MODULE target allows.
1510
+ */
1511
+ export const MODULE_REGISTRY_LAYER_PATHS = {
1512
+ shared: () => ['shared-lib/src/modules-registry.shared.ts', 'shared-lib/src/modules/index.ts'],
1513
+ frontend: () => ['frontend/src/modules/index.ts', 'frontend/src/modules-registry.frontend.ts'],
1514
+ backend: (moduleRef) => [`backend-api/src/modules/${moduleRef}/index.ts`, 'backend-api/src/modules-registry.backend.ts', 'backend-api/src/modules/index.ts'],
1515
+ };
1516
+ /** One probe per layer: the module is declared in one of that layer's registration homes (#3701). All must hold. */
1517
+ function moduleRegistryMembershipProbes(moduleRef) {
1518
+ return Object.values(MODULE_REGISTRY_LAYER_PATHS).map((pathsOf) => ({
1519
+ kind: BuildPlanTaskLandedProbeKind.ANY_COMMITTED_FILE_DECLARES,
1520
+ paths: pathsOf(moduleRef),
1521
+ writablePaths: pathsOf(moduleRef),
1522
+ declarations: [moduleRef],
1523
+ }));
1524
+ }
1500
1525
  /**
1501
1526
  * Attach the product's declaration site to a probe that asks about declarations (#1539). Done HERE,
1502
1527
  * once, rather than in each case, so no case can state a site that disagrees with
@@ -1827,14 +1852,13 @@ function landedProbeDraft(task, product, moduleRefOf) {
1827
1852
  * A module's identity is the REGISTRY, not its directory. `wildo compose` creates the
1828
1853
  * directory, so probing it would repeat the defect this whole resolver replaces; the module
1829
1854
  * being registered under one identity is what the task's objective actually claims.
1855
+ *
1856
+ * In EVERY layer's registry, not the shared one alone (#3701): an application module is real only when the
1857
+ * shared, frontend and backend registries all carry it, the alignment `wonder-todos-registry-alignment` checks.
1858
+ * The reference run of 2026-11-10 read a module's every task landed while the module was missing from the
1859
+ * backend and frontend registries, so the product did not deliver it. See {@link moduleRegistryMembershipProbes}.
1830
1860
  */
1831
- return {
1832
- kind: BuildPlanTaskLandedProbeKind.ANY_COMMITTED_FILE_DECLARES,
1833
- paths: ['shared-lib/src/modules-registry.shared.ts', 'shared-lib/src/modules/index.ts'],
1834
- // Both are in `MODULE_REGISTRY_FILES`, which a MODULE target already allows.
1835
- writablePaths: ['shared-lib/src/modules-registry.shared.ts', 'shared-lib/src/modules/index.ts'],
1836
- declarations: [product.moduleRef],
1837
- };
1861
+ return moduleRegistryMembershipProbes(product.moduleRef);
1838
1862
  case BuildPlanTaskProductKind.APPLICATION_DOCUMENT:
1839
1863
  return {
1840
1864
  kind: BuildPlanTaskLandedProbeKind.ANY_COMMITTED_FILE_DECLARES,