@wildo-ai/dev-companion 1.1.13 → 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 (256) 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 +183 -7
  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 +7 -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 +26 -12
  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 +12 -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/services/introspection-source-state.companion.service.d.ts +8 -20
  39. package/dist/esm/core/introspection/services/introspection-source-state.companion.service.d.ts.map +1 -1
  40. package/dist/esm/core/introspection/services/introspection-source-state.companion.service.js +37 -142
  41. package/dist/esm/core/introspection/services/introspection-source-state.companion.service.js.map +1 -1
  42. package/dist/esm/core/introspection/services/introspection-source-walk.worker.d.ts +64 -0
  43. package/dist/esm/core/introspection/services/introspection-source-walk.worker.d.ts.map +1 -0
  44. package/dist/esm/core/introspection/services/introspection-source-walk.worker.js +304 -0
  45. package/dist/esm/core/introspection/services/introspection-source-walk.worker.js.map +1 -0
  46. package/dist/esm/core/runtime/companion-language-model-route.d.ts +16 -1
  47. package/dist/esm/core/runtime/companion-language-model-route.d.ts.map +1 -1
  48. package/dist/esm/core/runtime/companion-language-model-route.js +23 -1
  49. package/dist/esm/core/runtime/companion-language-model-route.js.map +1 -1
  50. package/dist/esm/core/runtime/services/start-companion-application.service.d.ts.map +1 -1
  51. package/dist/esm/core/runtime/services/start-companion-application.service.js +3 -2
  52. package/dist/esm/core/runtime/services/start-companion-application.service.js.map +1 -1
  53. package/dist/esm/core/utils/git-read-broker.companion.d.ts +62 -0
  54. package/dist/esm/core/utils/git-read-broker.companion.d.ts.map +1 -0
  55. package/dist/esm/core/utils/git-read-broker.companion.js +282 -0
  56. package/dist/esm/core/utils/git-read-broker.companion.js.map +1 -0
  57. package/dist/esm/core/utils/local-write-recording.companion.d.ts +8 -1
  58. package/dist/esm/core/utils/local-write-recording.companion.d.ts.map +1 -1
  59. package/dist/esm/core/utils/local-write-recording.companion.js +7 -23
  60. package/dist/esm/core/utils/local-write-recording.companion.js.map +1 -1
  61. package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_CHART_DASHBOARD_LAYOUT_EDITOR.en.d.ts +29 -0
  62. package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_CHART_DASHBOARD_LAYOUT_EDITOR.en.d.ts.map +1 -0
  63. package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_CHART_DASHBOARD_LAYOUT_EDITOR.en.js +29 -0
  64. package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_CHART_DASHBOARD_LAYOUT_EDITOR.en.js.map +1 -0
  65. package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_CHART_DASHBOARD_LAYOUT_EDITOR.fr.d.ts +29 -0
  66. package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_CHART_DASHBOARD_LAYOUT_EDITOR.fr.d.ts.map +1 -0
  67. package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_CHART_DASHBOARD_LAYOUT_EDITOR.fr.js +29 -0
  68. package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_CHART_DASHBOARD_LAYOUT_EDITOR.fr.js.map +1 -0
  69. package/dist/esm/i18n/components/LOW_LEVEL_AI_APPROVAL.en.d.ts +1 -0
  70. package/dist/esm/i18n/components/LOW_LEVEL_AI_APPROVAL.en.d.ts.map +1 -1
  71. package/dist/esm/i18n/components/LOW_LEVEL_AI_APPROVAL.en.js +2 -1
  72. package/dist/esm/i18n/components/LOW_LEVEL_AI_APPROVAL.en.js.map +1 -1
  73. package/dist/esm/i18n/components/LOW_LEVEL_AI_APPROVAL.fr.d.ts +1 -0
  74. package/dist/esm/i18n/components/LOW_LEVEL_AI_APPROVAL.fr.d.ts.map +1 -1
  75. package/dist/esm/i18n/components/LOW_LEVEL_AI_APPROVAL.fr.js +2 -1
  76. package/dist/esm/i18n/components/LOW_LEVEL_AI_APPROVAL.fr.js.map +1 -1
  77. package/dist/esm/i18n/components/LOW_LEVEL_AI_CONVERSATION_THREAD.en.d.ts +5 -2
  78. package/dist/esm/i18n/components/LOW_LEVEL_AI_CONVERSATION_THREAD.en.d.ts.map +1 -1
  79. package/dist/esm/i18n/components/LOW_LEVEL_AI_CONVERSATION_THREAD.en.js +5 -2
  80. package/dist/esm/i18n/components/LOW_LEVEL_AI_CONVERSATION_THREAD.en.js.map +1 -1
  81. package/dist/esm/i18n/components/LOW_LEVEL_AI_CONVERSATION_THREAD.fr.d.ts +5 -2
  82. package/dist/esm/i18n/components/LOW_LEVEL_AI_CONVERSATION_THREAD.fr.d.ts.map +1 -1
  83. package/dist/esm/i18n/components/LOW_LEVEL_AI_CONVERSATION_THREAD.fr.js +5 -2
  84. package/dist/esm/i18n/components/LOW_LEVEL_AI_CONVERSATION_THREAD.fr.js.map +1 -1
  85. package/dist/esm/i18n/components/LOW_LEVEL_APPROVAL_SEAL.en.d.ts +41 -0
  86. package/dist/esm/i18n/components/LOW_LEVEL_APPROVAL_SEAL.en.d.ts.map +1 -0
  87. package/dist/esm/i18n/components/LOW_LEVEL_APPROVAL_SEAL.en.js +41 -0
  88. package/dist/esm/i18n/components/LOW_LEVEL_APPROVAL_SEAL.en.js.map +1 -0
  89. package/dist/esm/i18n/components/LOW_LEVEL_APPROVAL_SEAL.fr.d.ts +41 -0
  90. package/dist/esm/i18n/components/LOW_LEVEL_APPROVAL_SEAL.fr.d.ts.map +1 -0
  91. package/dist/esm/i18n/components/LOW_LEVEL_APPROVAL_SEAL.fr.js +41 -0
  92. package/dist/esm/i18n/components/LOW_LEVEL_APPROVAL_SEAL.fr.js.map +1 -0
  93. package/dist/esm/i18n/components/LOW_LEVEL_CONTENT_SECTION_CONTAINER.en.d.ts +1 -0
  94. package/dist/esm/i18n/components/LOW_LEVEL_CONTENT_SECTION_CONTAINER.en.d.ts.map +1 -1
  95. package/dist/esm/i18n/components/LOW_LEVEL_CONTENT_SECTION_CONTAINER.en.js +2 -1
  96. package/dist/esm/i18n/components/LOW_LEVEL_CONTENT_SECTION_CONTAINER.en.js.map +1 -1
  97. package/dist/esm/i18n/components/LOW_LEVEL_CONTENT_SECTION_CONTAINER.fr.d.ts +1 -0
  98. package/dist/esm/i18n/components/LOW_LEVEL_CONTENT_SECTION_CONTAINER.fr.d.ts.map +1 -1
  99. package/dist/esm/i18n/components/LOW_LEVEL_CONTENT_SECTION_CONTAINER.fr.js +2 -1
  100. package/dist/esm/i18n/components/LOW_LEVEL_CONTENT_SECTION_CONTAINER.fr.js.map +1 -1
  101. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_STRING.en.d.ts +1 -0
  102. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_STRING.en.d.ts.map +1 -1
  103. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_STRING.en.js +2 -1
  104. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_STRING.en.js.map +1 -1
  105. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_STRING.fr.d.ts +1 -0
  106. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_STRING.fr.d.ts.map +1 -1
  107. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_STRING.fr.js +2 -1
  108. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_STRING.fr.js.map +1 -1
  109. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_MFA_CHALLENGE.en.d.ts +1 -0
  110. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_MFA_CHALLENGE.en.d.ts.map +1 -1
  111. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_MFA_CHALLENGE.en.js +2 -1
  112. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_MFA_CHALLENGE.en.js.map +1 -1
  113. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_MFA_CHALLENGE.fr.d.ts +1 -0
  114. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_MFA_CHALLENGE.fr.d.ts.map +1 -1
  115. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_MFA_CHALLENGE.fr.js +2 -1
  116. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_MFA_CHALLENGE.fr.js.map +1 -1
  117. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_TERMS.en.d.ts +2 -0
  118. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_TERMS.en.d.ts.map +1 -1
  119. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_TERMS.en.js +3 -1
  120. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_TERMS.en.js.map +1 -1
  121. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_TERMS.fr.d.ts +2 -0
  122. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_TERMS.fr.d.ts.map +1 -1
  123. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_TERMS.fr.js +3 -1
  124. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_TERMS.fr.js.map +1 -1
  125. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_AUTH.en.d.ts +1 -1
  126. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_AUTH.en.js +1 -1
  127. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_AUTH.en.js.map +1 -1
  128. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_AUTH.fr.d.ts +1 -1
  129. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_AUTH.fr.js +1 -1
  130. package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_AUTH.fr.js.map +1 -1
  131. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_FILTERS.en.d.ts +2 -0
  132. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_FILTERS.en.d.ts.map +1 -1
  133. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_FILTERS.en.js +3 -1
  134. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_FILTERS.en.js.map +1 -1
  135. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_FILTERS.fr.d.ts +3 -1
  136. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_FILTERS.fr.d.ts.map +1 -1
  137. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_FILTERS.fr.js +4 -2
  138. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_FILTERS.fr.js.map +1 -1
  139. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_LIST.en.d.ts +17 -0
  140. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_LIST.en.d.ts.map +1 -1
  141. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_LIST.en.js +18 -1
  142. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_LIST.en.js.map +1 -1
  143. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_LIST.fr.d.ts +17 -0
  144. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_LIST.fr.d.ts.map +1 -1
  145. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_LIST.fr.js +18 -1
  146. package/dist/esm/i18n/components/RESOURCES_LAYOUTS_LIST.fr.js.map +1 -1
  147. package/dist/esm/i18n/composite_views/app.creation-conversation.fr.d.ts +206 -195
  148. package/dist/esm/i18n/composite_views/app.creation-conversation.fr.d.ts.map +1 -1
  149. package/dist/esm/i18n/composite_views/app.creation-conversation.fr.js +206 -195
  150. package/dist/esm/i18n/composite_views/app.creation-conversation.fr.js.map +1 -1
  151. package/dist/esm/i18n/composite_views/app.creation-dossier.fr.d.ts +10 -0
  152. package/dist/esm/i18n/composite_views/app.creation-dossier.fr.d.ts.map +1 -1
  153. package/dist/esm/i18n/composite_views/app.creation-dossier.fr.js +12 -2
  154. package/dist/esm/i18n/composite_views/app.creation-dossier.fr.js.map +1 -1
  155. package/dist/esm/i18n/resources/wildoApplicationActorSystemExecutions.fr.d.ts +70 -0
  156. package/dist/esm/i18n/resources/wildoApplicationActorSystemExecutions.fr.d.ts.map +1 -1
  157. package/dist/esm/i18n/resources/wildoApplicationActorSystemExecutions.fr.js +70 -0
  158. package/dist/esm/i18n/resources/wildoApplicationActorSystemExecutions.fr.js.map +1 -1
  159. package/dist/esm/i18n/resources/wildoApplicationActorTasks.fr.d.ts +12 -2
  160. package/dist/esm/i18n/resources/wildoApplicationActorTasks.fr.d.ts.map +1 -1
  161. package/dist/esm/i18n/resources/wildoApplicationActorTasks.fr.js +12 -2
  162. package/dist/esm/i18n/resources/wildoApplicationActorTasks.fr.js.map +1 -1
  163. package/dist/esm/i18n/resources/wildoApplicationFlowSystemExecutions.fr.d.ts +10 -0
  164. package/dist/esm/i18n/resources/wildoApplicationFlowSystemExecutions.fr.d.ts.map +1 -1
  165. package/dist/esm/i18n/resources/wildoApplicationFlowSystemExecutions.fr.js +10 -0
  166. package/dist/esm/i18n/resources/wildoApplicationFlowSystemExecutions.fr.js.map +1 -1
  167. package/dist/esm/i18n/resources/workbenchBuildDispatchPlan.fr.d.ts +25 -20
  168. package/dist/esm/i18n/resources/workbenchBuildDispatchPlan.fr.d.ts.map +1 -1
  169. package/dist/esm/i18n/resources/workbenchBuildDispatchPlan.fr.js +25 -20
  170. package/dist/esm/i18n/resources/workbenchBuildDispatchPlan.fr.js.map +1 -1
  171. package/dist/esm/i18n/resources/workbenchBuildPlanTasks.fr.d.ts +32 -32
  172. package/dist/esm/i18n/resources/workbenchBuildPlanTasks.fr.js +32 -32
  173. package/dist/esm/i18n/resources/workbenchBuildPlanTasks.fr.js.map +1 -1
  174. package/dist/esm/i18n/resources/workbenchBuildTaskRecords.fr.d.ts +65 -65
  175. package/dist/esm/i18n/resources/workbenchBuildTaskRecords.fr.js +65 -65
  176. package/dist/esm/i18n/resources/workbenchBuildTaskRecords.fr.js.map +1 -1
  177. package/dist/esm/i18n/resources/workbenchDossierEntries.fr.d.ts +20 -0
  178. package/dist/esm/i18n/resources/workbenchDossierEntries.fr.d.ts.map +1 -1
  179. package/dist/esm/i18n/resources/workbenchDossierEntries.fr.js +20 -0
  180. package/dist/esm/i18n/resources/workbenchDossierEntries.fr.js.map +1 -1
  181. package/dist/esm/i18n/resources/workbenchGovernanceQuestions.fr.d.ts +12 -0
  182. package/dist/esm/i18n/resources/workbenchGovernanceQuestions.fr.d.ts.map +1 -1
  183. package/dist/esm/i18n/resources/workbenchGovernanceQuestions.fr.js +13 -1
  184. package/dist/esm/i18n/resources/workbenchGovernanceQuestions.fr.js.map +1 -1
  185. package/dist/esm/i18n/system_enums/application-creation.fr.d.ts +170 -170
  186. package/dist/esm/i18n/system_enums/application-creation.fr.js +170 -170
  187. package/dist/esm/i18n/system_enums/application-creation.fr.js.map +1 -1
  188. package/dist/esm/i18n/system_enums/flows-actors.fr.d.ts +22 -22
  189. package/dist/esm/i18n/system_enums/flows-actors.fr.js +22 -22
  190. package/dist/esm/i18n/system_enums/flows-actors.fr.js.map +1 -1
  191. package/dist/esm/i18n/system_enums/run-records.fr.d.ts +21 -21
  192. package/dist/esm/i18n/system_enums/run-records.fr.js +21 -21
  193. package/dist/esm/i18n/system_enums/run-records.fr.js.map +1 -1
  194. package/dist/esm/i18n/system_enums/workbench-build.en.d.ts +1 -0
  195. package/dist/esm/i18n/system_enums/workbench-build.en.d.ts.map +1 -1
  196. package/dist/esm/i18n/system_enums/workbench-build.en.js +1 -0
  197. package/dist/esm/i18n/system_enums/workbench-build.en.js.map +1 -1
  198. package/dist/esm/i18n/system_enums/workbench-build.fr.d.ts +37 -33
  199. package/dist/esm/i18n/system_enums/workbench-build.fr.d.ts.map +1 -1
  200. package/dist/esm/i18n/system_enums/workbench-build.fr.js +37 -33
  201. package/dist/esm/i18n/system_enums/workbench-build.fr.js.map +1 -1
  202. package/dist/esm/i18n/system_enums/workbench-creation-home.en.d.ts +1 -0
  203. package/dist/esm/i18n/system_enums/workbench-creation-home.en.d.ts.map +1 -1
  204. package/dist/esm/i18n/system_enums/workbench-creation-home.en.js +1 -0
  205. package/dist/esm/i18n/system_enums/workbench-creation-home.en.js.map +1 -1
  206. package/dist/esm/i18n/system_enums/workbench-creation-home.fr.d.ts +18 -17
  207. package/dist/esm/i18n/system_enums/workbench-creation-home.fr.d.ts.map +1 -1
  208. package/dist/esm/i18n/system_enums/workbench-creation-home.fr.js +18 -17
  209. package/dist/esm/i18n/system_enums/workbench-creation-home.fr.js.map +1 -1
  210. package/dist/esm/i18n/system_enums/workbench-dossier.fr.d.ts +7 -5
  211. package/dist/esm/i18n/system_enums/workbench-dossier.fr.d.ts.map +1 -1
  212. package/dist/esm/i18n/system_enums/workbench-dossier.fr.js +8 -6
  213. package/dist/esm/i18n/system_enums/workbench-dossier.fr.js.map +1 -1
  214. package/dist/esm/i18n/system_enums/workbench-secrets.fr.d.ts +12 -12
  215. package/dist/esm/i18n/system_enums/workbench-secrets.fr.js +12 -12
  216. package/dist/esm/i18n/system_enums/workbench-secrets.fr.js.map +1 -1
  217. package/dist/esm/i18n/system_enums/workbench-specification-artifact.fr.d.ts +1 -0
  218. package/dist/esm/i18n/system_enums/workbench-specification-artifact.fr.d.ts.map +1 -1
  219. package/dist/esm/i18n/system_enums/workbench-specification-artifact.fr.js +2 -1
  220. package/dist/esm/i18n/system_enums/workbench-specification-artifact.fr.js.map +1 -1
  221. package/dist/esm/i18n-labelling/services/labelling-planner.companion.service.d.ts.map +1 -1
  222. package/dist/esm/i18n-labelling/services/labelling-planner.companion.service.js +3 -4
  223. package/dist/esm/i18n-labelling/services/labelling-planner.companion.service.js.map +1 -1
  224. package/dist/esm/i18n-labelling/utils/declared-refusal-codes.utils.d.ts +11 -0
  225. package/dist/esm/i18n-labelling/utils/declared-refusal-codes.utils.d.ts.map +1 -1
  226. package/dist/esm/i18n-labelling/utils/declared-refusal-codes.utils.js +21 -0
  227. package/dist/esm/i18n-labelling/utils/declared-refusal-codes.utils.js.map +1 -1
  228. package/dist/esm/meta-workflows/services/application-build-dispatch.companion.service.d.ts +120 -16
  229. package/dist/esm/meta-workflows/services/application-build-dispatch.companion.service.d.ts.map +1 -1
  230. package/dist/esm/meta-workflows/services/application-build-dispatch.companion.service.js +875 -191
  231. package/dist/esm/meta-workflows/services/application-build-dispatch.companion.service.js.map +1 -1
  232. package/dist/esm/meta-workflows/services/application-build-follow-up-derivation.companion.d.ts +102 -13
  233. package/dist/esm/meta-workflows/services/application-build-follow-up-derivation.companion.d.ts.map +1 -1
  234. package/dist/esm/meta-workflows/services/application-build-follow-up-derivation.companion.js +243 -57
  235. package/dist/esm/meta-workflows/services/application-build-follow-up-derivation.companion.js.map +1 -1
  236. package/dist/esm/meta-workflows/services/application-build-landing-projection.companion.d.ts +3 -3
  237. package/dist/esm/meta-workflows/services/application-build-landing-projection.companion.js +3 -3
  238. package/dist/esm/meta-workflows/services/application-build-landing-projection.companion.js.map +1 -1
  239. package/dist/esm/meta-workflows/services/application-build-task-closure.companion.d.ts +9 -0
  240. package/dist/esm/meta-workflows/services/application-build-task-closure.companion.d.ts.map +1 -1
  241. package/dist/esm/meta-workflows/services/application-build-task-closure.companion.js +19 -0
  242. package/dist/esm/meta-workflows/services/application-build-task-closure.companion.js.map +1 -1
  243. package/dist/esm/meta-workflows/services/creation-intervention-ledger.companion.service.d.ts.map +1 -1
  244. package/dist/esm/meta-workflows/services/creation-intervention-ledger.companion.service.js +4 -5
  245. package/dist/esm/meta-workflows/services/creation-intervention-ledger.companion.service.js.map +1 -1
  246. package/dist/esm/meta-workflows/services/foundation-executor.companion.service.d.ts.map +1 -1
  247. package/dist/esm/meta-workflows/services/foundation-executor.companion.service.js +6 -3
  248. package/dist/esm/meta-workflows/services/foundation-executor.companion.service.js.map +1 -1
  249. package/dist/esm/meta-workflows/services/playbook-run-write-register-window.companion.d.ts.map +1 -1
  250. package/dist/esm/meta-workflows/services/playbook-run-write-register-window.companion.js +3 -5
  251. package/dist/esm/meta-workflows/services/playbook-run-write-register-window.companion.js.map +1 -1
  252. package/dist/esm/meta-workflows/services/playbook-run.companion.service.d.ts +1 -1
  253. package/dist/esm/meta-workflows/services/playbook-run.companion.service.d.ts.map +1 -1
  254. package/dist/esm/meta-workflows/services/playbook-run.companion.service.js +38 -21
  255. package/dist/esm/meta-workflows/services/playbook-run.companion.service.js.map +1 -1
  256. package/package.json +18 -18
@@ -0,0 +1,17 @@
1
+ import type { Request, Response } from 'express';
2
+ /**
3
+ * Keep a long-held request's socket open while its answer is being prepared (#3888).
4
+ *
5
+ * The companion's HTTP server sets the SOCKET INACTIVITY timeout (`server.timeout`) to its 30-minute request ceiling
6
+ * (`companion-platform-config.companion.ts`), so a request whose answer takes longer, and that sends nothing meanwhile,
7
+ * has its socket destroyed and the caller reads `fetch failed`. `POST /playbooks/loop` is such a request: the unattended
8
+ * drive holds it for as long as the loop runs, often over an hour. On reference run 43691253927 the drive was cut at
9
+ * `elapsedMs` 1,800,173 twice (08:24 and 09:41). `b0bbbb158` removed the CLIENT's limit; this is the server's.
10
+ *
11
+ * The timeout is lifted on this request's socket only, and restored once the response is finished or the connection
12
+ * closes, so a kept-alive socket goes back to the server's limit. Rejected: holding the loop detached and polling it,
13
+ * which composites do. The companion is reached over loopback by the local CLI with no proxy between, so the one property
14
+ * a detached run adds (surviving an intermediary's idle cut) buys nothing here, at the cost of a second result store.
15
+ */
16
+ export declare function holdOpenWithoutInactivityTimeout(req: Request, res: Response): void;
17
+ //# sourceMappingURL=long-held-request.companion.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"long-held-request.companion.d.ts","sourceRoot":"","sources":["../../../../src/companion-api/controllers/long-held-request.companion.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAEjD;;;;;;;;;;;;;GAaG;AACH,wBAAgB,gCAAgC,CAAC,GAAG,EAAE,OAAO,EAAE,GAAG,EAAE,QAAQ,GAAG,IAAI,CAclF"}
@@ -0,0 +1,33 @@
1
+ /**
2
+ * Keep a long-held request's socket open while its answer is being prepared (#3888).
3
+ *
4
+ * The companion's HTTP server sets the SOCKET INACTIVITY timeout (`server.timeout`) to its 30-minute request ceiling
5
+ * (`companion-platform-config.companion.ts`), so a request whose answer takes longer, and that sends nothing meanwhile,
6
+ * has its socket destroyed and the caller reads `fetch failed`. `POST /playbooks/loop` is such a request: the unattended
7
+ * drive holds it for as long as the loop runs, often over an hour. On reference run 43691253927 the drive was cut at
8
+ * `elapsedMs` 1,800,173 twice (08:24 and 09:41). `b0bbbb158` removed the CLIENT's limit; this is the server's.
9
+ *
10
+ * The timeout is lifted on this request's socket only, and restored once the response is finished or the connection
11
+ * closes, so a kept-alive socket goes back to the server's limit. Rejected: holding the loop detached and polling it,
12
+ * which composites do. The companion is reached over loopback by the local CLI with no proxy between, so the one property
13
+ * a detached run adds (surviving an intermediary's idle cut) buys nothing here, at the cost of a second result store.
14
+ */
15
+ export function holdOpenWithoutInactivityTimeout(req, res) {
16
+ const socket = req.socket;
17
+ // A request built without a socket (a test, an in-process call) has no connection to keep open.
18
+ if (socket === undefined || typeof socket.setTimeout !== 'function')
19
+ return;
20
+ const serverTimeout = socket.server?.timeout ?? 0;
21
+ socket.setTimeout(0);
22
+ let restored = false;
23
+ const restore = () => {
24
+ if (restored)
25
+ return;
26
+ restored = true;
27
+ if (!socket.destroyed)
28
+ socket.setTimeout(serverTimeout);
29
+ };
30
+ res.once?.('finish', restore);
31
+ res.once?.('close', restore);
32
+ }
33
+ //# sourceMappingURL=long-held-request.companion.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"long-held-request.companion.js","sourceRoot":"","sources":["../../../../src/companion-api/controllers/long-held-request.companion.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;GAaG;AACH,MAAM,UAAU,gCAAgC,CAAC,GAAY,EAAE,GAAa;IAC1E,MAAM,MAAM,GAAG,GAAG,CAAC,MAAM,CAAC;IAC1B,gGAAgG;IAChG,IAAI,MAAM,KAAK,SAAS,IAAI,OAAO,MAAM,CAAC,UAAU,KAAK,UAAU;QAAE,OAAO;IAC5E,MAAM,aAAa,GAAI,MAAuD,CAAC,MAAM,EAAE,OAAO,IAAI,CAAC,CAAC;IACpG,MAAM,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC;IACrB,IAAI,QAAQ,GAAG,KAAK,CAAC;IACrB,MAAM,OAAO,GAAG,GAAS,EAAE;QACzB,IAAI,QAAQ;YAAE,OAAO;QACrB,QAAQ,GAAG,IAAI,CAAC;QAChB,IAAI,CAAC,MAAM,CAAC,SAAS;YAAE,MAAM,CAAC,UAAU,CAAC,aAAa,CAAC,CAAC;IAC1D,CAAC,CAAC;IACF,GAAG,CAAC,IAAI,EAAE,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAC;IAC9B,GAAG,CAAC,IAAI,EAAE,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;AAC/B,CAAC","sourcesContent":["import type { Request, Response } from 'express';\n\n/**\n * Keep a long-held request's socket open while its answer is being prepared (#3888).\n *\n * The companion's HTTP server sets the SOCKET INACTIVITY timeout (`server.timeout`) to its 30-minute request ceiling\n * (`companion-platform-config.companion.ts`), so a request whose answer takes longer, and that sends nothing meanwhile,\n * has its socket destroyed and the caller reads `fetch failed`. `POST /playbooks/loop` is such a request: the unattended\n * drive holds it for as long as the loop runs, often over an hour. On reference run 43691253927 the drive was cut at\n * `elapsedMs` 1,800,173 twice (08:24 and 09:41). `b0bbbb158` removed the CLIENT's limit; this is the server's.\n *\n * The timeout is lifted on this request's socket only, and restored once the response is finished or the connection\n * closes, so a kept-alive socket goes back to the server's limit. Rejected: holding the loop detached and polling it,\n * which composites do. The companion is reached over loopback by the local CLI with no proxy between, so the one property\n * a detached run adds (surviving an intermediary's idle cut) buys nothing here, at the cost of a second result store.\n */\nexport function holdOpenWithoutInactivityTimeout(req: Request, res: Response): void {\n const socket = req.socket;\n // A request built without a socket (a test, an in-process call) has no connection to keep open.\n if (socket === undefined || typeof socket.setTimeout !== 'function') return;\n const serverTimeout = (socket as unknown as { server?: { timeout?: number } }).server?.timeout ?? 0;\n socket.setTimeout(0);\n let restored = false;\n const restore = (): void => {\n if (restored) return;\n restored = true;\n if (!socket.destroyed) socket.setTimeout(serverTimeout);\n };\n res.once?.('finish', restore);\n res.once?.('close', restore);\n}\n"]}
@@ -99,6 +99,15 @@ export interface CreationHomeLineInputs {
99
99
  readonly path: string;
100
100
  readonly runTaskIds: readonly string[];
101
101
  }[];
102
+ /**
103
+ * The reported gaps only a person's decision can close (#3886: a report's `needsDecision`), from the follow-up derivation:
104
+ * one ASKED line per reporting task, naming each requirement and its decision. Derived from the latest runs, never stored.
105
+ */
106
+ readonly gapsAwaitingDecision?: readonly {
107
+ readonly taskRef: string;
108
+ readonly requirementRef: string;
109
+ readonly decision: string;
110
+ }[];
102
111
  /**
103
112
  * The LANDED tasks carrying a landing advisory (#3285, `readLandedTasksWithAdvisories`): one ADVISORY suggestion each,
104
113
  * naming each setting still to set and its file. Derived from the committed tree, never stored.
@@ -1 +1 @@
1
- {"version":3,"file":"creation-home-projection.companion.d.ts","sourceRoot":"","sources":["../../../../../src/core/introspection/resources/creation-home-projection.companion.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,2BAA2B,EAAE,+BAA+B,EAAE,MAAM,wCAAwC,CAAC;AAC3H,OAAO,EAAE,8BAA8B,EAAE,MAAM,oDAAoD,CAAC;AAEpG,OAAO,EACL,KAAK,oBAAoB,EAOzB,wBAAwB,EAGxB,mCAAmC,EAGnC,KAAK,uBAAuB,EAC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B,CAAC;IAC1D;;;OAGG;IACH,QAAQ,CAAC,mBAAmB,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;CAClD;AAED;;;;;;;;;GASG;AACH,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,qBAAqB,GAAG,SAAS,kBAAkB,EAAE,CA0DjG;AAED,qHAAqH;AACrH,MAAM,MAAM,sBAAsB,GAAG,IAAI,CAAC,uBAAuB,EAAE,QAAQ,GAAG,SAAS,CAAC,CAAC"}
1
+ {"version":3,"file":"creation-home-projection.companion.d.ts","sourceRoot":"","sources":["../../../../../src/core/introspection/resources/creation-home-projection.companion.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,2BAA2B,EAAE,+BAA+B,EAAE,MAAM,wCAAwC,CAAC;AAC3H,OAAO,EAAE,8BAA8B,EAAE,MAAM,oDAAoD,CAAC;AAEpG,OAAO,EACL,KAAK,oBAAoB,EAOzB,wBAAwB,EAGxB,mCAAmC,EAGnC,KAAK,uBAAuB,EAC5B,KAAK,2BAA2B,EAChC,KAAK,uBAAuB,EAC5B,KAAK,0BAA0B,EAC/B,KAAK,yBAAyB,EAC9B,KAAK,4BAA4B,EACjC,KAAK,8BAA8B,EACnC,KAAK,kBAAkB,EACvB,KAAK,qBAAqB,EAC1B,KAAK,4BAA4B,EAClC,MAAM,gCAAgC,CAAC;AAExC,OAAO,EAAuC,KAAK,qBAAqB,EAAE,MAAM,4DAA4D,CAAC;AAE7I;;;;;;;;;;;;;;;;GAgBG;AAEH,qFAAqF;AACrF,MAAM,MAAM,mBAAmB,GAAG,IAAI,CAAC,0BAA0B,EAAE,6BAA6B,CAAC,CAAC;AAClG,mFAAmF;AACnF,MAAM,MAAM,kBAAkB,GAAG,IAAI,CAAC,yBAAyB,EAAE,4BAA4B,CAAC,CAAC;AAE/F,4EAA4E;AAC5E,eAAO,MAAM,8BAA8B,IAAI,CAAC;AAwFhD,MAAM,WAAW,sBAAsB;IACrC,QAAQ,CAAC,IAAI,EAAE,SAA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35
  /* Beside a frozen plan: nothing runs on it, and it stays uncommitted until the creator commits or discards it (#3267). */
36
36
  [WorkbenchCreationHomeLineKind.RUN_LEFTOVER_UNCOMMITTED]: 1,
37
+ [WorkbenchCreationHomeLineKind.GAP_AWAITS_DECISION]: 1,
37
38
  };
38
39
  /** Whether a stuck task, on a plan that can dispatch nothing, is a thing waiting on the CREATOR (#2412). */
39
40
  var StuckTaskAsk;
@@ -67,6 +68,7 @@ const STUCK_REASON_ASK = {
67
68
  [Workbench_BuildTaskStuckReason.CONTENDED]: StuckTaskAsk.NEVER,
68
69
  /* #3204: the wave's end re-checks it alone, by itself; nobody can do anything about it. */
69
70
  [Workbench_BuildTaskStuckReason.AWAITING_ISOLATED_RECHECK]: StuckTaskAsk.NEVER,
71
+ [Workbench_BuildTaskStuckReason.RAN_THIS_WAVE]: StuckTaskAsk.NEVER,
70
72
  /*
71
73
  * #3223: a generation step whose landing check could not be answered. Usually it heals by itself (an introspection or a
72
74
  * CLI still warming), and Home asks only when nothing else can run — then the check is persistently unanswerable, and the
@@ -303,6 +305,16 @@ export function buildCreationHomeLines(input) {
303
305
  for (const [taskRef, leftovers] of leftoversByTask) {
304
306
  asked.push(line(WorkbenchCreationHomeSection.ASKED, WorkbenchCreationHomeLineKind.RUN_LEFTOVER_UNCOMMITTED, { resourceType: WorkbenchShared_ResourceType.BUILD_PLAN_TASKS, resourceId: sanitizeWorkbenchCreationPlaneIdentity(taskRef) }, { taskRef, subject: leftovers.map(describeLeftoverForHome).join('; ') }));
305
307
  }
308
+ /*
309
+ * A gap only the person can close (#3886): the report said a decision is needed first, so no coding task was derived.
310
+ * One line per reporting task, naming each requirement and its decision.
311
+ */
312
+ const decisionsByTask = new Map();
313
+ for (const gap of input.gapsAwaitingDecision ?? [])
314
+ decisionsByTask.set(gap.taskRef, [...(decisionsByTask.get(gap.taskRef) ?? []), `${gap.requirementRef}: ${gap.decision}`]);
315
+ for (const [taskRef, decisions] of decisionsByTask) {
316
+ asked.push(line(WorkbenchCreationHomeSection.ASKED, WorkbenchCreationHomeLineKind.GAP_AWAITS_DECISION, { resourceType: WorkbenchShared_ResourceType.BUILD_PLAN_TASKS, resourceId: sanitizeWorkbenchCreationPlaneIdentity(taskRef) }, { taskRef, subject: decisions.join('; ') }));
317
+ }
306
318
  for (const document of input.documents) {
307
319
  /*
308
320
  * Only a document the creator ASKED FOR (a draft exists) and that still needs a fact (#1454,
@@ -1 +1 @@
1
- {"version":3,"file":"creation-home-projection.companion.js","sourceRoot":"","sources":["../../../../../src/core/introspection/resources/creation-home-projection.companion.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,8BAA8B,EAAE,MAAM,oDAAoD,CAAC;AACpG,OAAO,EAAE,kBAAkB,EAAE,mCAAmC,EAAE,MAAM,uBAAuB,CAAC;AAChG,OAAO,EAEL,8BAA8B,EAC9B,wDAAwD,EACxD,0BAA0B,EAC1B,4BAA4B,EAC5B,6BAA6B,EAC7B,4BAA4B,EAC5B,wBAAwB,EACxB,8BAA8B,EAC9B,4BAA4B,EAC5B,mCAAmC,EACnC,oCAAoC,EACpC,sCAAsC,GAWvC,MAAM,gCAAgC,CAAC;AAExC,OAAO,EAAE,mCAAmC,EAA8B,MAAM,4DAA4D,CAAC;AAyB7I,4EAA4E;AAC5E,MAAM,CAAC,MAAM,8BAA8B,GAAG,CAAC,CAAC;AAEhD,0EAA0E;AAC1E,SAAS,kBAAkB,CAAC,IAAiB,EAAE,KAAkB;IAC/D,IAAI,IAAI,KAAK,IAAI,IAAI,KAAK,KAAK,IAAI;QAAE,OAAO,CAAC,CAAC;IAC9C,IAAI,IAAI,KAAK,IAAI;QAAE,OAAO,CAAC,CAAC;IAC5B,IAAI,KAAK,KAAK,IAAI;QAAE,OAAO,CAAC,CAAC,CAAC;IAC9B,OAAO,KAAK,CAAC,OAAO,EAAE,GAAG,IAAI,CAAC,OAAO,EAAE,CAAC;AAC1C,CAAC;AAED;;;;GAIG;AACH,MAAM,UAAU,GAAqE;IACnF,CAAC,6BA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,CAAC,CAAC;QACL,CAAC;aAAM,IAAI,OAAO,KAAK,wBAAwB,CAAC,qBAAqB,EAAE,CAAC;YACtE,MAAM,UAAU,GAAG,oCAAoC;iBACpD,MAAM,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,KAAK,OAAO,CAAC;iBACpC,KAAK,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,EAAE,MAAM,KAAK,8BAA8B,CAAC,IAAI,CAAC,CAAC;YACrF,IAAI,CAAC,GAAG,CAAC,OAAO,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE,GAAG,QAAQ,EAAE,UAAU,EAAE,IAAI,EAAE,WAAW,EAAE,IAAI,EAAE,mBAAmB,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,CAAC,KAAK,EAAE,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,CAAC;QACpK,CAAC;aAAM,CAAC;YACN,IAAI,CAAC,GAAG,CAAC,OAAO,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE,GAAG,QAAQ,EAAE,UAAU,EAAE,IAAI,EAAE,WAAW,EAAE,IAAI,EAAE,mBAAmB,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,CAAC,KAAK,EAAE,IAAI,EAAE,KAAK,CAAC,EAAE,CAAC,CAAC;QAC9J,CAAC;IACH,CAAC,CAAC,CAAC;IACH,OAAO,oCAAoC,CAAC,GAAG,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,IAAI,CAAC,GAAG,CAAC,OAAO,CAAE,CAAC,CAAC;AACnF,CAAC","sourcesContent":["import type { BuildPlanSpecificationFault, PlaybookDatedByWaitingInterview } from '@wildo-ai/application-creation-runtime';\nimport { ApplicationSpecificationFamily } from '@wildo-ai/saas-specifications/application-creation';\nimport { FlowsActors_Status, describeModelProviderAccountRefusal } from '@wildo-ai/saas-models';\nimport {\n type BuildTaskClosureKind,\n Workbench_BuildTaskStuckReason,\n WORKBENCH_BUILD_TASK_STUCK_REASONS_WAITING_ON_A_LIVE_RUN,\n Workbench_PlaybookRunState,\n WorkbenchBuildPlanTaskStatus,\n WorkbenchCreationHomeLineKind,\n WorkbenchCreationHomeSection,\n WorkbenchCreationOutcome,\n WorkbenchCreationOutcomeStatus,\n WorkbenchShared_ResourceType,\n WorkbenchSpecificationArtifactState,\n WORKBENCH_CREATION_OUTCOMES_IN_ORDER,\n sanitizeWorkbenchCreationPlaneIdentity,\n type Workbench_BuildDispatch,\n type Workbench_BuildDispatchPlan,\n type Workbench_BuildPlanTask,\n type Workbench_CreationHomeLine,\n type Workbench_CreationOutcome,\n type Workbench_GovernanceDocument,\n type Workbench_ParkedCodingQuestion,\n type Workbench_Playbook,\n type Workbench_PlaybookRun,\n type Workbench_WaitingPlaybookRun,\n} from '@wildo-ai/platform-core-shared';\n\nimport { describeCodingAgentUsageLimitResume, type CodingAgentUsageLimit } from '../../../claude-cli/models/coding-agent-usage-limit.models';\n\n/**\n * HOME, derived (#1454): the lines the conversation page opens on, and where the application\n * stands — pure functions of the creation-plane rows the projection service already computes.\n *\n * ## Why here and not in the page\n *\n * Until 2026-09-22 the workbench read seven resources on their own cadences and derived every one\n * of these facts itself, on every poll, in three modules nothing but the page could reach. A line\n * is a FACT about the application (\"this run was refused\", \"this task's writes wait to be\n * committed\", \"this step can run and its output is missing\"); facts are derived where the rows are,\n * once, and served as rows (`derive-before-you-ask.md`). The page renders; the assistant's tools read\n * the same rows; and a test of the derivation is a test of what every reader sees.\n *\n * Both builders take the ROWS — the projected shapes the resources serve — rather than the companion\n * services' own records, so a fact is decided from exactly what a reader could see, never from a\n * field the projection dropped.\n */\n\n/** The row shape the home-lines projection emits, before the identity is stamped. */\nexport type CreationHomeLineRow = Omit<Workbench_CreationHomeLine, 'workbenchCreationHomeLineId'>;\n/** The row shape the outcomes projection emits, before the identity is stamped. */\nexport type CreationOutcomeRow = Omit<Workbench_CreationOutcome, 'workbenchCreationOutcomeId'>;\n\n/** How many playbook suggestions Home shows beside the plan's next step. */\nexport const HOME_PLAYBOOK_SUGGESTION_COUNT = 3;\n\n/** Newest first; a row with no instant sorts after every row with one. */\nfunction compareNewestFirst(left: Date | null, right: Date | null): number {\n if (left === null && right === null) return 0;\n if (left === null) return 1;\n if (right === null) return -1;\n return right.getTime() - left.getTime();\n}\n\n/**\n * The RANKING of what is asked of the creator: what stops a run that is otherwise executing comes\n * first (a clarification, a parked question); a document waiting on a fact does not block a run and\n * comes after. Within a rank, newest first.\n */\nconst ASKED_RANK: Readonly<Partial<Record<WorkbenchCreationHomeLineKind, number>>> = {\n [WorkbenchCreationHomeLineKind.CLARIFICATION]: 0,\n [WorkbenchCreationHomeLineKind.PARKED_QUESTION]: 0,\n [WorkbenchCreationHomeLineKind.GOVERNANCE_DOCUMENT]: 1,\n /*\n * Below a question (which holds a live agent session) and above a document: the plan is frozen\n * until it is unblocked, and the remedy is a fixed declaration, a re-arm or an approval.\n */\n [WorkbenchCreationHomeLineKind.UNBLOCK_THE_PLAN]: 1,\n /* A question like a clarification: answering it is what lets the work it holds run (#3361). */\n [WorkbenchCreationHomeLineKind.INTERVIEW_DATES_NEXT_WORK]: 0,\n /* Ahead of the steps it holds: fixing the module is what moves them (#3258). */\n [WorkbenchCreationHomeLineKind.SPECIFICATION_FAULT_HOLDS_THE_PLAN]: 0,\n /* Beside a frozen plan: nothing runs on it, and it stays uncommitted until the creator commits or discards it (#3267). */\n [WorkbenchCreationHomeLineKind.RUN_LEFTOVER_UNCOMMITTED]: 1,\n};\n\n/** Whether a stuck task, on a plan that can dispatch nothing, is a thing waiting on the CREATOR (#2412). */\nenum StuckTaskAsk {\n /** It needs the creator: fix a declaration or the work, re-arm a task whose attempts are spent, or a missing blueprint. */\n ASKS = 'asks',\n /** It needs the creator only once no run of the plan is live; while one is, the wave that wrote it has yet to commit. */\n ASKS_ONCE_NOTHING_RUNS = 'asks-once-nothing-runs',\n /** Nobody's move, or already asked on a line of its own. */\n NEVER = 'never',\n}\n\n/**\n * How each stuck reason reads in ASKED. Total over the reasons, so a reason added tomorrow has to be classified here\n * rather than landing in ASKED by default.\n *\n * `app-creation-test-005` printed \"the build plan is stuck at …: in_flight\" three times, and three more lines for a\n * product awaiting its commit (a reason retired with #3514, since landing reads the working tree), in ONE running wave,\n * and the hook counted all six as questions. Neither was the creator's move:\n *\n * - `IN_FLIGHT` — a run of it is live and it clears when that run settles. NEVER.\n * - `PARKED_AWAITING_ANSWER` — its question is already a `PARKED_QUESTION` line, one per question. NEVER, or it is\n * asked twice.\n */\nconst STUCK_REASON_ASK: Readonly<Record<Workbench_BuildTaskStuckReason, StuckTaskAsk>> = {\n [Workbench_BuildTaskStuckReason.COMPLETED_UNLANDED]: StuckTaskAsk.ASKS,\n [Workbench_BuildTaskStuckReason.PARKED_AWAITING_ANSWER]: StuckTaskAsk.NEVER,\n [Workbench_BuildTaskStuckReason.NO_DOCUMENT_BLUEPRINT]: StuckTaskAsk.ASKS,\n [Workbench_BuildTaskStuckReason.ATTEMPTS_EXHAUSTED]: StuckTaskAsk.ASKS,\n [Workbench_BuildTaskStuckReason.IN_FLIGHT]: StuckTaskAsk.NEVER,\n /* #3204: it starts when the run writing its file settles; nobody can do anything about it. */\n [Workbench_BuildTaskStuckReason.CONTENDED]: StuckTaskAsk.NEVER,\n /* #3204: the wave's end re-checks it alone, by itself; nobody can do anything about it. */\n [Workbench_BuildTaskStuckReason.AWAITING_ISOLATED_RECHECK]: StuckTaskAsk.NEVER,\n /*\n * #3223: a generation step whose landing check could not be answered. Usually it heals by itself (an introspection or a\n * CLI still warming), and Home asks only when nothing else can run — then the check is persistently unanswerable, and the\n * dispatch refusal names the check and the command that shows what the creator has to repair.\n */\n [Workbench_BuildTaskStuckReason.LANDING_UNKNOWN]: StuckTaskAsk.ASKS,\n /* #3227: under GUIDED a derived follow-up waits for the creator's review, which only they can give. */\n [Workbench_BuildTaskStuckReason.FOLLOW_UP_AWAITING_REVIEW]: StuckTaskAsk.ASKS,\n /*\n * Stale expert charters are repaired by the build-dispatch step, which runs the staffing step on its own. Asked only once\n * nothing runs: then the repair did not take, or a person edited a charter, whose remedy is theirs.\n */\n [Workbench_BuildTaskStuckReason.STALE_EXPERT_CHARTERS]: StuckTaskAsk.ASKS_ONCE_NOTHING_RUNS,\n /*\n * #3709: a generation step failing the same way on unchanged inputs. Its cause needs a fix, often outside the\n * application (an engine's examples, an engine label key), and only a person makes it: asked, like an exhausted budget.\n */\n [Workbench_BuildTaskStuckReason.REPEATED_IDENTICAL_FAILURE]: StuckTaskAsk.ASKS,\n /* #3709: a step failing on a cause the framework owns. Only a framework fix and a person's re-run clear it: asked. */\n [Workbench_BuildTaskStuckReason.FAILURE_OUTSIDE_APPLICATION]: StuckTaskAsk.ASKS,\n};\n\nexport interface CreationHomeLineInputs {\n readonly runs: readonly Workbench_PlaybookRun[];\n readonly dispatches: readonly Workbench_BuildDispatch[];\n readonly waiting: readonly Workbench_WaitingPlaybookRun[];\n readonly parked: readonly Workbench_ParkedCodingQuestion[];\n readonly documents: readonly Workbench_GovernanceDocument[];\n readonly dispatchPlan: readonly Workbench_BuildDispatchPlan[];\n readonly playbooks: readonly Workbench_Playbook[];\n /** Every family the artifact projection reports, with its state. */\n readonly artifacts: readonly { readonly family: string; readonly state: WorkbenchSpecificationArtifactState }[];\n /**\n * The coding agent's usage limit holding the build NOW (#2388) — the dispatch service's live hold, which is the\n * pause itself, so the line exists exactly while the build is paused. Absent when nothing holds it.\n */\n readonly codingAgentUsageLimit?: CodingAgentUsageLimit & { readonly taskRef: string };\n /**\n * The network loss holding coding admissions NOW (#3236, #3262) — the dispatch service's live connectivity hold, so the\n * line exists exactly while no coding turn is admitted. `route` is the probe's route in words, absent when none is known.\n */\n readonly codingAgentConnectivityHold?: { readonly observedAt: string; readonly taskRef: string; readonly route?: string };\n /**\n * The host cause holding coding admissions NOW (#3423, #3432): the dispatch service's live hold, so the line exists\n * exactly while no coding turn is admitted for it. `cause` is the cause and its remedy in one sentence\n * (`describeVerificationHostCause`): an absent command, a command lacking the verb, or a check that cannot be asked the\n * same way on two tasks.\n */\n readonly verificationToolUnavailableHold?: { readonly observedAt: string; readonly taskRef: string; readonly cause: string };\n /** The instant the resume time is worded against (its date shows when it is not today); the read's own when omitted. */\n readonly now?: Date;\n /**\n * The build tasks a person CLOSED (`wildo build close`, #3224, #3227) whose closure counts now: one SINCE line each, so\n * the feed and Home say that a person, not a probe, settled them. The line carries the person's own words only; how the\n * closure accounts for the task (its kind, what satisfied it) is on the task's record, worded from the vocabulary.\n */\n readonly closures?: readonly { readonly taskRef: string; readonly kind: BuildTaskClosureKind; readonly satisfiedBy?: string; readonly reason: string; readonly closedAt: string }[];\n /**\n * The derived follow-ups that landed while their latest completed run still reports a requirement unmet (#2583): one\n * ADVISORY suggestion each. A projection of the follow-up's landing and that run's report, never a stored state.\n */\n readonly followUpsLandedWithGaps?: readonly { readonly taskRef: string; readonly unmetRequirements: readonly { readonly requirementRef: string; readonly missing: string }[] }[];\n /**\n * Files a task's coding runs left uncommitted that no automatic door will commit (#3267; a stuck task's declared product aside, #3204), from the commit door's own\n * reading of the write register and the tree (`listUncommittedRunLeftovers`): one ASKED line per task.\n */\n readonly uncommittedLeftovers?: readonly { readonly taskRef: string; readonly path: string; readonly runTaskIds: readonly string[] }[];\n /**\n * The LANDED tasks carrying a landing advisory (#3285, `readLandedTasksWithAdvisories`): one ADVISORY suggestion each,\n * naming each setting still to set and its file. Derived from the committed tree, never stored.\n */\n readonly landedTasksWithAdvisories?: readonly { readonly taskRef: string; readonly advisories: readonly { readonly setting: string; readonly settingPath: string }[] }[];\n /**\n * The steps an unattended round withholds because an interview still waiting on the person would date them (#3361), from\n * the eligibility board (`findReadersDatedByWaitingInterviews`): one ASKED line per waiting interview.\n */\n readonly datedByWaitingInterviews?: readonly PlaybookDatedByWaitingInterview[];\n}\n\n/** One leftover in a Home line's subject: the file, and the runs whose record holds it as it is now (#3267). */\nfunction describeLeftoverForHome(leftover: { readonly path: string; readonly runTaskIds: readonly string[] }): string {\n return `${leftover.path} (recorded by ${leftover.runTaskIds.length === 1 ? 'run' : 'runs'} ${leftover.runTaskIds.join(', ')})`;\n}\n\n\n/**\n * When a build dispatch ENDED, and whether it failed — or `null` while it has not (#2523).\n *\n * Read from the dispatch's RUN — the execution it is — for both executors. Home used to read the phase, which\n * is a generation step's outcome but only a coding run's hand-off (it stops at ADMITTED by design), so no\n * coding run ever appeared as settled. A dispatch refused before its run started ends its execution too\n * (ABORTED or FAILED), so it is read the same way.\n */\nexport function dispatchEnding(dispatch: Workbench_BuildDispatch): { readonly at: Date | null; readonly failed: boolean } | null {\n if (!RUN_HAS_ENDED[dispatch.runStatus]) return null;\n return { at: dispatch.runFinishedAt ?? dispatch.settledAt ?? null, failed: dispatch.runStatus !== FlowsActors_Status.COMPLETED };\n}\n\n/**\n * Which execution statuses END a run. Total over the vocabulary, so a status added to it is a compile error\n * here rather than a run Home silently never lists. A run waiting on an answer has not ended: it parks and\n * resumes under the same execution.\n */\nconst RUN_HAS_ENDED: Record<FlowsActors_Status, boolean> = {\n [FlowsActors_Status.READY]: false,\n [FlowsActors_Status.PENDING]: false,\n [FlowsActors_Status.PROCESSING]: false,\n [FlowsActors_Status.AWAITING_APPROVAL]: false,\n [FlowsActors_Status.COMPLETED]: true,\n [FlowsActors_Status.FAILED]: true,\n [FlowsActors_Status.CANCELLED]: true,\n [FlowsActors_Status.ABORTED]: true,\n};\n\n/**\n * The re-runs inside a run's lanes that did not land while their family's earlier landing stands (#3213), latest failure\n * per playbook, in the order they first appear. A landing STANDS — the runtime's own rule (`landingStands` in the\n * choreography) — when the child re-ran over a landing the record held (`reranOverLanding`: a REFRESH, or a CURRENT\n * landing re-opened), or when an earlier round of this run landed it. A FIRST run that failed left nothing to stand and\n * is never one: `ranBecause` cannot tell them apart, since it is written for a first run too.\n */\nfunction failedRepairsOf(run: Workbench_PlaybookRun): ReadonlyArray<{ readonly playbookRef: string; readonly failure: string }> {\n const latest = new Map<string, string>();\n const landedInThisRun = new Set<string>();\n for (const round of run.choreographyRounds ?? []) {\n for (const child of round.children) {\n if (child.failure === null) {\n // A run of the playbook that landed: it delivered (so a later failure stands on it), and it repaired any earlier one.\n if (child.landed.length > 0) landedInThisRun.add(child.playbookRef);\n latest.delete(child.playbookRef);\n } else if (child.reranOverLanding === true || landedInThisRun.has(child.playbookRef)) {\n latest.set(child.playbookRef, child.failure);\n }\n }\n }\n return [...latest].map(([playbookRef, failure]) => ({ playbookRef, failure }));\n}\n\n/**\n * Every line of Home, all three sections. SINCE lines are NOT windowed here: \"since the creator was\n * last here\" is a per-viewer fact the page keeps in its own browser, so the page cuts the list; the\n * projection serves every settled run and dispatch it knows, newest first, and every interrupted\n * run whatever its date.\n */\nexport function buildCreationHomeLines(input: CreationHomeLineInputs): readonly CreationHomeLineRow[] {\n const line = (\n section: WorkbenchCreationHomeSection,\n kind: WorkbenchCreationHomeLineKind,\n target: { resourceType: WorkbenchShared_ResourceType; resourceId: string },\n facts: Partial<Pick<CreationHomeLineRow, 'at' | 'playbookRef' | 'taskRef' | 'subject' | 'failed' | 'acceptable' | 'needsAnswers' | 'stuckReason'>> = {},\n ): CreationHomeLineRow => ({\n section,\n kind,\n at: null,\n playbookRef: null,\n taskRef: null,\n subject: null,\n failed: false,\n acceptable: false,\n needsAnswers: false,\n stuckReason: null,\n targetResourceType: target.resourceType,\n targetResourceId: target.resourceId,\n ...facts,\n });\n\n /* SINCE — what happened. */\n const since: CreationHomeLineRow[] = [];\n for (const run of input.runs) {\n const target = { resourceType: WorkbenchShared_ResourceType.PLAYBOOK_RUNS, resourceId: run.workbenchPlaybookRunId };\n if (run.state === Workbench_PlaybookRunState.COMPLETED) {\n since.push(line(WorkbenchCreationHomeSection.SINCE, WorkbenchCreationHomeLineKind.RUN_COMPLETED, target, {\n at: run.finishedAt ?? null, playbookRef: run.playbookRef, failed: run.ok === false,\n }));\n /*\n * A RE-RUN inside the run's lanes that did not land, over a landing that stands (#3213): a NON-FATAL repair failure.\n * A failed repair of `build-decompose` used to read only as the lane's REFUSED line, so a person read the whole\n * build as failed while the plan on disk still dispatched. Said once per run, naming every such re-run: a child that\n * re-ran over a recorded landing (`reranOverLanding`, read from the rerun verdict's KIND) or over one this run landed,\n * and failed, kept that landing.\n */\n const failedRepairs = failedRepairsOf(run);\n if (failedRepairs.length > 0) {\n since.push(line(WorkbenchCreationHomeSection.SINCE, WorkbenchCreationHomeLineKind.REPAIR_FAILED_LANDING_STANDS, target, {\n at: run.finishedAt ?? null,\n playbookRef: failedRepairs[0]!.playbookRef,\n subject: failedRepairs.map((repair) => `${repair.playbookRef}: ${repair.failure}`).join('; '),\n failed: false,\n }));\n }\n } else if (run.state === Workbench_PlaybookRunState.INTERRUPTED) {\n since.push(line(WorkbenchCreationHomeSection.SINCE, WorkbenchCreationHomeLineKind.RUN_INTERRUPTED, target, {\n at: run.checkpointedAt ?? run.startedAt ?? null, playbookRef: run.playbookRef,\n }));\n }\n }\n for (const dispatch of input.dispatches) {\n const ending = dispatchEnding(dispatch);\n if (ending === null) continue;\n since.push(line(WorkbenchCreationHomeSection.SINCE, WorkbenchCreationHomeLineKind.DISPATCH_SETTLED,\n { resourceType: WorkbenchShared_ResourceType.BUILD_DISPATCHES, resourceId: dispatch.workbenchBuildDispatchId }, {\n at: ending.at,\n taskRef: dispatch.taskRef,\n failed: ending.failed,\n /*\n * The one state ACCEPT addresses: a coding run that completed, recorded writes and has none committed.\n * The row's `accepted === false` means exactly that, so it is read as is (#2523).\n */\n acceptable: dispatch.accepted === false,\n }));\n }\n /*\n * The coding agent's account usage limit, while it holds (#2388): one line saying the build is paused and when\n * it resumes. Read from the LIVE hold the dispatch service keeps, never re-derived from a dispatch row: a\n * coding run that started is projected ADMITTED however it ends and carries no error there, so a row-based\n * reading never fired in production (#2388 review F1). It opens the build-plan task whose run met the limit,\n * a row that exists for as long as the plan holds the task. `failed` stays false: the build is paused, not\n * failing, and the kind's own tone says so.\n */\n const limit = input.codingAgentUsageLimit;\n if (limit) {\n // A refused provider ACCOUNT (#3204) is its own kind: a person lifts it, nothing resets, so it never reads as a limit\n // that \"resumes on its own\". Its subject is the refusal's sentence: who refused, and where to fix it.\n since.push(line(WorkbenchCreationHomeSection.SINCE, limit.accountRefusal\n ? WorkbenchCreationHomeLineKind.CODING_AGENT_ACCOUNT_REFUSED\n : WorkbenchCreationHomeLineKind.CODING_AGENT_USAGE_LIMITED,\n { resourceType: WorkbenchShared_ResourceType.BUILD_PLAN_TASKS, resourceId: sanitizeWorkbenchCreationPlaneIdentity(limit.taskRef) }, {\n at: new Date(limit.observedAt),\n taskRef: limit.taskRef,\n subject: limit.accountRefusal\n ? describeModelProviderAccountRefusal(limit.accountRefusal)\n : describeCodingAgentUsageLimitResume(limit, input.now ?? new Date()),\n }));\n }\n /*\n * The coding agent lost the network (#3236, #3262): one line while the connectivity hold lasts, read from the LIVE\n * hold for the same reason as the usage limit's. Before it, a wave waiting up to twenty minutes on a probe looked\n * stalled, and the hold was a WARN in the companion's log. `failed` stays false: the build is waiting, not failing.\n */\n const connectivity = input.codingAgentConnectivityHold;\n if (connectivity) {\n since.push(line(WorkbenchCreationHomeSection.SINCE, WorkbenchCreationHomeLineKind.CODING_AGENT_CONNECTIVITY_LOST,\n { resourceType: WorkbenchShared_ResourceType.BUILD_PLAN_TASKS, resourceId: sanitizeWorkbenchCreationPlaneIdentity(connectivity.taskRef) }, {\n at: Number.isNaN(Date.parse(connectivity.observedAt)) ? null : new Date(connectivity.observedAt),\n taskRef: connectivity.taskRef,\n subject: connectivity.route ?? null,\n }));\n }\n /*\n * A verification check cannot be asked for a host cause (#3423, #3432): one line while the hold lasts, read from the LIVE\n * hold like the two above, its subject the cause and remedy. `failed` stays false: nothing the creation built is lost.\n */\n const toolHold = input.verificationToolUnavailableHold;\n if (toolHold) {\n since.push(line(WorkbenchCreationHomeSection.SINCE, WorkbenchCreationHomeLineKind.VERIFICATION_TOOL_UNAVAILABLE,\n { resourceType: WorkbenchShared_ResourceType.BUILD_PLAN_TASKS, resourceId: sanitizeWorkbenchCreationPlaneIdentity(toolHold.taskRef) }, {\n at: Number.isNaN(Date.parse(toolHold.observedAt)) ? null : new Date(toolHold.observedAt),\n taskRef: toolHold.taskRef,\n subject: toolHold.cause,\n }));\n }\n /* A person closed a build task (#3224, #3227): `subject` is their reason, in their words; the kind is on the task's record. */\n for (const closure of input.closures ?? []) {\n since.push(line(WorkbenchCreationHomeSection.SINCE, WorkbenchCreationHomeLineKind.BUILD_TASK_CLOSED,\n { resourceType: WorkbenchShared_ResourceType.BUILD_PLAN_TASKS, resourceId: sanitizeWorkbenchCreationPlaneIdentity(closure.taskRef) }, {\n at: Number.isNaN(Date.parse(closure.closedAt)) ? null : new Date(closure.closedAt),\n taskRef: closure.taskRef,\n subject: closure.reason,\n }));\n }\n since.sort((left, right) => compareNewestFirst(left.at, right.at));\n\n /* ASKED — what blocks something NOW and waits on the creator. */\n const asked: CreationHomeLineRow[] = [];\n for (const waiting of input.waiting) {\n /* An unreadable checkpoint is a condition to show on its own row, not a question anyone can answer. */\n if (!waiting.readable) continue;\n asked.push(line(WorkbenchCreationHomeSection.ASKED, WorkbenchCreationHomeLineKind.CLARIFICATION,\n { resourceType: WorkbenchShared_ResourceType.WAITING_PLAYBOOK_RUNS, resourceId: waiting.workbenchWaitingPlaybookRunId },\n { at: waiting.suspendedAt ?? null, playbookRef: waiting.playbookRef ?? null }));\n }\n /*\n * An interview waiting on the creator whose answer would date work the next unattended round could run (#3361). The\n * round withholds that work, so the line is what moves it: answering lets it run once, on the answer. One line per\n * interview, naming the steps it holds; it opens the interview's playbook, whose way in is the interview.\n */\n const heldByInterview = new Map<string, string[]>();\n for (const dated of input.datedByWaitingInterviews ?? []) {\n for (const waiting of dated.waitingOn) heldByInterview.set(waiting.interviewRef, [...(heldByInterview.get(waiting.interviewRef) ?? []), dated.readerRef]);\n }\n for (const [interviewRef, readerRefs] of heldByInterview) {\n asked.push(line(WorkbenchCreationHomeSection.ASKED, WorkbenchCreationHomeLineKind.INTERVIEW_DATES_NEXT_WORK,\n { resourceType: WorkbenchShared_ResourceType.PLAYBOOKS, resourceId: sanitizeWorkbenchCreationPlaneIdentity(interviewRef) },\n { playbookRef: interviewRef, subject: [...new Set(readerRefs)].sort().join(', '), needsAnswers: true }));\n }\n for (const parked of input.parked) {\n asked.push(line(WorkbenchCreationHomeSection.ASKED, WorkbenchCreationHomeLineKind.PARKED_QUESTION,\n { resourceType: WorkbenchShared_ResourceType.PARKED_CODING_QUESTIONS, resourceId: parked.workbenchParkedCodingQuestionId },\n { at: parked.parkedAt ?? null, taskRef: parked.taskRef }));\n }\n /*\n * Files a build task's runs left uncommitted that nothing will commit on its own (#3267): one line per task, naming\n * each file and its runs. It never stays silently uncommitted; the CLI prints the two doors.\n */\n const leftoversByTask = new Map<string, Array<{ readonly path: string; readonly runTaskIds: readonly string[] }>>();\n for (const leftover of input.uncommittedLeftovers ?? []) leftoversByTask.set(leftover.taskRef, [...(leftoversByTask.get(leftover.taskRef) ?? []), leftover]);\n for (const [taskRef, leftovers] of leftoversByTask) {\n asked.push(line(WorkbenchCreationHomeSection.ASKED, WorkbenchCreationHomeLineKind.RUN_LEFTOVER_UNCOMMITTED,\n { resourceType: WorkbenchShared_ResourceType.BUILD_PLAN_TASKS, resourceId: sanitizeWorkbenchCreationPlaneIdentity(taskRef) },\n { taskRef, subject: leftovers.map(describeLeftoverForHome).join('; ') }));\n }\n for (const document of input.documents) {\n /*\n * Only a document the creator ASKED FOR (a draft exists) and that still needs a fact (#1454,\n * Step 6). A permanent count of every open fact of every undrafted document would train the eye\n * to skip the number.\n */\n if (!document.drafted || document.openCount === 0) continue;\n asked.push(line(WorkbenchCreationHomeSection.ASKED, WorkbenchCreationHomeLineKind.GOVERNANCE_DOCUMENT,\n { resourceType: WorkbenchShared_ResourceType.GOVERNANCE_DOCUMENTS, resourceId: document.workbenchGovernanceDocumentId },\n { subject: document.definitionRef }));\n }\n /*\n * The plan itself, when it can run NOTHING (#1451). The dispatch-plan row carries one entry per\n * ready task dispatch passed over, and a row with no `taskRef` that is not `exhausted` means every\n * one of them is stuck — so this is the state where the plan needs the creator rather than a\n * dispatch. One line per stuck task: each carries its own remedy.\n *\n * Beside a next task the row still lists what the selection skipped, and those are NOT shown here:\n * the plan is moving, and a line asking for something that is not blocking anything is how an\n * ASKED list stops being read.\n */\n for (const row of input.dispatchPlan) {\n // A repair owed is a run still to make, so nothing is asked of a person yet (#3258).\n if (row.taskRef !== null || row.exhausted || row.specificationRepairOwed === true) continue;\n const failingModules = row.failingSpecificationModules ?? [];\n if (failingModules.length > 0) {\n asked.push(line(WorkbenchCreationHomeSection.ASKED, WorkbenchCreationHomeLineKind.SPECIFICATION_FAULT_HOLDS_THE_PLAN,\n { resourceType: WorkbenchShared_ResourceType.BUILD_DISPATCH_PLAN, resourceId: row.workbenchBuildDispatchPlanId },\n { subject: failingModules.join(', ') }));\n }\n const stuckTasks = row.stuckTasks ?? [];\n // A task waiting on a live run, its own or one writing its file, proves a run is live (#3204).\n const aRunIsLive = stuckTasks.some((stuck) => WORKBENCH_BUILD_TASK_STUCK_REASONS_WAITING_ON_A_LIVE_RUN.has(stuck.reason));\n for (const stuck of stuckTasks) {\n const ask = STUCK_REASON_ASK[stuck.reason];\n if (ask === StuckTaskAsk.NEVER || (ask === StuckTaskAsk.ASKS_ONCE_NOTHING_RUNS && aRunIsLive)) continue;\n asked.push(line(WorkbenchCreationHomeSection.ASKED, WorkbenchCreationHomeLineKind.UNBLOCK_THE_PLAN,\n { resourceType: WorkbenchShared_ResourceType.BUILD_DISPATCH_PLAN, resourceId: row.workbenchBuildDispatchPlanId },\n { taskRef: stuck.taskRef, stuckReason: stuck.reason }));\n }\n }\n asked.sort((left, right) => {\n const rank = (ASKED_RANK[left.kind] ?? 9) - (ASKED_RANK[right.kind] ?? 9);\n return rank !== 0 ? rank : compareNewestFirst(left.at, right.at);\n });\n\n /*\n * SUGGESTION — what the creator could do next, outcome-first: the plan's next READY task, then\n * eligible playbooks producing a MISSING family before those refreshing a STALE one (a gap is\n * worth more than a refresh), capped.\n */\n const suggestions: CreationHomeLineRow[] = [];\n const next = input.dispatchPlan.find((row) => row.taskRef !== null && row.objective !== null);\n if (next && next.taskRef && next.objective) {\n suggestions.push(line(WorkbenchCreationHomeSection.SUGGESTION, WorkbenchCreationHomeLineKind.CONTINUE_THE_PLAN,\n { resourceType: WorkbenchShared_ResourceType.BUILD_DISPATCH_PLAN, resourceId: next.workbenchBuildDispatchPlanId },\n { taskRef: next.taskRef, subject: next.objective }));\n }\n const missingFamilies = new Set(\n input.artifacts.filter((artifact) => artifact.state === WorkbenchSpecificationArtifactState.NOT_LANDED).map((artifact) => artifact.family),\n );\n const producing: CreationHomeLineRow[] = [];\n const refreshing: CreationHomeLineRow[] = [];\n for (const playbook of input.playbooks) {\n if (!playbook.eligible) continue;\n const target = { resourceType: WorkbenchShared_ResourceType.PLAYBOOKS, resourceId: playbook.workbenchPlaybookId };\n const facts = { playbookRef: playbook.playbookRef, needsAnswers: playbook.unansweredQuestionRefs.length > 0 };\n if (playbook.outputOwners.some((owner) => missingFamilies.has(owner.family))) {\n producing.push(line(WorkbenchCreationHomeSection.SUGGESTION, WorkbenchCreationHomeLineKind.PRODUCE_MISSING, target, facts));\n } else if (playbook.staleOutputs.length > 0) {\n refreshing.push(line(WorkbenchCreationHomeSection.SUGGESTION, WorkbenchCreationHomeLineKind.REFRESH_STALE, target, facts));\n }\n }\n const playbookSuggestions = [...producing, ...refreshing].slice(0, HOME_PLAYBOOK_SUGGESTION_COUNT);\n\n /*\n * A follow-up that LANDED while its latest completed run still reports a requirement unmet (#2583). It landed\n * RAN-not-PROVEN, because holding it unlanded put the whole plan behind a person's decision, the defect\n * `application-creation-directive.md` names. So this is ADVISORY, a SUGGESTION: it never makes anything ineligible and\n * never stops the loop. It names each requirement and what the run said is missing; the door is running it again on\n * purpose, which every renderer prints beside it (`wildo build run <ref> --despite-landed --reason operator-judgement\n * --note \"<why>\"`). Without it the gap was visible only to someone who asked (`wildo context journey`).\n */\n const followUpGaps = (input.followUpsLandedWithGaps ?? []).filter((followUp) => followUp.unmetRequirements.length > 0).map((followUp) => line(\n WorkbenchCreationHomeSection.SUGGESTION, WorkbenchCreationHomeLineKind.FOLLOW_UP_LANDED_WITH_GAP,\n { resourceType: WorkbenchShared_ResourceType.BUILD_PLAN_TASKS, resourceId: sanitizeWorkbenchCreationPlaneIdentity(followUp.taskRef) },\n { taskRef: followUp.taskRef, subject: followUp.unmetRequirements.map((gap) => `${gap.requirementRef}: ${gap.missing}`).join('; ') },\n ));\n\n /*\n * A task that LANDED with something its landing does not cover left unfinished (#3285): a billing catalogue committed\n * while the backend does not enable billing. ADVISORY, like a follow-up's gap: the task stays landed and nothing stops,\n * because the remedy (a provider secret) is the person's and the switch alone fails backend startup. Without it the\n * mark was visible only on `wildo build tasks` and `wildo creation why`.\n */\n const landingAdvisories = (input.landedTasksWithAdvisories ?? []).filter((task) => task.advisories.length > 0).map((task) => line(\n WorkbenchCreationHomeSection.SUGGESTION, WorkbenchCreationHomeLineKind.LANDED_WITH_ADVISORY,\n { resourceType: WorkbenchShared_ResourceType.BUILD_PLAN_TASKS, resourceId: sanitizeWorkbenchCreationPlaneIdentity(task.taskRef) },\n { taskRef: task.taskRef, subject: task.advisories.map((advisory) => `${advisory.setting} (${advisory.settingPath})`).join('; ') },\n ));\n\n return [...since, ...asked, ...suggestions, ...followUpGaps, ...landingAdvisories, ...playbookSuggestions];\n}\n\n/**\n * Every specification family belongs to exactly ONE outcome, and the map is TOTAL by construction:\n * `Record<ApplicationSpecificationFamily, …>` makes a family added to the semantic authority a\n * compile error here until it is placed. That is the property the page's mock promised — \"derived\n * from what exists\" — and the reason this is a typed record rather than a lookup with a default.\n *\n * `RISK_REGISTER` is under the rules rather than under what-we-build: it says what the exposure\n * MEANS, which is an obligation, and its playbook is in the compliance analysis.\n *\n * `null` is a placement too, and the map stays total: `CREATOR_INPUTS` — the dossier — is INPUT the\n * creator gives, never a deliverable a step produces, so counting it toward an outcome would make\n * \"know what we build\" one answer closer to done for having been asked a question. A family placed\n * `null` is measured by nothing; the compiler still refuses a family placed nowhere.\n */\nexport const OUTCOME_BY_FAMILY: Readonly<Record<ApplicationSpecificationFamily, WorkbenchCreationOutcome | null>> = {\n [ApplicationSpecificationFamily.VISION_BRIEF]: WorkbenchCreationOutcome.KNOW_WHAT_WE_BUILD,\n [ApplicationSpecificationFamily.MARKET_SNAPSHOT]: WorkbenchCreationOutcome.KNOW_WHAT_WE_BUILD,\n [ApplicationSpecificationFamily.REQUIREMENTS]: WorkbenchCreationOutcome.KNOW_WHAT_WE_BUILD,\n [ApplicationSpecificationFamily.FEATURE_DRAFTS]: WorkbenchCreationOutcome.KNOW_WHAT_WE_BUILD,\n [ApplicationSpecificationFamily.BUSINESS_MODEL]: WorkbenchCreationOutcome.KNOW_WHAT_WE_BUILD,\n [ApplicationSpecificationFamily.ROADMAP]: WorkbenchCreationOutcome.KNOW_WHAT_WE_BUILD,\n [ApplicationSpecificationFamily.BRAND_BRIEF]: WorkbenchCreationOutcome.KNOW_WHAT_WE_BUILD,\n /* KNOW_WHAT_WE_BUILD with the brand it names: the name is part of what the product IS. */\n [ApplicationSpecificationFamily.BRAND_NAME_SCREENING]: WorkbenchCreationOutcome.KNOW_WHAT_WE_BUILD,\n /* KNOW_WHAT_WE_BUILD: the firm's method is what the product is FOR, decided before the plans built from it. */\n [ApplicationSpecificationFamily.SERVICE_METHOD]: WorkbenchCreationOutcome.KNOW_WHAT_WE_BUILD,\n /* KNOW_THE_RULES: which regimes apply is the first thing the rules are (#3362). */\n [ApplicationSpecificationFamily.COMPLIANCE_POSTURE]: WorkbenchCreationOutcome.KNOW_THE_RULES,\n [ApplicationSpecificationFamily.COMPLIANCE_PROGRAM]: WorkbenchCreationOutcome.KNOW_THE_RULES,\n [ApplicationSpecificationFamily.COMPLIANCE_DOCUMENT_CANDIDATE]: WorkbenchCreationOutcome.KNOW_THE_RULES,\n [ApplicationSpecificationFamily.COMPLIANCE_DOCUMENT_CANDIDATE_SET]: WorkbenchCreationOutcome.KNOW_THE_RULES,\n [ApplicationSpecificationFamily.DOCUMENT_RELEASE_POLICY]: WorkbenchCreationOutcome.KNOW_THE_RULES,\n [ApplicationSpecificationFamily.DOCUMENT_FACTS]: WorkbenchCreationOutcome.KNOW_THE_RULES,\n [ApplicationSpecificationFamily.DOCUMENT_FACTS_AUTHORED]: WorkbenchCreationOutcome.KNOW_THE_RULES,\n [ApplicationSpecificationFamily.PROCESSOR_REGISTER]: WorkbenchCreationOutcome.KNOW_THE_RULES,\n [ApplicationSpecificationFamily.RISK_REGISTER]: WorkbenchCreationOutcome.KNOW_THE_RULES,\n [ApplicationSpecificationFamily.DOMAIN_PLAN]: WorkbenchCreationOutcome.APPLICATION_WORKS,\n [ApplicationSpecificationFamily.PLACEMENT_PLAN]: WorkbenchCreationOutcome.APPLICATION_WORKS,\n [ApplicationSpecificationFamily.BUILD_PLAN]: WorkbenchCreationOutcome.APPLICATION_WORKS,\n // Which optional packages the application is composed with — part of the application working, like its placement (#1491).\n [ApplicationSpecificationFamily.CAPABILITY_COMPOSITION]: WorkbenchCreationOutcome.APPLICATION_WORKS,\n /*\n * READY_FOR_A_REAL_USER, not APPLICATION_WORKS: an application works without a marketing site, and\n * what the site says is what a stranger meets first (#1492). The same reading the governed\n * documents carry — the outcome is about facing the public, not about the product functioning.\n */\n [ApplicationSpecificationFamily.WEBSITE_PLAN]: WorkbenchCreationOutcome.READY_FOR_A_REAL_USER,\n /* Same reading as the website: documentation is what a stranger meets, not what makes the product work. */\n [ApplicationSpecificationFamily.DOCUMENTATION_PLAN]: WorkbenchCreationOutcome.READY_FOR_A_REAL_USER,\n /* APPLICATION_WORKS: without a composed shell there is no route to the generated screens (#1493). */\n [ApplicationSpecificationFamily.EXPERIENCE_PLAN]: WorkbenchCreationOutcome.APPLICATION_WORKS,\n /*\n * APPLICATION_WORKS: a worker the backend delegates to, and a minion that keeps the data true,\n * are part of the product functioning — not of it facing a stranger (#1495). An application whose\n * nightly sweep was never planned works wrongly in a way no screen shows.\n */\n [ApplicationSpecificationFamily.INTEGRATION_PLAN]: WorkbenchCreationOutcome.APPLICATION_WORKS,\n /*\n * `null`, and this one is the most important null in the map (#1496): the maturity reading is a\n * MEASUREMENT OF the outcomes, so counting it toward one would let an application advance for\n * having measured itself. It is also never \"done\" by construction — the next requirement lowers\n * it — so an outcome that waited for it could never complete.\n */\n [ApplicationSpecificationFamily.APPLICATION_MATURITY]: null,\n [ApplicationSpecificationFamily.DOCUMENT_PUBLICATION]: WorkbenchCreationOutcome.READY_FOR_A_REAL_USER,\n [ApplicationSpecificationFamily.DOCUMENT_RELEASE_SET]: WorkbenchCreationOutcome.READY_FOR_A_REAL_USER,\n [ApplicationSpecificationFamily.CREATOR_INPUTS]: null,\n /*\n * `null` for the same reason as the dossier: the expert-persona charters STAFF the panels that decide\n * placement and the logo; they say nothing about the product itself, so counting them toward an outcome\n * would move \"application works\" for having hired reviewers (#572).\n */\n [ApplicationSpecificationFamily.EXPERT_PERSONAS]: null,\n};\n\nexport interface CreationOutcomeInputs {\n /** The artifact projection's rows, one per family it knows. */\n readonly artifacts: readonly { readonly family: string; readonly state: WorkbenchSpecificationArtifactState }[];\n /** Every family some playbook reports as stale — the union of `staleOutputs[].family` over the playbook rows. */\n readonly staleFamilies: ReadonlySet<string>;\n /** The build-plan task rows. */\n readonly tasks: readonly CreationOutcomeTaskRow[];\n /**\n * The build's progress fault (#3258). The rows say `landed` for a step that only ran, so the count is corrected from here,\n * and while it is present no outcome that waits on the build is done.\n */\n readonly specificationFault?: BuildPlanSpecificationFault;\n /**\n * The application's runtimes a live supervisor has paused or is crash-looping (`readUnavailableApplicationRuntimes`,\n * #3365), or undefined when none could answer (#1537).\n */\n readonly unavailableRuntimes?: readonly string[];\n}\n\n/**\n * Where the application stands, outcome by outcome — always four rows, in reading order. \"Done\" is\n * strict: every family of the outcome landed, valid and not stale; for the application working,\n * every build task landed too; for readiness, every OTHER outcome done as well — an application is\n * not ready for a real user because its documents are published while its build plan is\n * half-landed.\n *\n * A family the projection does not report is not counted against an outcome: the population is the\n * reported rows, filtered through the total map, never the map alone.\n */\nexport function buildCreationOutcomes(input: CreationOutcomeInputs): readonly CreationOutcomeRow[] {\n const isFamily = (value: string): value is ApplicationSpecificationFamily => Object.prototype.hasOwnProperty.call(OUTCOME_BY_FAMILY, value);\n\n const counts = new Map<WorkbenchCreationOutcome, { total: number; landed: number; invalid: number; missing: number; stale: number }>();\n for (const outcome of WORKBENCH_CREATION_OUTCOMES_IN_ORDER) counts.set(outcome, { total: 0, landed: 0, invalid: 0, missing: 0, stale: 0 });\n for (const artifact of input.artifacts) {\n if (!isFamily(artifact.family)) continue;\n const outcome = OUTCOME_BY_FAMILY[artifact.family];\n if (outcome === null) continue;\n const count = counts.get(outcome)!;\n count.total += 1;\n if (artifact.state === WorkbenchSpecificationArtifactState.NOT_LANDED) count.missing += 1;\n else if (artifact.state === WorkbenchSpecificationArtifactState.LANDED_INVALID || artifact.state === WorkbenchSpecificationArtifactState.UNAVAILABLE) count.invalid += 1;\n else if (input.staleFamilies.has(artifact.family)) count.stale += 1;\n else count.landed += 1;\n }\n\n const tasksTotal = input.tasks.length;\n // A step that only ran is not landed for this count (#3258), and under a live fault nothing here is done (below).\n const ranNotProven = new Set(input.specificationFault?.ranNotProvenTaskRefs ?? []);\n const tasksLanded = input.tasks.filter((task) => task.status === WorkbenchBuildPlanTaskStatus.LANDED && !ranNotProven.has(task.taskRef)).length;\n\n const statusOf = (count: { total: number; landed: number; invalid: number; stale: number }, extraDone: boolean, extraStarted: boolean): WorkbenchCreationOutcomeStatus => {\n const familiesDone = count.total > 0 && count.landed === count.total;\n if (familiesDone && extraDone) return WorkbenchCreationOutcomeStatus.DONE;\n const started = count.landed + count.invalid + count.stale > 0 || extraStarted;\n return started ? WorkbenchCreationOutcomeStatus.IN_PROGRESS : WorkbenchCreationOutcomeStatus.NOT_STARTED;\n };\n\n const rows = new Map<WorkbenchCreationOutcome, CreationOutcomeRow>();\n WORKBENCH_CREATION_OUTCOMES_IN_ORDER.forEach((outcome, position) => {\n const count = counts.get(outcome)!;\n const families = {\n familiesTotal: count.total, familiesLanded: count.landed, familiesInvalid: count.invalid, familiesMissing: count.missing, familiesStale: count.stale,\n };\n if (outcome === WorkbenchCreationOutcome.APPLICATION_WORKS) {\n /*\n * An application that cannot start does not work, whatever has landed (#1537). Measured on the\n * first end-to-end run: the backend was paused by its supervisor for hours while this row read\n * as progress. Never DONE while a runtime is down; still IN_PROGRESS, because the work landed so\n * far is real — the row says what it is, and `unavailableRuntimes` says what stops it.\n */\n const unavailableRuntimes = input.unavailableRuntimes === undefined ? null : [...input.unavailableRuntimes];\n const runtimeDown = unavailableRuntimes !== null && unavailableRuntimes.length > 0;\n rows.set(outcome, {\n outcome, position, ...families, tasksTotal, tasksLanded, unavailableRuntimes,\n status: statusOf(count, tasksTotal > 0 && tasksLanded === tasksTotal && !runtimeDown && input.specificationFault === undefined, tasksLanded > 0 || runtimeDown),\n });\n } else if (outcome === WorkbenchCreationOutcome.READY_FOR_A_REAL_USER) {\n const othersDone = WORKBENCH_CREATION_OUTCOMES_IN_ORDER\n .filter((other) => other !== outcome)\n .every((other) => rows.get(other)?.status === WorkbenchCreationOutcomeStatus.DONE);\n rows.set(outcome, { outcome, position, ...families, tasksTotal: null, tasksLanded: null, unavailableRuntimes: null, status: statusOf(count, othersDone, false) });\n } else {\n rows.set(outcome, { outcome, position, ...families, tasksTotal: null, tasksLanded: null, unavailableRuntimes: null, status: statusOf(count, true, false) });\n }\n });\n return WORKBENCH_CREATION_OUTCOMES_IN_ORDER.map((outcome) => rows.get(outcome)!);\n}\n\n/** What the outcomes read of a build-plan task row: its status, and its ref to tell a step that only ran (#3258). */\nexport type CreationOutcomeTaskRow = Pick<Workbench_BuildPlanTask, 'status' | 'taskRef'>;\n"]}
1
+ {"version":3,"file":"creation-home-projection.companion.js","sourceRoot":"","sources":["../../../../../src/core/introspection/resources/creation-home-projection.companion.ts"],"names":[],"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M,EAAE,QAAQ,CAAC,KAAK,EAAE,IAAI,EAAE,KAAK,CAAC,EAAE,CAAC,CAAC;QAC9J,CAAC;IACH,CAAC,CAAC,CAAC;IACH,OAAO,oCAAoC,CAAC,GAAG,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,IAAI,CAAC,GAAG,CAAC,OAAO,CAAE,CAAC,CAAC;AACnF,CAAC","sourcesContent":["import type { BuildPlanSpecificationFault, PlaybookDatedByWaitingInterview } from '@wildo-ai/application-creation-runtime';\nimport { ApplicationSpecificationFamily } from '@wildo-ai/saas-specifications/application-creation';\nimport { FlowsActors_Status, describeModelProviderAccountRefusal } from '@wildo-ai/saas-models';\nimport {\n type BuildTaskClosureKind,\n Workbench_BuildTaskStuckReason,\n WORKBENCH_BUILD_TASK_STUCK_REASONS_WAITING_ON_A_LIVE_RUN,\n Workbench_PlaybookRunState,\n WorkbenchBuildPlanTaskStatus,\n WorkbenchCreationHomeLineKind,\n WorkbenchCreationHomeSection,\n WorkbenchCreationOutcome,\n WorkbenchCreationOutcomeStatus,\n WorkbenchShared_ResourceType,\n WorkbenchSpecificationArtifactState,\n WORKBENCH_CREATION_OUTCOMES_IN_ORDER,\n sanitizeWorkbenchCreationPlaneIdentity,\n type Workbench_BuildDispatch,\n type Workbench_BuildDispatchPlan,\n type Workbench_BuildPlanTask,\n type Workbench_CreationHomeLine,\n type Workbench_CreationOutcome,\n type Workbench_GovernanceDocument,\n type Workbench_ParkedCodingQuestion,\n type Workbench_Playbook,\n type Workbench_PlaybookRun,\n type Workbench_WaitingPlaybookRun,\n} from '@wildo-ai/platform-core-shared';\n\nimport { describeCodingAgentUsageLimitResume, type CodingAgentUsageLimit } from '../../../claude-cli/models/coding-agent-usage-limit.models';\n\n/**\n * HOME, derived (#1454): the lines the conversation page opens on, and where the application\n * stands — pure functions of the creation-plane rows the projection service already computes.\n *\n * ## Why here and not in the page\n *\n * Until 2026-09-22 the workbench read seven resources on their own cadences and derived every one\n * of these facts itself, on every poll, in three modules nothing but the page could reach. A line\n * is a FACT about the application (\"this run was refused\", \"this task's writes wait to be\n * committed\", \"this step can run and its output is missing\"); facts are derived where the rows are,\n * once, and served as rows (`derive-before-you-ask.md`). The page renders; the assistant's tools read\n * the same rows; and a test of the derivation is a test of what every reader sees.\n *\n * Both builders take the ROWS — the projected shapes the resources serve — rather than the companion\n * services' own records, so a fact is decided from exactly what a reader could see, never from a\n * field the projection dropped.\n */\n\n/** The row shape the home-lines projection emits, before the identity is stamped. */\nexport type CreationHomeLineRow = Omit<Workbench_CreationHomeLine, 'workbenchCreationHomeLineId'>;\n/** The row shape the outcomes projection emits, before the identity is stamped. */\nexport type CreationOutcomeRow = Omit<Workbench_CreationOutcome, 'workbenchCreationOutcomeId'>;\n\n/** How many playbook suggestions Home shows beside the plan's next step. */\nexport const HOME_PLAYBOOK_SUGGESTION_COUNT = 3;\n\n/** Newest first; a row with no instant sorts after every row with one. */\nfunction compareNewestFirst(left: Date | null, right: Date | null): number {\n if (left === null && right === null) return 0;\n if (left === null) return 1;\n if (right === null) return -1;\n return right.getTime() - left.getTime();\n}\n\n/**\n * The RANKING of what is asked of the creator: what stops a run that is otherwise executing comes\n * first (a clarification, a parked question); a document waiting on a fact does not block a run and\n * comes after. Within a rank, newest first.\n */\nconst ASKED_RANK: Readonly<Partial<Record<WorkbenchCreationHomeLineKind, number>>> = {\n [WorkbenchCreationHomeLineKind.CLARIFICATION]: 0,\n [WorkbenchCreationHomeLineKind.PARKED_QUESTION]: 0,\n [WorkbenchCreationHomeLineKind.GOVERNANCE_DOCUMENT]: 1,\n /*\n * Below a question (which holds a live agent session) and above a document: the plan is frozen\n * until it is unblocked, and the remedy is a fixed declaration, a re-arm or an approval.\n */\n [WorkbenchCreationHomeLineKind.UNBLOCK_THE_PLAN]: 1,\n /* A question like a clarification: answering it is what lets the work it holds run (#3361). */\n [WorkbenchCreationHomeLineKind.INTERVIEW_DATES_NEXT_WORK]: 0,\n /* Ahead of the steps it holds: fixing the module is what moves them (#3258). */\n [WorkbenchCreationHomeLineKind.SPECIFICATION_FAULT_HOLDS_THE_PLAN]: 0,\n /* Beside a frozen plan: nothing runs on it, and it stays uncommitted until the creator commits or discards it (#3267). */\n [WorkbenchCreationHomeLineKind.RUN_LEFTOVER_UNCOMMITTED]: 1,\n [WorkbenchCreationHomeLineKind.GAP_AWAITS_DECISION]: 1,\n};\n\n/** Whether a stuck task, on a plan that can dispatch nothing, is a thing waiting on the CREATOR (#2412). */\nenum StuckTaskAsk {\n /** It needs the creator: fix a declaration or the work, re-arm a task whose attempts are spent, or a missing blueprint. */\n ASKS = 'asks',\n /** It needs the creator only once no run of the plan is live; while one is, the wave that wrote it has yet to commit. */\n ASKS_ONCE_NOTHING_RUNS = 'asks-once-nothing-runs',\n /** Nobody's move, or already asked on a line of its own. */\n NEVER = 'never',\n}\n\n/**\n * How each stuck reason reads in ASKED. Total over the reasons, so a reason added tomorrow has to be classified here\n * rather than landing in ASKED by default.\n *\n * `app-creation-test-005` printed \"the build plan is stuck at …: in_flight\" three times, and three more lines for a\n * product awaiting its commit (a reason retired with #3514, since landing reads the working tree), in ONE running wave,\n * and the hook counted all six as questions. Neither was the creator's move:\n *\n * - `IN_FLIGHT` — a run of it is live and it clears when that run settles. NEVER.\n * - `PARKED_AWAITING_ANSWER` — its question is already a `PARKED_QUESTION` line, one per question. NEVER, or it is\n * asked twice.\n */\nconst STUCK_REASON_ASK: Readonly<Record<Workbench_BuildTaskStuckReason, StuckTaskAsk>> = {\n [Workbench_BuildTaskStuckReason.COMPLETED_UNLANDED]: StuckTaskAsk.ASKS,\n [Workbench_BuildTaskStuckReason.PARKED_AWAITING_ANSWER]: StuckTaskAsk.NEVER,\n [Workbench_BuildTaskStuckReason.NO_DOCUMENT_BLUEPRINT]: StuckTaskAsk.ASKS,\n [Workbench_BuildTaskStuckReason.ATTEMPTS_EXHAUSTED]: StuckTaskAsk.ASKS,\n [Workbench_BuildTaskStuckReason.IN_FLIGHT]: StuckTaskAsk.NEVER,\n /* #3204: it starts when the run writing its file settles; nobody can do anything about it. */\n [Workbench_BuildTaskStuckReason.CONTENDED]: StuckTaskAsk.NEVER,\n /* #3204: the wave's end re-checks it alone, by itself; nobody can do anything about it. */\n [Workbench_BuildTaskStuckReason.AWAITING_ISOLATED_RECHECK]: StuckTaskAsk.NEVER,\n [Workbench_BuildTaskStuckReason.RAN_THIS_WAVE]: StuckTaskAsk.NEVER,\n /*\n * #3223: a generation step whose landing check could not be answered. Usually it heals by itself (an introspection or a\n * CLI still warming), and Home asks only when nothing else can run — then the check is persistently unanswerable, and the\n * dispatch refusal names the check and the command that shows what the creator has to repair.\n */\n [Workbench_BuildTaskStuckReason.LANDING_UNKNOWN]: StuckTaskAsk.ASKS,\n /* #3227: under GUIDED a derived follow-up waits for the creator's review, which only they can give. */\n [Workbench_BuildTaskStuckReason.FOLLOW_UP_AWAITING_REVIEW]: StuckTaskAsk.ASKS,\n /*\n * Stale expert charters are repaired by the build-dispatch step, which runs the staffing step on its own. Asked only once\n * nothing runs: then the repair did not take, or a person edited a charter, whose remedy is theirs.\n */\n [Workbench_BuildTaskStuckReason.STALE_EXPERT_CHARTERS]: StuckTaskAsk.ASKS_ONCE_NOTHING_RUNS,\n /*\n * #3709: a generation step failing the same way on unchanged inputs. Its cause needs a fix, often outside the\n * application (an engine's examples, an engine label key), and only a person makes it: asked, like an exhausted budget.\n */\n [Workbench_BuildTaskStuckReason.REPEATED_IDENTICAL_FAILURE]: StuckTaskAsk.ASKS,\n /* #3709: a step failing on a cause the framework owns. Only a framework fix and a person's re-run clear it: asked. */\n [Workbench_BuildTaskStuckReason.FAILURE_OUTSIDE_APPLICATION]: StuckTaskAsk.ASKS,\n};\n\nexport interface CreationHomeLineInputs {\n readonly runs: readonly Workbench_PlaybookRun[];\n readonly dispatches: readonly Workbench_BuildDispatch[];\n readonly waiting: readonly Workbench_WaitingPlaybookRun[];\n readonly parked: readonly Workbench_ParkedCodingQuestion[];\n readonly documents: readonly Workbench_GovernanceDocument[];\n readonly dispatchPlan: readonly Workbench_BuildDispatchPlan[];\n readonly playbooks: readonly Workbench_Playbook[];\n /** Every family the artifact projection reports, with its state. */\n readonly artifacts: readonly { readonly family: string; readonly state: WorkbenchSpecificationArtifactState }[];\n /**\n * The coding agent's usage limit holding the build NOW (#2388) — the dispatch service's live hold, which is the\n * pause itself, so the line exists exactly while the build is paused. Absent when nothing holds it.\n */\n readonly codingAgentUsageLimit?: CodingAgentUsageLimit & { readonly taskRef: string };\n /**\n * The network loss holding coding admissions NOW (#3236, #3262) — the dispatch service's live connectivity hold, so the\n * line exists exactly while no coding turn is admitted. `route` is the probe's route in words, absent when none is known.\n */\n readonly codingAgentConnectivityHold?: { readonly observedAt: string; readonly taskRef: string; readonly route?: string };\n /**\n * The host cause holding coding admissions NOW (#3423, #3432): the dispatch service's live hold, so the line exists\n * exactly while no coding turn is admitted for it. `cause` is the cause and its remedy in one sentence\n * (`describeVerificationHostCause`): an absent command, a command lacking the verb, or a check that cannot be asked the\n * same way on two tasks.\n */\n readonly verificationToolUnavailableHold?: { readonly observedAt: string; readonly taskRef: string; readonly cause: string };\n /** The instant the resume time is worded against (its date shows when it is not today); the read's own when omitted. */\n readonly now?: Date;\n /**\n * The build tasks a person CLOSED (`wildo build close`, #3224, #3227) whose closure counts now: one SINCE line each, so\n * the feed and Home say that a person, not a probe, settled them. The line carries the person's own words only; how the\n * closure accounts for the task (its kind, what satisfied it) is on the task's record, worded from the vocabulary.\n */\n readonly closures?: readonly { readonly taskRef: string; readonly kind: BuildTaskClosureKind; readonly satisfiedBy?: string; readonly reason: string; readonly closedAt: string }[];\n /**\n * The derived follow-ups that landed while their latest completed run still reports a requirement unmet (#2583): one\n * ADVISORY suggestion each. A projection of the follow-up's landing and that run's report, never a stored state.\n */\n readonly followUpsLandedWithGaps?: readonly { readonly taskRef: string; readonly unmetRequirements: readonly { readonly requirementRef: string; readonly missing: string }[] }[];\n /**\n * Files a task's coding runs left uncommitted that no automatic door will commit (#3267; a stuck task's declared product aside, #3204), from the commit door's own\n * reading of the write register and the tree (`listUncommittedRunLeftovers`): one ASKED line per task.\n */\n readonly uncommittedLeftovers?: readonly { readonly taskRef: string; readonly path: string; readonly runTaskIds: readonly string[] }[];\n /**\n * The reported gaps only a person's decision can close (#3886: a report's `needsDecision`), from the follow-up derivation:\n * one ASKED line per reporting task, naming each requirement and its decision. Derived from the latest runs, never stored.\n */\n readonly gapsAwaitingDecision?: readonly { readonly taskRef: string; readonly requirementRef: string; readonly decision: string }[];\n /**\n * The LANDED tasks carrying a landing advisory (#3285, `readLandedTasksWithAdvisories`): one ADVISORY suggestion each,\n * naming each setting still to set and its file. Derived from the committed tree, never stored.\n */\n readonly landedTasksWithAdvisories?: readonly { readonly taskRef: string; readonly advisories: readonly { readonly setting: string; readonly settingPath: string }[] }[];\n /**\n * The steps an unattended round withholds because an interview still waiting on the person would date them (#3361), from\n * the eligibility board (`findReadersDatedByWaitingInterviews`): one ASKED line per waiting interview.\n */\n readonly datedByWaitingInterviews?: readonly PlaybookDatedByWaitingInterview[];\n}\n\n/** One leftover in a Home line's subject: the file, and the runs whose record holds it as it is now (#3267). */\nfunction describeLeftoverForHome(leftover: { readonly path: string; readonly runTaskIds: readonly string[] }): string {\n return `${leftover.path} (recorded by ${leftover.runTaskIds.length === 1 ? 'run' : 'runs'} ${leftover.runTaskIds.join(', ')})`;\n}\n\n\n/**\n * When a build dispatch ENDED, and whether it failed — or `null` while it has not (#2523).\n *\n * Read from the dispatch's RUN — the execution it is — for both executors. Home used to read the phase, which\n * is a generation step's outcome but only a coding run's hand-off (it stops at ADMITTED by design), so no\n * coding run ever appeared as settled. A dispatch refused before its run started ends its execution too\n * (ABORTED or FAILED), so it is read the same way.\n */\nexport function dispatchEnding(dispatch: Workbench_BuildDispatch): { readonly at: Date | null; readonly failed: boolean } | null {\n if (!RUN_HAS_ENDED[dispatch.runStatus]) return null;\n return { at: dispatch.runFinishedAt ?? dispatch.settledAt ?? null, failed: dispatch.runStatus !== FlowsActors_Status.COMPLETED };\n}\n\n/**\n * Which execution statuses END a run. Total over the vocabulary, so a status added to it is a compile error\n * here rather than a run Home silently never lists. A run waiting on an answer has not ended: it parks and\n * resumes under the same execution.\n */\nconst RUN_HAS_ENDED: Record<FlowsActors_Status, boolean> = {\n [FlowsActors_Status.READY]: false,\n [FlowsActors_Status.PENDING]: false,\n [FlowsActors_Status.PROCESSING]: false,\n [FlowsActors_Status.AWAITING_APPROVAL]: false,\n [FlowsActors_Status.COMPLETED]: true,\n [FlowsActors_Status.FAILED]: true,\n [FlowsActors_Status.CANCELLED]: true,\n [FlowsActors_Status.ABORTED]: true,\n};\n\n/**\n * The re-runs inside a run's lanes that did not land while their family's earlier landing stands (#3213), latest failure\n * per playbook, in the order they first appear. A landing STANDS — the runtime's own rule (`landingStands` in the\n * choreography) — when the child re-ran over a landing the record held (`reranOverLanding`: a REFRESH, or a CURRENT\n * landing re-opened), or when an earlier round of this run landed it. A FIRST run that failed left nothing to stand and\n * is never one: `ranBecause` cannot tell them apart, since it is written for a first run too.\n */\nfunction failedRepairsOf(run: Workbench_PlaybookRun): ReadonlyArray<{ readonly playbookRef: string; readonly failure: string }> {\n const latest = new Map<string, string>();\n const landedInThisRun = new Set<string>();\n for (const round of run.choreographyRounds ?? []) {\n for (const child of round.children) {\n if (child.failure === null) {\n // A run of the playbook that landed: it delivered (so a later failure stands on it), and it repaired any earlier one.\n if (child.landed.length > 0) landedInThisRun.add(child.playbookRef);\n latest.delete(child.playbookRef);\n } else if (child.reranOverLanding === true || landedInThisRun.has(child.playbookRef)) {\n latest.set(child.playbookRef, child.failure);\n }\n }\n }\n return [...latest].map(([playbookRef, failure]) => ({ playbookRef, failure }));\n}\n\n/**\n * Every line of Home, all three sections. SINCE lines are NOT windowed here: \"since the creator was\n * last here\" is a per-viewer fact the page keeps in its own browser, so the page cuts the list; the\n * projection serves every settled run and dispatch it knows, newest first, and every interrupted\n * run whatever its date.\n */\nexport function buildCreationHomeLines(input: CreationHomeLineInputs): readonly CreationHomeLineRow[] {\n const line = (\n section: WorkbenchCreationHomeSection,\n kind: WorkbenchCreationHomeLineKind,\n target: { resourceType: WorkbenchShared_ResourceType; resourceId: string },\n facts: Partial<Pick<CreationHomeLineRow, 'at' | 'playbookRef' | 'taskRef' | 'subject' | 'failed' | 'acceptable' | 'needsAnswers' | 'stuckReason'>> = {},\n ): CreationHomeLineRow => ({\n section,\n kind,\n at: null,\n playbookRef: null,\n taskRef: null,\n subject: null,\n failed: false,\n acceptable: false,\n needsAnswers: false,\n stuckReason: null,\n targetResourceType: target.resourceType,\n targetResourceId: target.resourceId,\n ...facts,\n });\n\n /* SINCE — what happened. */\n const since: CreationHomeLineRow[] = [];\n for (const run of input.runs) {\n const target = { resourceType: WorkbenchShared_ResourceType.PLAYBOOK_RUNS, resourceId: run.workbenchPlaybookRunId };\n if (run.state === Workbench_PlaybookRunState.COMPLETED) {\n since.push(line(WorkbenchCreationHomeSection.SINCE, WorkbenchCreationHomeLineKind.RUN_COMPLETED, target, {\n at: run.finishedAt ?? null, playbookRef: run.playbookRef, failed: run.ok === false,\n }));\n /*\n * A RE-RUN inside the run's lanes that did not land, over a landing that stands (#3213): a NON-FATAL repair failure.\n * A failed repair of `build-decompose` used to read only as the lane's REFUSED line, so a person read the whole\n * build as failed while the plan on disk still dispatched. Said once per run, naming every such re-run: a child that\n * re-ran over a recorded landing (`reranOverLanding`, read from the rerun verdict's KIND) or over one this run landed,\n * and failed, kept that landing.\n */\n const failedRepairs = failedRepairsOf(run);\n if (failedRepairs.length > 0) {\n since.push(line(WorkbenchCreationHomeSection.SINCE, WorkbenchCreationHomeLineKind.REPAIR_FAILED_LANDING_STANDS, target, {\n at: run.finishedAt ?? null,\n playbookRef: failedRepairs[0]!.playbookRef,\n subject: failedRepairs.map((repair) => `${repair.playbookRef}: ${repair.failure}`).join('; '),\n failed: false,\n }));\n }\n } else if (run.state === Workbench_PlaybookRunState.INTERRUPTED) {\n since.push(line(WorkbenchCreationHomeSection.SINCE, WorkbenchCreationHomeLineKind.RUN_INTERRUPTED, target, {\n at: run.checkpointedAt ?? run.startedAt ?? null, playbookRef: run.playbookRef,\n }));\n }\n }\n for (const dispatch of input.dispatches) {\n const ending = dispatchEnding(dispatch);\n if (ending === null) continue;\n since.push(line(WorkbenchCreationHomeSection.SINCE, WorkbenchCreationHomeLineKind.DISPATCH_SETTLED,\n { resourceType: WorkbenchShared_ResourceType.BUILD_DISPATCHES, resourceId: dispatch.workbenchBuildDispatchId }, {\n at: ending.at,\n taskRef: dispatch.taskRef,\n failed: ending.failed,\n /*\n * The one state ACCEPT addresses: a coding run that completed, recorded writes and has none committed.\n * The row's `accepted === false` means exactly that, so it is read as is (#2523).\n */\n acceptable: dispatch.accepted === false,\n }));\n }\n /*\n * The coding agent's account usage limit, while it holds (#2388): one line saying the build is paused and when\n * it resumes. Read from the LIVE hold the dispatch service keeps, never re-derived from a dispatch row: a\n * coding run that started is projected ADMITTED however it ends and carries no error there, so a row-based\n * reading never fired in production (#2388 review F1). It opens the build-plan task whose run met the limit,\n * a row that exists for as long as the plan holds the task. `failed` stays false: the build is paused, not\n * failing, and the kind's own tone says so.\n */\n const limit = input.codingAgentUsageLimit;\n if (limit) {\n // A refused provider ACCOUNT (#3204) is its own kind: a person lifts it, nothing resets, so it never reads as a limit\n // that \"resumes on its own\". Its subject is the refusal's sentence: who refused, and where to fix it.\n since.push(line(WorkbenchCreationHomeSection.SINCE, limit.accountRefusal\n ? WorkbenchCreationHomeLineKind.CODING_AGENT_ACCOUNT_REFUSED\n : WorkbenchCreationHomeLineKind.CODING_AGENT_USAGE_LIMITED,\n { resourceType: WorkbenchShared_ResourceType.BUILD_PLAN_TASKS, resourceId: sanitizeWorkbenchCreationPlaneIdentity(limit.taskRef) }, {\n at: new Date(limit.observedAt),\n taskRef: limit.taskRef,\n subject: limit.accountRefusal\n ? describeModelProviderAccountRefusal(limit.accountRefusal)\n : describeCodingAgentUsageLimitResume(limit, input.now ?? new Date()),\n }));\n }\n /*\n * The coding agent lost the network (#3236, #3262): one line while the connectivity hold lasts, read from the LIVE\n * hold for the same reason as the usage limit's. Before it, a wave waiting up to twenty minutes on a probe looked\n * stalled, and the hold was a WARN in the companion's log. `failed` stays false: the build is waiting, not failing.\n */\n const connectivity = input.codingAgentConnectivityHold;\n if (connectivity) {\n since.push(line(WorkbenchCreationHomeSection.SINCE, WorkbenchCreationHomeLineKind.CODING_AGENT_CONNECTIVITY_LOST,\n { resourceType: WorkbenchShared_ResourceType.BUILD_PLAN_TASKS, resourceId: sanitizeWorkbenchCreationPlaneIdentity(connectivity.taskRef) }, {\n at: Number.isNaN(Date.parse(connectivity.observedAt)) ? null : new Date(connectivity.observedAt),\n taskRef: connectivity.taskRef,\n subject: connectivity.route ?? null,\n }));\n }\n /*\n * A verification check cannot be asked for a host cause (#3423, #3432): one line while the hold lasts, read from the LIVE\n * hold like the two above, its subject the cause and remedy. `failed` stays false: nothing the creation built is lost.\n */\n const toolHold = input.verificationToolUnavailableHold;\n if (toolHold) {\n since.push(line(WorkbenchCreationHomeSection.SINCE, WorkbenchCreationHomeLineKind.VERIFICATION_TOOL_UNAVAILABLE,\n { resourceType: WorkbenchShared_ResourceType.BUILD_PLAN_TASKS, resourceId: sanitizeWorkbenchCreationPlaneIdentity(toolHold.taskRef) }, {\n at: Number.isNaN(Date.parse(toolHold.observedAt)) ? null : new Date(toolHold.observedAt),\n taskRef: toolHold.taskRef,\n subject: toolHold.cause,\n }));\n }\n /* A person closed a build task (#3224, #3227): `subject` is their reason, in their words; the kind is on the task's record. */\n for (const closure of input.closures ?? []) {\n since.push(line(WorkbenchCreationHomeSection.SINCE, WorkbenchCreationHomeLineKind.BUILD_TASK_CLOSED,\n { resourceType: WorkbenchShared_ResourceType.BUILD_PLAN_TASKS, resourceId: sanitizeWorkbenchCreationPlaneIdentity(closure.taskRef) }, {\n at: Number.isNaN(Date.parse(closure.closedAt)) ? null : new Date(closure.closedAt),\n taskRef: closure.taskRef,\n subject: closure.reason,\n }));\n }\n since.sort((left, right) => compareNewestFirst(left.at, right.at));\n\n /* ASKED — what blocks something NOW and waits on the creator. */\n const asked: CreationHomeLineRow[] = [];\n for (const waiting of input.waiting) {\n /* An unreadable checkpoint is a condition to show on its own row, not a question anyone can answer. */\n if (!waiting.readable) continue;\n asked.push(line(WorkbenchCreationHomeSection.ASKED, WorkbenchCreationHomeLineKind.CLARIFICATION,\n { resourceType: WorkbenchShared_ResourceType.WAITING_PLAYBOOK_RUNS, resourceId: waiting.workbenchWaitingPlaybookRunId },\n { at: waiting.suspendedAt ?? null, playbookRef: waiting.playbookRef ?? null }));\n }\n /*\n * An interview waiting on the creator whose answer would date work the next unattended round could run (#3361). The\n * round withholds that work, so the line is what moves it: answering lets it run once, on the answer. One line per\n * interview, naming the steps it holds; it opens the interview's playbook, whose way in is the interview.\n */\n const heldByInterview = new Map<string, string[]>();\n for (const dated of input.datedByWaitingInterviews ?? []) {\n for (const waiting of dated.waitingOn) heldByInterview.set(waiting.interviewRef, [...(heldByInterview.get(waiting.interviewRef) ?? []), dated.readerRef]);\n }\n for (const [interviewRef, readerRefs] of heldByInterview) {\n asked.push(line(WorkbenchCreationHomeSection.ASKED, WorkbenchCreationHomeLineKind.INTERVIEW_DATES_NEXT_WORK,\n { resourceType: WorkbenchShared_ResourceType.PLAYBOOKS, resourceId: sanitizeWorkbenchCreationPlaneIdentity(interviewRef) },\n { playbookRef: interviewRef, subject: [...new Set(readerRefs)].sort().join(', '), needsAnswers: true }));\n }\n for (const parked of input.parked) {\n asked.push(line(WorkbenchCreationHomeSection.ASKED, WorkbenchCreationHomeLineKind.PARKED_QUESTION,\n { resourceType: WorkbenchShared_ResourceType.PARKED_CODING_QUESTIONS, resourceId: parked.workbenchParkedCodingQuestionId },\n { at: parked.parkedAt ?? null, taskRef: parked.taskRef }));\n }\n /*\n * Files a build task's runs left uncommitted that nothing will commit on its own (#3267): one line per task, naming\n * each file and its runs. It never stays silently uncommitted; the CLI prints the two doors.\n */\n const leftoversByTask = new Map<string, Array<{ readonly path: string; readonly runTaskIds: readonly string[] }>>();\n for (const leftover of input.uncommittedLeftovers ?? []) leftoversByTask.set(leftover.taskRef, [...(leftoversByTask.get(leftover.taskRef) ?? []), leftover]);\n for (const [taskRef, leftovers] of leftoversByTask) {\n asked.push(line(WorkbenchCreationHomeSection.ASKED, WorkbenchCreationHomeLineKind.RUN_LEFTOVER_UNCOMMITTED,\n { resourceType: WorkbenchShared_ResourceType.BUILD_PLAN_TASKS, resourceId: sanitizeWorkbenchCreationPlaneIdentity(taskRef) },\n { taskRef, subject: leftovers.map(describeLeftoverForHome).join('; ') }));\n }\n /*\n * A gap only the person can close (#3886): the report said a decision is needed first, so no coding task was derived.\n * One line per reporting task, naming each requirement and its decision.\n */\n const decisionsByTask = new Map<string, string[]>();\n for (const gap of input.gapsAwaitingDecision ?? []) decisionsByTask.set(gap.taskRef, [...(decisionsByTask.get(gap.taskRef) ?? []), `${gap.requirementRef}: ${gap.decision}`]);\n for (const [taskRef, decisions] of decisionsByTask) {\n asked.push(line(WorkbenchCreationHomeSection.ASKED, WorkbenchCreationHomeLineKind.GAP_AWAITS_DECISION,\n { resourceType: WorkbenchShared_ResourceType.BUILD_PLAN_TASKS, resourceId: sanitizeWorkbenchCreationPlaneIdentity(taskRef) },\n { taskRef, subject: decisions.join('; ') }));\n }\n for (const document of input.documents) {\n /*\n * Only a document the creator ASKED FOR (a draft exists) and that still needs a fact (#1454,\n * Step 6). A permanent count of every open fact of every undrafted document would train the eye\n * to skip the number.\n */\n if (!document.drafted || document.openCount === 0) continue;\n asked.push(line(WorkbenchCreationHomeSection.ASKED, WorkbenchCreationHomeLineKind.GOVERNANCE_DOCUMENT,\n { resourceType: WorkbenchShared_ResourceType.GOVERNANCE_DOCUMENTS, resourceId: document.workbenchGovernanceDocumentId },\n { subject: document.definitionRef }));\n }\n /*\n * The plan itself, when it can run NOTHING (#1451). The dispatch-plan row carries one entry per\n * ready task dispatch passed over, and a row with no `taskRef` that is not `exhausted` means every\n * one of them is stuck — so this is the state where the plan needs the creator rather than a\n * dispatch. One line per stuck task: each carries its own remedy.\n *\n * Beside a next task the row still lists what the selection skipped, and those are NOT shown here:\n * the plan is moving, and a line asking for something that is not blocking anything is how an\n * ASKED list stops being read.\n */\n for (const row of input.dispatchPlan) {\n // A repair owed is a run still to make, so nothing is asked of a person yet (#3258).\n if (row.taskRef !== null || row.exhausted || row.specificationRepairOwed === true) continue;\n const failingModules = row.failingSpecificationModules ?? [];\n if (failingModules.length > 0) {\n asked.push(line(WorkbenchCreationHomeSection.ASKED, WorkbenchCreationHomeLineKind.SPECIFICATION_FAULT_HOLDS_THE_PLAN,\n { resourceType: WorkbenchShared_ResourceType.BUILD_DISPATCH_PLAN, resourceId: row.workbenchBuildDispatchPlanId },\n { subject: failingModules.join(', ') }));\n }\n const stuckTasks = row.stuckTasks ?? [];\n // A task waiting on a live run, its own or one writing its file, proves a run is live (#3204).\n const aRunIsLive = stuckTasks.some((stuck) => WORKBENCH_BUILD_TASK_STUCK_REASONS_WAITING_ON_A_LIVE_RUN.has(stuck.reason));\n for (const stuck of stuckTasks) {\n const ask = STUCK_REASON_ASK[stuck.reason];\n if (ask === StuckTaskAsk.NEVER || (ask === StuckTaskAsk.ASKS_ONCE_NOTHING_RUNS && aRunIsLive)) continue;\n asked.push(line(WorkbenchCreationHomeSection.ASKED, WorkbenchCreationHomeLineKind.UNBLOCK_THE_PLAN,\n { resourceType: WorkbenchShared_ResourceType.BUILD_DISPATCH_PLAN, resourceId: row.workbenchBuildDispatchPlanId },\n { taskRef: stuck.taskRef, stuckReason: stuck.reason }));\n }\n }\n asked.sort((left, right) => {\n const rank = (ASKED_RANK[left.kind] ?? 9) - (ASKED_RANK[right.kind] ?? 9);\n return rank !== 0 ? rank : compareNewestFirst(left.at, right.at);\n });\n\n /*\n * SUGGESTION — what the creator could do next, outcome-first: the plan's next READY task, then\n * eligible playbooks producing a MISSING family before those refreshing a STALE one (a gap is\n * worth more than a refresh), capped.\n */\n const suggestions: CreationHomeLineRow[] = [];\n const next = input.dispatchPlan.find((row) => row.taskRef !== null && row.objective !== null);\n if (next && next.taskRef && next.objective) {\n suggestions.push(line(WorkbenchCreationHomeSection.SUGGESTION, WorkbenchCreationHomeLineKind.CONTINUE_THE_PLAN,\n { resourceType: WorkbenchShared_ResourceType.BUILD_DISPATCH_PLAN, resourceId: next.workbenchBuildDispatchPlanId },\n { taskRef: next.taskRef, subject: next.objective }));\n }\n const missingFamilies = new Set(\n input.artifacts.filter((artifact) => artifact.state === WorkbenchSpecificationArtifactState.NOT_LANDED).map((artifact) => artifact.family),\n );\n const producing: CreationHomeLineRow[] = [];\n const refreshing: CreationHomeLineRow[] = [];\n for (const playbook of input.playbooks) {\n if (!playbook.eligible) continue;\n const target = { resourceType: WorkbenchShared_ResourceType.PLAYBOOKS, resourceId: playbook.workbenchPlaybookId };\n const facts = { playbookRef: playbook.playbookRef, needsAnswers: playbook.unansweredQuestionRefs.length > 0 };\n if (playbook.outputOwners.some((owner) => missingFamilies.has(owner.family))) {\n producing.push(line(WorkbenchCreationHomeSection.SUGGESTION, WorkbenchCreationHomeLineKind.PRODUCE_MISSING, target, facts));\n } else if (playbook.staleOutputs.length > 0) {\n refreshing.push(line(WorkbenchCreationHomeSection.SUGGESTION, WorkbenchCreationHomeLineKind.REFRESH_STALE, target, facts));\n }\n }\n const playbookSuggestions = [...producing, ...refreshing].slice(0, HOME_PLAYBOOK_SUGGESTION_COUNT);\n\n /*\n * A follow-up that LANDED while its latest completed run still reports a requirement unmet (#2583). It landed\n * RAN-not-PROVEN, because holding it unlanded put the whole plan behind a person's decision, the defect\n * `application-creation-directive.md` names. So this is ADVISORY, a SUGGESTION: it never makes anything ineligible and\n * never stops the loop. It names each requirement and what the run said is missing; the door is running it again on\n * purpose, which every renderer prints beside it (`wildo build run <ref> --despite-landed --reason operator-judgement\n * --note \"<why>\"`). Without it the gap was visible only to someone who asked (`wildo context journey`).\n */\n const followUpGaps = (input.followUpsLandedWithGaps ?? []).filter((followUp) => followUp.unmetRequirements.length > 0).map((followUp) => line(\n WorkbenchCreationHomeSection.SUGGESTION, WorkbenchCreationHomeLineKind.FOLLOW_UP_LANDED_WITH_GAP,\n { resourceType: WorkbenchShared_ResourceType.BUILD_PLAN_TASKS, resourceId: sanitizeWorkbenchCreationPlaneIdentity(followUp.taskRef) },\n { taskRef: followUp.taskRef, subject: followUp.unmetRequirements.map((gap) => `${gap.requirementRef}: ${gap.missing}`).join('; ') },\n ));\n\n /*\n * A task that LANDED with something its landing does not cover left unfinished (#3285): a billing catalogue committed\n * while the backend does not enable billing. ADVISORY, like a follow-up's gap: the task stays landed and nothing stops,\n * because the remedy (a provider secret) is the person's and the switch alone fails backend startup. Without it the\n * mark was visible only on `wildo build tasks` and `wildo creation why`.\n */\n const landingAdvisories = (input.landedTasksWithAdvisories ?? []).filter((task) => task.advisories.length > 0).map((task) => line(\n WorkbenchCreationHomeSection.SUGGESTION, WorkbenchCreationHomeLineKind.LANDED_WITH_ADVISORY,\n { resourceType: WorkbenchShared_ResourceType.BUILD_PLAN_TASKS, resourceId: sanitizeWorkbenchCreationPlaneIdentity(task.taskRef) },\n { taskRef: task.taskRef, subject: task.advisories.map((advisory) => `${advisory.setting} (${advisory.settingPath})`).join('; ') },\n ));\n\n return [...since, ...asked, ...suggestions, ...followUpGaps, ...landingAdvisories, ...playbookSuggestions];\n}\n\n/**\n * Every specification family belongs to exactly ONE outcome, and the map is TOTAL by construction:\n * `Record<ApplicationSpecificationFamily, …>` makes a family added to the semantic authority a\n * compile error here until it is placed. That is the property the page's mock promised — \"derived\n * from what exists\" — and the reason this is a typed record rather than a lookup with a default.\n *\n * `RISK_REGISTER` is under the rules rather than under what-we-build: it says what the exposure\n * MEANS, which is an obligation, and its playbook is in the compliance analysis.\n *\n * `null` is a placement too, and the map stays total: `CREATOR_INPUTS` — the dossier — is INPUT the\n * creator gives, never a deliverable a step produces, so counting it toward an outcome would make\n * \"know what we build\" one answer closer to done for having been asked a question. A family placed\n * `null` is measured by nothing; the compiler still refuses a family placed nowhere.\n */\nexport const OUTCOME_BY_FAMILY: Readonly<Record<ApplicationSpecificationFamily, WorkbenchCreationOutcome | null>> = {\n [ApplicationSpecificationFamily.VISION_BRIEF]: WorkbenchCreationOutcome.KNOW_WHAT_WE_BUILD,\n [ApplicationSpecificationFamily.MARKET_SNAPSHOT]: WorkbenchCreationOutcome.KNOW_WHAT_WE_BUILD,\n [ApplicationSpecificationFamily.REQUIREMENTS]: WorkbenchCreationOutcome.KNOW_WHAT_WE_BUILD,\n [ApplicationSpecificationFamily.FEATURE_DRAFTS]: WorkbenchCreationOutcome.KNOW_WHAT_WE_BUILD,\n [ApplicationSpecificationFamily.BUSINESS_MODEL]: WorkbenchCreationOutcome.KNOW_WHAT_WE_BUILD,\n [ApplicationSpecificationFamily.ROADMAP]: WorkbenchCreationOutcome.KNOW_WHAT_WE_BUILD,\n [ApplicationSpecificationFamily.BRAND_BRIEF]: WorkbenchCreationOutcome.KNOW_WHAT_WE_BUILD,\n /* KNOW_WHAT_WE_BUILD with the brand it names: the name is part of what the product IS. */\n [ApplicationSpecificationFamily.BRAND_NAME_SCREENING]: WorkbenchCreationOutcome.KNOW_WHAT_WE_BUILD,\n /* KNOW_WHAT_WE_BUILD: the firm's method is what the product is FOR, decided before the plans built from it. */\n [ApplicationSpecificationFamily.SERVICE_METHOD]: WorkbenchCreationOutcome.KNOW_WHAT_WE_BUILD,\n /* KNOW_THE_RULES: which regimes apply is the first thing the rules are (#3362). */\n [ApplicationSpecificationFamily.COMPLIANCE_POSTURE]: WorkbenchCreationOutcome.KNOW_THE_RULES,\n [ApplicationSpecificationFamily.COMPLIANCE_PROGRAM]: WorkbenchCreationOutcome.KNOW_THE_RULES,\n [ApplicationSpecificationFamily.COMPLIANCE_DOCUMENT_CANDIDATE]: WorkbenchCreationOutcome.KNOW_THE_RULES,\n [ApplicationSpecificationFamily.COMPLIANCE_DOCUMENT_CANDIDATE_SET]: WorkbenchCreationOutcome.KNOW_THE_RULES,\n [ApplicationSpecificationFamily.DOCUMENT_RELEASE_POLICY]: WorkbenchCreationOutcome.KNOW_THE_RULES,\n [ApplicationSpecificationFamily.DOCUMENT_FACTS]: WorkbenchCreationOutcome.KNOW_THE_RULES,\n [ApplicationSpecificationFamily.DOCUMENT_FACTS_AUTHORED]: WorkbenchCreationOutcome.KNOW_THE_RULES,\n [ApplicationSpecificationFamily.PROCESSOR_REGISTER]: WorkbenchCreationOutcome.KNOW_THE_RULES,\n [ApplicationSpecificationFamily.RISK_REGISTER]: WorkbenchCreationOutcome.KNOW_THE_RULES,\n [ApplicationSpecificationFamily.DOMAIN_PLAN]: WorkbenchCreationOutcome.APPLICATION_WORKS,\n [ApplicationSpecificationFamily.PLACEMENT_PLAN]: WorkbenchCreationOutcome.APPLICATION_WORKS,\n [ApplicationSpecificationFamily.BUILD_PLAN]: WorkbenchCreationOutcome.APPLICATION_WORKS,\n // Which optional packages the application is composed with — part of the application working, like its placement (#1491).\n [ApplicationSpecificationFamily.CAPABILITY_COMPOSITION]: WorkbenchCreationOutcome.APPLICATION_WORKS,\n /*\n * READY_FOR_A_REAL_USER, not APPLICATION_WORKS: an application works without a marketing site, and\n * what the site says is what a stranger meets first (#1492). The same reading the governed\n * documents carry — the outcome is about facing the public, not about the product functioning.\n */\n [ApplicationSpecificationFamily.WEBSITE_PLAN]: WorkbenchCreationOutcome.READY_FOR_A_REAL_USER,\n /* Same reading as the website: documentation is what a stranger meets, not what makes the product work. */\n [ApplicationSpecificationFamily.DOCUMENTATION_PLAN]: WorkbenchCreationOutcome.READY_FOR_A_REAL_USER,\n /* APPLICATION_WORKS: without a composed shell there is no route to the generated screens (#1493). */\n [ApplicationSpecificationFamily.EXPERIENCE_PLAN]: WorkbenchCreationOutcome.APPLICATION_WORKS,\n /*\n * APPLICATION_WORKS: a worker the backend delegates to, and a minion that keeps the data true,\n * are part of the product functioning — not of it facing a stranger (#1495). An application whose\n * nightly sweep was never planned works wrongly in a way no screen shows.\n */\n [ApplicationSpecificationFamily.INTEGRATION_PLAN]: WorkbenchCreationOutcome.APPLICATION_WORKS,\n /*\n * `null`, and this one is the most important null in the map (#1496): the maturity reading is a\n * MEASUREMENT OF the outcomes, so counting it toward one would let an application advance for\n * having measured itself. It is also never \"done\" by construction — the next requirement lowers\n * it — so an outcome that waited for it could never complete.\n */\n [ApplicationSpecificationFamily.APPLICATION_MATURITY]: null,\n [ApplicationSpecificationFamily.DOCUMENT_PUBLICATION]: WorkbenchCreationOutcome.READY_FOR_A_REAL_USER,\n [ApplicationSpecificationFamily.DOCUMENT_RELEASE_SET]: WorkbenchCreationOutcome.READY_FOR_A_REAL_USER,\n [ApplicationSpecificationFamily.CREATOR_INPUTS]: null,\n /*\n * `null` for the same reason as the dossier: the expert-persona charters STAFF the panels that decide\n * placement and the logo; they say nothing about the product itself, so counting them toward an outcome\n * would move \"application works\" for having hired reviewers (#572).\n */\n [ApplicationSpecificationFamily.EXPERT_PERSONAS]: null,\n};\n\nexport interface CreationOutcomeInputs {\n /** The artifact projection's rows, one per family it knows. */\n readonly artifacts: readonly { readonly family: string; readonly state: WorkbenchSpecificationArtifactState }[];\n /** Every family some playbook reports as stale — the union of `staleOutputs[].family` over the playbook rows. */\n readonly staleFamilies: ReadonlySet<string>;\n /** The build-plan task rows. */\n readonly tasks: readonly CreationOutcomeTaskRow[];\n /**\n * The build's progress fault (#3258). The rows say `landed` for a step that only ran, so the count is corrected from here,\n * and while it is present no outcome that waits on the build is done.\n */\n readonly specificationFault?: BuildPlanSpecificationFault;\n /**\n * The application's runtimes a live supervisor has paused or is crash-looping (`readUnavailableApplicationRuntimes`,\n * #3365), or undefined when none could answer (#1537).\n */\n readonly unavailableRuntimes?: readonly string[];\n}\n\n/**\n * Where the application stands, outcome by outcome — always four rows, in reading order. \"Done\" is\n * strict: every family of the outcome landed, valid and not stale; for the application working,\n * every build task landed too; for readiness, every OTHER outcome done as well — an application is\n * not ready for a real user because its documents are published while its build plan is\n * half-landed.\n *\n * A family the projection does not report is not counted against an outcome: the population is the\n * reported rows, filtered through the total map, never the map alone.\n */\nexport function buildCreationOutcomes(input: CreationOutcomeInputs): readonly CreationOutcomeRow[] {\n const isFamily = (value: string): value is ApplicationSpecificationFamily => Object.prototype.hasOwnProperty.call(OUTCOME_BY_FAMILY, value);\n\n const counts = new Map<WorkbenchCreationOutcome, { total: number; landed: number; invalid: number; missing: number; stale: number }>();\n for (const outcome of WORKBENCH_CREATION_OUTCOMES_IN_ORDER) counts.set(outcome, { total: 0, landed: 0, invalid: 0, missing: 0, stale: 0 });\n for (const artifact of input.artifacts) {\n if (!isFamily(artifact.family)) continue;\n const outcome = OUTCOME_BY_FAMILY[artifact.family];\n if (outcome === null) continue;\n const count = counts.get(outcome)!;\n count.total += 1;\n if (artifact.state === WorkbenchSpecificationArtifactState.NOT_LANDED) count.missing += 1;\n else if (artifact.state === WorkbenchSpecificationArtifactState.LANDED_INVALID || artifact.state === WorkbenchSpecificationArtifactState.UNAVAILABLE) count.invalid += 1;\n else if (input.staleFamilies.has(artifact.family)) count.stale += 1;\n else count.landed += 1;\n }\n\n const tasksTotal = input.tasks.length;\n // A step that only ran is not landed for this count (#3258), and under a live fault nothing here is done (below).\n const ranNotProven = new Set(input.specificationFault?.ranNotProvenTaskRefs ?? []);\n const tasksLanded = input.tasks.filter((task) => task.status === WorkbenchBuildPlanTaskStatus.LANDED && !ranNotProven.has(task.taskRef)).length;\n\n const statusOf = (count: { total: number; landed: number; invalid: number; stale: number }, extraDone: boolean, extraStarted: boolean): WorkbenchCreationOutcomeStatus => {\n const familiesDone = count.total > 0 && count.landed === count.total;\n if (familiesDone && extraDone) return WorkbenchCreationOutcomeStatus.DONE;\n const started = count.landed + count.invalid + count.stale > 0 || extraStarted;\n return started ? WorkbenchCreationOutcomeStatus.IN_PROGRESS : WorkbenchCreationOutcomeStatus.NOT_STARTED;\n };\n\n const rows = new Map<WorkbenchCreationOutcome, CreationOutcomeRow>();\n WORKBENCH_CREATION_OUTCOMES_IN_ORDER.forEach((outcome, position) => {\n const count = counts.get(outcome)!;\n const families = {\n familiesTotal: count.total, familiesLanded: count.landed, familiesInvalid: count.invalid, familiesMissing: count.missing, familiesStale: count.stale,\n };\n if (outcome === WorkbenchCreationOutcome.APPLICATION_WORKS) {\n /*\n * An application that cannot start does not work, whatever has landed (#1537). Measured on the\n * first end-to-end run: the backend was paused by its supervisor for hours while this row read\n * as progress. Never DONE while a runtime is down; still IN_PROGRESS, because the work landed so\n * far is real — the row says what it is, and `unavailableRuntimes` says what stops it.\n */\n const unavailableRuntimes = input.unavailableRuntimes === undefined ? null : [...input.unavailableRuntimes];\n const runtimeDown = unavailableRuntimes !== null && unavailableRuntimes.length > 0;\n rows.set(outcome, {\n outcome, position, ...families, tasksTotal, tasksLanded, unavailableRuntimes,\n status: statusOf(count, tasksTotal > 0 && tasksLanded === tasksTotal && !runtimeDown && input.specificationFault === undefined, tasksLanded > 0 || runtimeDown),\n });\n } else if (outcome === WorkbenchCreationOutcome.READY_FOR_A_REAL_USER) {\n const othersDone = WORKBENCH_CREATION_OUTCOMES_IN_ORDER\n .filter((other) => other !== outcome)\n .every((other) => rows.get(other)?.status === WorkbenchCreationOutcomeStatus.DONE);\n rows.set(outcome, { outcome, position, ...families, tasksTotal: null, tasksLanded: null, unavailableRuntimes: null, status: statusOf(count, othersDone, false) });\n } else {\n rows.set(outcome, { outcome, position, ...families, tasksTotal: null, tasksLanded: null, unavailableRuntimes: null, status: statusOf(count, true, false) });\n }\n });\n return WORKBENCH_CREATION_OUTCOMES_IN_ORDER.map((outcome) => rows.get(outcome)!);\n}\n\n/** What the outcomes read of a build-plan task row: its status, and its ref to tell a step that only ran (#3258). */\nexport type CreationOutcomeTaskRow = Pick<Workbench_BuildPlanTask, 'status' | 'taskRef'>;\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"creation-plane-projection.companion.service.d.ts","sourceRoot":"","sources":["../../../../../src/core/introspection/resources/creation-plane-projection.companion.service.ts"],"names":[],"mappings":"AAMA,OAAO,EAA2C,K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,OAAO,CAAC,+BAA+B;IAkBvC;;;;;;;;;OASG;YACW,kBAAkB;IAoEhC,oIAAoI;YACtH,yBAAyB;IA0CvC,OAAO,CAAC,eAAe;CAsBxB"}
1
+ {"version":3,"file":"creation-plane-projection.companion.service.d.ts","sourceRoot":"","sources":["../../../../../src/core/introspection/resources/creation-plane-projection.companion.service.ts"],"names":[],"mappings":"AAMA,OAAO,EAA2C,KAAK,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAEzG,OAAO,EAEL,8BAA8B,EAC9B,6BAA6B,EAE7B,sCAAsC,EAGvC,MAAM,gCAAgC,CAAC;AAMxC,OAAO,KAAK,EAAE,mCAAmC,EAAE,MAAM,sEAAsE,CAAC;AAChI,OAAO,KAAK,EAAE,sCAAsC,EAAE,MAAM,0EAA0E,CAAC;AAKvI,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,iEAAiE,CAAC;AACnH,OAAO,EAIL,KAAK,wCAAwC,EAE7C,KAAK,0BAA0B,EAEhC,MAAM,+EAA+E,CAAC;AAEvF,OAAO,EAAiC,KAAK,wCAAwC,EAAE,MAAM,gFAAgF,CAAC;AAC9K,OAAO,KAAK,EAAE,kCAAkC,EAAE,MAAM,yEAAyE,CAAC;AAClI,OAAO,KAAK,EAAE,uBAAuB,EAAE,YAAY,EAAE,MAAM,4DAA4D,CAAC;AACxH,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAC;AASxE,OAAO,KAAK,EAAE,0CAA0C,EAAE,MAAM,4DAA4D,CAAC;AAI7H;;;;;;;;;;;;GAYG;AACH;;;;GAIG;AACH,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,YAAY,GAAG,6BAA6B,CA8BvF;AAED,wBAAgB,SAAS,CAAC,KAAK,EAAE,OAAO,GAAG,IAAI,GAAG,IAAI,CAKrD;AAqDD;;;;;;;GAOG;AACH,wBAAgB,yBAAyB,CAAC,MAAM,EAAE,0BAA0B,EAAE,iBAAiB,EAAE,OAAO,G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;;;;;;;OASG;IACI,6BAA6B,CAAC,OAAO,EAAE,MAAM,EAAE,eAAe,EAAE,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,GAAG,IAAI,GAAG,IAAI;IAqBvH,8HAA8H;IACvH,+BAA+B,IAAI,IAAI;IAK9C;;;;;;;;;;;;;OAaG;YACW,sBAAsB;IA8EpC;;;;;;;;;;;;OAYG;IACH,OAAO,CAAC,+BAA+B;IAkBvC;;;;;;;;;OASG;YACW,kBAAkB;IA0EhC,oIAAoI;YACtH,yBAAyB;IA0CvC,OAAO,CAAC,eAAe;CAsBxB"}
@@ -2083,7 +2083,7 @@ let CreationPlaneProjectionCompanionService = class CreationPlaneProjectionCompa
2083
2083
  const verificationToolHold = this.codingAgentDispatchService.readVerificationToolUnavailableHold();
2084
2084
  // A person's closures and the follow-ups landed still reporting a gap (#3224, #2583). Best effort: a read that
2085
2085
  // fails costs these lines, never Home, and says so.
2086
- const [closures, followUpsLandedWithGaps, uncommittedLeftovers, landedTasksWithAdvisories] = await Promise.all([
2086
+ const [closures, followUpsLandedWithGaps, uncommittedLeftovers, landedTasksWithAdvisories, gapsAwaitingDecision] = await Promise.all([
2087
2087
  Promise.resolve().then(() => this.buildDispatchService.readHonouredBuildTaskClosures()).catch((error) => {
2088
2088
  this.logger.warn('Could not read the build-task closures; Home lists none', { error: describeCaughtError(error) });
2089
2089
  return [];
@@ -2102,6 +2102,11 @@ let CreationPlaneProjectionCompanionService = class CreationPlaneProjectionCompa
2102
2102
  this.logger.warn('Could not read the landed tasks with a landing advisory; Home lists none', { error: describeCaughtError(error) });
2103
2103
  return [];
2104
2104
  }),
2105
+ // Reported gaps only the person's decision can close (#3886). Best effort, like the rest.
2106
+ Promise.resolve().then(() => this.buildDispatchService.readGapsAwaitingDecision()).catch((error) => {
2107
+ this.logger.warn('Could not read the reported gaps awaiting a decision; Home lists none', { error: describeCaughtError(error) });
2108
+ return [];
2109
+ }),
2105
2110
  ]);
2106
2111
  const rows = buildCreationHomeLines({
2107
2112
  runs: runs, dispatches: dispatches, waiting: waiting, parked: parked,
@@ -2121,6 +2126,7 @@ let CreationPlaneProjectionCompanionService = class CreationPlaneProjectionCompa
2121
2126
  followUpsLandedWithGaps,
2122
2127
  uncommittedLeftovers,
2123
2128
  landedTasksWithAdvisories,
2129
+ gapsAwaitingDecision,
2124
2130
  datedByWaitingInterviews: eligibilityBoard.datedByWaitingInterviews,
2125
2131
  });
2126
2132
  return this.stampIdentities(rows,