@wildo-ai/dev-companion 1.1.1 → 1.1.3

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 (212) hide show
  1. package/dist/esm/.tsbuildinfo +1 -1
  2. package/dist/esm/claude-cli/models/coding-agent-dispatch.models.d.ts +12 -1
  3. package/dist/esm/claude-cli/models/coding-agent-dispatch.models.d.ts.map +1 -1
  4. package/dist/esm/claude-cli/models/coding-agent-dispatch.models.js +11 -0
  5. package/dist/esm/claude-cli/models/coding-agent-dispatch.models.js.map +1 -1
  6. package/dist/esm/claude-cli/services/coding-agent-dispatch.companion.service.d.ts +153 -1
  7. package/dist/esm/claude-cli/services/coding-agent-dispatch.companion.service.d.ts.map +1 -1
  8. package/dist/esm/claude-cli/services/coding-agent-dispatch.companion.service.js +408 -38
  9. package/dist/esm/claude-cli/services/coding-agent-dispatch.companion.service.js.map +1 -1
  10. package/dist/esm/claude-cli/services/research-agent-dispatch.companion.service.d.ts +25 -10
  11. package/dist/esm/claude-cli/services/research-agent-dispatch.companion.service.d.ts.map +1 -1
  12. package/dist/esm/claude-cli/services/research-agent-dispatch.companion.service.js +65 -24
  13. package/dist/esm/claude-cli/services/research-agent-dispatch.companion.service.js.map +1 -1
  14. package/dist/esm/claude-cli/services/research-evidence-store.companion.d.ts +70 -0
  15. package/dist/esm/claude-cli/services/research-evidence-store.companion.d.ts.map +1 -0
  16. package/dist/esm/claude-cli/services/research-evidence-store.companion.js +110 -0
  17. package/dist/esm/claude-cli/services/research-evidence-store.companion.js.map +1 -0
  18. package/dist/esm/companion-api/companion-api.schemas.d.ts +59 -2
  19. package/dist/esm/companion-api/companion-api.schemas.d.ts.map +1 -1
  20. package/dist/esm/companion-api/companion-api.schemas.js +60 -0
  21. package/dist/esm/companion-api/companion-api.schemas.js.map +1 -1
  22. package/dist/esm/companion-api/controllers/companion.controller.d.ts +62 -1
  23. package/dist/esm/companion-api/controllers/companion.controller.d.ts.map +1 -1
  24. package/dist/esm/companion-api/controllers/companion.controller.js +295 -19
  25. package/dist/esm/companion-api/controllers/companion.controller.js.map +1 -1
  26. package/dist/esm/core/inject/models/container.d.ts.map +1 -1
  27. package/dist/esm/core/inject/models/container.js +11 -0
  28. package/dist/esm/core/inject/models/container.js.map +1 -1
  29. package/dist/esm/core/inject/models/service-types.d.ts +5 -0
  30. package/dist/esm/core/inject/models/service-types.d.ts.map +1 -1
  31. package/dist/esm/core/inject/models/service-types.js +5 -0
  32. package/dist/esm/core/inject/models/service-types.js.map +1 -1
  33. package/dist/esm/core/introspection/behaviors/companion-introspection-behavior-definitions.d.ts.map +1 -1
  34. package/dist/esm/core/introspection/behaviors/companion-introspection-behavior-definitions.js +81 -0
  35. package/dist/esm/core/introspection/behaviors/companion-introspection-behavior-definitions.js.map +1 -1
  36. package/dist/esm/core/introspection/models/companion-introspection.models.d.ts +11 -1
  37. package/dist/esm/core/introspection/models/companion-introspection.models.d.ts.map +1 -1
  38. package/dist/esm/core/introspection/models/companion-introspection.models.js +39 -0
  39. package/dist/esm/core/introspection/models/companion-introspection.models.js.map +1 -1
  40. package/dist/esm/core/introspection/resources/creation-plane-dispatch.custom-impl.companion.service.d.ts +8 -0
  41. package/dist/esm/core/introspection/resources/creation-plane-dispatch.custom-impl.companion.service.d.ts.map +1 -0
  42. package/dist/esm/core/introspection/resources/creation-plane-dispatch.custom-impl.companion.service.js +317 -0
  43. package/dist/esm/core/introspection/resources/creation-plane-dispatch.custom-impl.companion.service.js.map +1 -0
  44. package/dist/esm/core/introspection/resources/creation-plane-projection.companion.service.d.ts +45 -0
  45. package/dist/esm/core/introspection/resources/creation-plane-projection.companion.service.d.ts.map +1 -0
  46. package/dist/esm/core/introspection/resources/creation-plane-projection.companion.service.js +243 -0
  47. package/dist/esm/core/introspection/resources/creation-plane-projection.companion.service.js.map +1 -0
  48. package/dist/esm/core/introspection/resources/introspection-resource-notifier.companion.service.d.ts +123 -0
  49. package/dist/esm/core/introspection/resources/introspection-resource-notifier.companion.service.d.ts.map +1 -0
  50. package/dist/esm/core/introspection/resources/introspection-resource-notifier.companion.service.js +298 -0
  51. package/dist/esm/core/introspection/resources/introspection-resource-notifier.companion.service.js.map +1 -0
  52. package/dist/esm/core/introspection/resources/introspection-resource-source.companion.service.d.ts +78 -1
  53. package/dist/esm/core/introspection/resources/introspection-resource-source.companion.service.d.ts.map +1 -1
  54. package/dist/esm/core/introspection/resources/introspection-resource-source.companion.service.js +155 -6
  55. package/dist/esm/core/introspection/resources/introspection-resource-source.companion.service.js.map +1 -1
  56. package/dist/esm/core/introspection/services/companion-introspection.companion.service.d.ts +131 -2
  57. package/dist/esm/core/introspection/services/companion-introspection.companion.service.d.ts.map +1 -1
  58. package/dist/esm/core/introspection/services/companion-introspection.companion.service.js +259 -9
  59. package/dist/esm/core/introspection/services/companion-introspection.companion.service.js.map +1 -1
  60. package/dist/esm/core/introspection/services/introspection-derivation-state.companion.service.d.ts +243 -0
  61. package/dist/esm/core/introspection/services/introspection-derivation-state.companion.service.d.ts.map +1 -0
  62. package/dist/esm/core/introspection/services/introspection-derivation-state.companion.service.js +417 -0
  63. package/dist/esm/core/introspection/services/introspection-derivation-state.companion.service.js.map +1 -0
  64. package/dist/esm/core/introspection/services/introspection-source-state.companion.service.d.ts +186 -0
  65. package/dist/esm/core/introspection/services/introspection-source-state.companion.service.d.ts.map +1 -0
  66. package/dist/esm/core/introspection/services/introspection-source-state.companion.service.js +368 -0
  67. package/dist/esm/core/introspection/services/introspection-source-state.companion.service.js.map +1 -0
  68. package/dist/esm/core/introspection/services/introspection-source-watcher.companion.service.d.ts +101 -0
  69. package/dist/esm/core/introspection/services/introspection-source-watcher.companion.service.d.ts.map +1 -0
  70. package/dist/esm/core/introspection/services/introspection-source-watcher.companion.service.js +278 -0
  71. package/dist/esm/core/introspection/services/introspection-source-watcher.companion.service.js.map +1 -0
  72. package/dist/esm/core/introspection/subprocess/application-domain-model.behavior.d.ts +370 -0
  73. package/dist/esm/core/introspection/subprocess/application-domain-model.behavior.d.ts.map +1 -0
  74. package/dist/esm/core/introspection/subprocess/application-domain-model.behavior.js +167 -0
  75. package/dist/esm/core/introspection/subprocess/application-domain-model.behavior.js.map +1 -0
  76. package/dist/esm/core/introspection/subprocess/companion-introspection-behavior-handlers.d.ts.map +1 -1
  77. package/dist/esm/core/introspection/subprocess/companion-introspection-behavior-handlers.js +332 -3
  78. package/dist/esm/core/introspection/subprocess/companion-introspection-behavior-handlers.js.map +1 -1
  79. package/dist/esm/core/introspection/subprocess/family-aspects.behavior.d.ts +40 -0
  80. package/dist/esm/core/introspection/subprocess/family-aspects.behavior.d.ts.map +1 -0
  81. package/dist/esm/core/introspection/subprocess/family-aspects.behavior.js +126 -0
  82. package/dist/esm/core/introspection/subprocess/family-aspects.behavior.js.map +1 -0
  83. package/dist/esm/core/introspection/subprocess/specification-artifacts.behavior.d.ts +51 -0
  84. package/dist/esm/core/introspection/subprocess/specification-artifacts.behavior.d.ts.map +1 -0
  85. package/dist/esm/core/introspection/subprocess/specification-artifacts.behavior.js +391 -0
  86. package/dist/esm/core/introspection/subprocess/specification-artifacts.behavior.js.map +1 -0
  87. package/dist/esm/core/runtime/dev-compile-quiet.companion.d.ts +103 -0
  88. package/dist/esm/core/runtime/dev-compile-quiet.companion.d.ts.map +1 -0
  89. package/dist/esm/core/runtime/dev-compile-quiet.companion.js +124 -0
  90. package/dist/esm/core/runtime/dev-compile-quiet.companion.js.map +1 -0
  91. package/dist/esm/core/runtime/services/start-companion-application.service.d.ts +39 -2
  92. package/dist/esm/core/runtime/services/start-companion-application.service.d.ts.map +1 -1
  93. package/dist/esm/core/runtime/services/start-companion-application.service.js +122 -11
  94. package/dist/esm/core/runtime/services/start-companion-application.service.js.map +1 -1
  95. package/dist/esm/core/specifications/non-composite-view-specification-context.shared.d.ts +6 -0
  96. package/dist/esm/core/specifications/non-composite-view-specification-context.shared.d.ts.map +1 -1
  97. package/dist/esm/core/specifications/non-composite-view-specification-context.shared.js.map +1 -1
  98. package/dist/esm/core/specifications/specification-context-factory.shared.d.ts +23 -0
  99. package/dist/esm/core/specifications/specification-context-factory.shared.d.ts.map +1 -1
  100. package/dist/esm/core/specifications/specification-context-factory.shared.js +26 -4
  101. package/dist/esm/core/specifications/specification-context-factory.shared.js.map +1 -1
  102. package/dist/esm/executions/services/companion-executions.companion.service.d.ts.map +1 -1
  103. package/dist/esm/executions/services/companion-executions.companion.service.js +13 -8
  104. package/dist/esm/executions/services/companion-executions.companion.service.js.map +1 -1
  105. package/dist/esm/i18n/components/APP_LAYOUTS_MAIN_CONTAINER.en.d.ts +12 -0
  106. package/dist/esm/i18n/components/APP_LAYOUTS_MAIN_CONTAINER.en.d.ts.map +1 -0
  107. package/dist/esm/i18n/components/APP_LAYOUTS_MAIN_CONTAINER.en.js +12 -0
  108. package/dist/esm/i18n/components/APP_LAYOUTS_MAIN_CONTAINER.en.js.map +1 -0
  109. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD.en.d.ts +1 -1
  110. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD.en.js +1 -1
  111. package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD.en.js.map +1 -1
  112. package/dist/esm/i18n/composite_views/app.creation-board.en.d.ts +13 -0
  113. package/dist/esm/i18n/composite_views/app.creation-board.en.d.ts.map +1 -0
  114. package/dist/esm/i18n/composite_views/app.creation-board.en.js +91 -0
  115. package/dist/esm/i18n/composite_views/app.creation-board.en.js.map +1 -0
  116. package/dist/esm/i18n/composite_views/app.domain-model.en.d.ts +38 -0
  117. package/dist/esm/i18n/composite_views/app.domain-model.en.d.ts.map +1 -0
  118. package/dist/esm/i18n/composite_views/app.domain-model.en.js +41 -0
  119. package/dist/esm/i18n/composite_views/app.domain-model.en.js.map +1 -0
  120. package/dist/esm/i18n/index.d.ts +3 -3
  121. package/dist/esm/i18n/index.js +3 -3
  122. package/dist/esm/i18n/index.js.map +1 -1
  123. package/dist/esm/i18n/resources/wildoApplicationActorSystemExecutions.en.d.ts +24 -0
  124. package/dist/esm/i18n/resources/wildoApplicationActorSystemExecutions.en.d.ts.map +1 -0
  125. package/dist/esm/i18n/resources/wildoApplicationActorSystemExecutions.en.js +20 -0
  126. package/dist/esm/i18n/resources/wildoApplicationActorSystemExecutions.en.js.map +1 -0
  127. package/dist/esm/i18n/resources/wildoApplicationActorTasks.en.d.ts +31 -0
  128. package/dist/esm/i18n/resources/wildoApplicationActorTasks.en.d.ts.map +1 -0
  129. package/dist/esm/i18n/resources/wildoApplicationActorTasks.en.js +27 -0
  130. package/dist/esm/i18n/resources/wildoApplicationActorTasks.en.js.map +1 -0
  131. package/dist/esm/i18n/resources/wildoApplicationFlowSystemExecutions.en.d.ts +24 -0
  132. package/dist/esm/i18n/resources/wildoApplicationFlowSystemExecutions.en.d.ts.map +1 -0
  133. package/dist/esm/i18n/resources/wildoApplicationFlowSystemExecutions.en.js +20 -0
  134. package/dist/esm/i18n/resources/wildoApplicationFlowSystemExecutions.en.js.map +1 -0
  135. package/dist/esm/i18n/resources/workbenchBuildPlanTasks.en.d.ts +28 -0
  136. package/dist/esm/i18n/resources/workbenchBuildPlanTasks.en.d.ts.map +1 -0
  137. package/dist/esm/i18n/resources/workbenchBuildPlanTasks.en.js +24 -0
  138. package/dist/esm/i18n/resources/workbenchBuildPlanTasks.en.js.map +1 -0
  139. package/dist/esm/i18n/resources/workbenchDomainResources.en.d.ts +138 -0
  140. package/dist/esm/i18n/resources/workbenchDomainResources.en.d.ts.map +1 -0
  141. package/dist/esm/i18n/resources/workbenchDomainResources.en.js +100 -0
  142. package/dist/esm/i18n/resources/workbenchDomainResources.en.js.map +1 -0
  143. package/dist/esm/i18n/resources/workbenchPlaybooks.en.d.ts +29 -0
  144. package/dist/esm/i18n/resources/workbenchPlaybooks.en.d.ts.map +1 -0
  145. package/dist/esm/i18n/resources/workbenchPlaybooks.en.js +25 -0
  146. package/dist/esm/i18n/resources/workbenchPlaybooks.en.js.map +1 -0
  147. package/dist/esm/i18n/resources/workbenchRunWriteRecords.en.d.ts +27 -0
  148. package/dist/esm/i18n/resources/workbenchRunWriteRecords.en.d.ts.map +1 -0
  149. package/dist/esm/i18n/resources/workbenchRunWriteRecords.en.js +23 -0
  150. package/dist/esm/i18n/resources/workbenchRunWriteRecords.en.js.map +1 -0
  151. package/dist/esm/i18n/resources/workbenchSpecificationArtifacts.en.d.ts +806 -0
  152. package/dist/esm/i18n/resources/workbenchSpecificationArtifacts.en.d.ts.map +1 -0
  153. package/dist/esm/i18n/resources/workbenchSpecificationArtifacts.en.js +326 -0
  154. package/dist/esm/i18n/resources/workbenchSpecificationArtifacts.en.js.map +1 -0
  155. package/dist/esm/i18n/resources/workbenchTraceSessions.en.d.ts +26 -0
  156. package/dist/esm/i18n/resources/workbenchTraceSessions.en.d.ts.map +1 -0
  157. package/dist/esm/i18n/resources/workbenchTraceSessions.en.js +22 -0
  158. package/dist/esm/i18n/resources/workbenchTraceSessions.en.js.map +1 -0
  159. package/dist/esm/i18n/system_enums/market.en.d.ts +202 -0
  160. package/dist/esm/i18n/system_enums/market.en.d.ts.map +1 -0
  161. package/dist/esm/i18n/system_enums/market.en.js +209 -0
  162. package/dist/esm/i18n/system_enums/market.en.js.map +1 -0
  163. package/dist/esm/meta-workflows/models/application-coding-agent.actors-system.definitions.d.ts +31 -0
  164. package/dist/esm/meta-workflows/models/application-coding-agent.actors-system.definitions.d.ts.map +1 -1
  165. package/dist/esm/meta-workflows/models/application-coding-agent.actors-system.definitions.js +91 -8
  166. package/dist/esm/meta-workflows/models/application-coding-agent.actors-system.definitions.js.map +1 -1
  167. package/dist/esm/meta-workflows/models/application-research-agent.actors-system.definitions.d.ts +4 -2
  168. package/dist/esm/meta-workflows/models/application-research-agent.actors-system.definitions.d.ts.map +1 -1
  169. package/dist/esm/meta-workflows/models/application-research-agent.actors-system.definitions.js +10 -7
  170. package/dist/esm/meta-workflows/models/application-research-agent.actors-system.definitions.js.map +1 -1
  171. package/dist/esm/meta-workflows/services/application-build-dispatch.companion.service.d.ts +80 -7
  172. package/dist/esm/meta-workflows/services/application-build-dispatch.companion.service.d.ts.map +1 -1
  173. package/dist/esm/meta-workflows/services/application-build-dispatch.companion.service.js +261 -24
  174. package/dist/esm/meta-workflows/services/application-build-dispatch.companion.service.js.map +1 -1
  175. package/dist/esm/meta-workflows/services/application-build-generation-step.companion.service.d.ts +46 -3
  176. package/dist/esm/meta-workflows/services/application-build-generation-step.companion.service.d.ts.map +1 -1
  177. package/dist/esm/meta-workflows/services/application-build-generation-step.companion.service.js +95 -2
  178. package/dist/esm/meta-workflows/services/application-build-generation-step.companion.service.js.map +1 -1
  179. package/dist/esm/meta-workflows/services/execution-trace-read.companion.service.d.ts +9 -0
  180. package/dist/esm/meta-workflows/services/execution-trace-read.companion.service.d.ts.map +1 -1
  181. package/dist/esm/meta-workflows/services/execution-trace-read.companion.service.js +13 -0
  182. package/dist/esm/meta-workflows/services/execution-trace-read.companion.service.js.map +1 -1
  183. package/dist/esm/meta-workflows/services/playbook-run-write-register.companion.service.d.ts +12 -0
  184. package/dist/esm/meta-workflows/services/playbook-run-write-register.companion.service.d.ts.map +1 -1
  185. package/dist/esm/meta-workflows/services/playbook-run-write-register.companion.service.js +23 -0
  186. package/dist/esm/meta-workflows/services/playbook-run-write-register.companion.service.js.map +1 -1
  187. package/dist/esm/meta-workflows/services/playbook-run.companion.service.d.ts +113 -1
  188. package/dist/esm/meta-workflows/services/playbook-run.companion.service.d.ts.map +1 -1
  189. package/dist/esm/meta-workflows/services/playbook-run.companion.service.js +517 -54
  190. package/dist/esm/meta-workflows/services/playbook-run.companion.service.js.map +1 -1
  191. package/dist/esm/meta-workflows/services/playbook-suspended-run.companion.service.d.ts +40 -0
  192. package/dist/esm/meta-workflows/services/playbook-suspended-run.companion.service.d.ts.map +1 -1
  193. package/dist/esm/meta-workflows/services/playbook-suspended-run.companion.service.js +63 -1
  194. package/dist/esm/meta-workflows/services/playbook-suspended-run.companion.service.js.map +1 -1
  195. package/dist/esm/technical-doc/services/technical-doc.companion.service.d.ts +21 -0
  196. package/dist/esm/technical-doc/services/technical-doc.companion.service.d.ts.map +1 -1
  197. package/dist/esm/technical-doc/services/technical-doc.companion.service.js +84 -2
  198. package/dist/esm/technical-doc/services/technical-doc.companion.service.js.map +1 -1
  199. package/dist/esm/technical-doc/services/technical-documentation-application-derivation.companion.service.d.ts +10 -1
  200. package/dist/esm/technical-doc/services/technical-documentation-application-derivation.companion.service.d.ts.map +1 -1
  201. package/dist/esm/technical-doc/services/technical-documentation-application-derivation.companion.service.js +10 -1
  202. package/dist/esm/technical-doc/services/technical-documentation-application-derivation.companion.service.js.map +1 -1
  203. package/package.json +17 -17
  204. package/dist/esm/.builder.pid +0 -9
  205. package/dist/esm/i18n/resources/workbenchApplicationModules.en.d.ts +0 -36
  206. package/dist/esm/i18n/resources/workbenchApplicationModules.en.d.ts.map +0 -1
  207. package/dist/esm/i18n/resources/workbenchApplicationModules.en.js +0 -32
  208. package/dist/esm/i18n/resources/workbenchApplicationModules.en.js.map +0 -1
  209. package/dist/esm/i18n/resources/workbenchResourceRelationships.en.d.ts +0 -29
  210. package/dist/esm/i18n/resources/workbenchResourceRelationships.en.d.ts.map +0 -1
  211. package/dist/esm/i18n/resources/workbenchResourceRelationships.en.js +0 -25
  212. package/dist/esm/i18n/resources/workbenchResourceRelationships.en.js.map +0 -1
@@ -0,0 +1 @@
1
+ {"version":3,"file":"specification-artifacts.behavior.js","sourceRoot":"","sources":["../../../../../../src/core/introspection/subprocess/specification-artifacts.behavior.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AACnD,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAE1C,OAAO,EACL,kDAAkD,EAClD,4BAA4B,EAC5B,uCAAuC,GAExC,MAAM,wCAAwC,CAAC;AAChD,OAAO,EAAE,6BAA6B,EAAE,+BAA+B,EAAE,MAAM,+BAA+B,CAAC;AAC/G,OAAO,EACL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 'node:path';\n\nimport {\n APPLICATION_SPECIFICATION_SEMANTIC_SCHEMA_BINDINGS,\n getFamilyPackageRelativePath,\n renderSpecificationFamilyReviewDocument,\n type ApplicationSpecificationSemanticSchemaBinding,\n} from '@wildo-ai/application-creation-runtime';\nimport { getFrameworkKnowledgePlaybook, listFrameworkKnowledgePlaybooks } from '@wildo-ai/framework-knowledge';\nimport {\n WorkbenchSpecificationArtifactConcern,\n WorkbenchSpecificationArtifactState,\n} from '@wildo-ai/platform-core-shared';\nimport { JourneyArtifactValidationState } from '@wildo-ai/saas-specifications/application-creation';\n\nimport { resolveSpecificationsCompanionExports } from './companion-introspection-module-exports.utils';\n\n/**\n * The operator-facing projection of the application's specification families (issue #162).\n *\n * ## What was missing, and what was already there\n *\n * Nine companion behaviors already READ this content — `market-context-for-icp`,\n * `market-render-prompt`, `brand-render-prompt`, `compliance-primary-facts`,\n * `definition-specifications`, `specification-context-parts` and their siblings — and every one of\n * them renders PROSE FOR A LANGUAGE MODEL. The loading and resolution paths were proven; what did\n * not exist was a projection whose consumer is a human. So a creator could not review, compare or\n * revise anything the journey had decided about their product without opening TypeScript files in an\n * editor.\n *\n * Reusing one of those renderers to fill a UI would ship an LLM context block into a human surface.\n * This behavior therefore renders through `renderSpecificationFamilyReviewDocument`, whose only\n * reader is a person.\n *\n * ## Why it REPORTS where `definition-specifications` REFUSES\n *\n * That behavior runs the same validators through the same authority and THROWS on any ERROR-severity\n * issue — correct for a durable load-time guard, and exactly wrong for a review surface: it would\n * make an invalid artifact the one thing a reviewer cannot look at, precisely when they most need to\n * see it. The two cannot disagree about what is VALID, because the validator is the same object; they\n * differ only in what to do about an invalid answer.\n *\n * ## Pure, deterministic, and read-only by construction\n *\n * Reads the authored snapshots off the specifications companion exports, the two committed markdown\n * records beside each family, and the compiled playbook catalog. No LLM, no network, no write, and no\n * state: acceptance of a specification is a human git commit (`.claude/rules/one-source-of-truth.md`\n * rule 2), so there is nowhere here for an acceptance state to accumulate.\n */\n\n/**\n * The family's name in a creator's words.\n *\n * Authored rather than derived from the family slug, because the two genuinely diverge in the\n * direction that matters: `vision-brief` names a product VISION, `business-model` a pricing and\n * revenue model, `compliance-program` an assurance PROGRAMME. Humanizing the slug would produce\n * \"Vision brief\" and \"Compliance program\" — accurate about the id, and a worse answer to \"what am I\n * looking at\" than the words the domain already uses.\n *\n * A family with no entry falls back to its slug rather than being dropped; see\n * {@link classifyFamily}.\n */\nconst FAMILY_TITLES: Readonly<Record<string, string>> = {\n 'vision-brief': 'Vision',\n 'market-snapshot': 'Market',\n requirements: 'Requirements',\n 'feature-drafts': 'Feature drafts',\n 'business-model': 'Business model',\n roadmap: 'Roadmap',\n 'domain-plan': 'Domain plan',\n 'build-plan': 'Build plan',\n 'placement-plan': 'Placement plan',\n 'brand-brief': 'Brand',\n 'compliance-program': 'Assurance programme',\n 'compliance-document-candidate': 'Governed-document drafts',\n 'document-publication': 'Document publication',\n 'document-release-policy': 'Document release policy',\n 'document-facts': 'Document facts',\n 'document-facts-authored': 'Document facts you decide',\n 'processor-register': 'Who else processes your data',\n};\n\n/**\n * What each family IS, in one sentence a creator recognizes — the summary card's subtitle.\n *\n * Static and present whether or not anything landed: on a NOT_LANDED card this sentence is the\n * whole answer to \"why would I care\", and on a landed one it frames the pulse beside it. Authored\n * in the creator's vocabulary, not the framework's — \"the files this product must publish\", never\n * \"the governed-document candidate family\".\n */\nconst FAMILY_DESCRIPTIONS: Readonly<Record<string, string>> = {\n 'vision-brief': 'The founding intent — the idea, the problem it answers, and what success looks like.',\n 'market-snapshot': 'Who this product is for and how it is positioned — category, ICPs, personas, messaging.',\n requirements: 'What the product must do, functionally and non-functionally, with acceptance criteria.',\n 'feature-drafts': 'Accepted feature intent — spec-first drafts awaiting their runtime definitions.',\n 'business-model': 'How the product earns — the revenue model and its pricing plans.',\n roadmap: 'The build order — phases, their objectives, and what each one delivers.',\n 'domain-plan': 'The domain model as planned — modules, their purposes, and the relationships between resources.',\n 'build-plan': 'The task graph the coding lane executes — objectives, targets and prerequisites.',\n 'placement-plan': 'Where every destination sits in the application shell, and why.',\n 'brand-brief': 'How the product presents itself — name, logo direction and visual tone.',\n 'compliance-program': 'The controls this product commits to, and the authorities they answer.',\n 'compliance-document-candidate': 'Drafts of the public governed documents this product must publish.',\n 'document-publication': 'Which locales and jurisdictions each governed document publishes in.',\n 'document-release-policy': 'How each required document may be released — draft, attested, or reviewed.',\n 'document-facts': 'The accepted raw facts governed documents are built from.',\n 'document-facts-authored': 'The facts nobody can derive for you — the ones you decide or have reviewed.',\n 'processor-register': 'Every vendor that handles your users\\' personal data, who they legally are, and where.',\n};\n\n/**\n * Which question each family answers — the axis the workbench groups its list by.\n *\n * Lives HERE, beside the authority it must stay exhaustive over, rather than beside the enum in\n * `platform-core-shared`: that package cannot reach `@wildo-ai/application-creation-runtime`, so a\n * map declared there could never be checked against the population it classifies. A companion test\n * asserts every authority family has an entry, which is the only place both are in scope.\n */\nconst FAMILY_CONCERNS: Readonly<Record<string, WorkbenchSpecificationArtifactConcern>> = {\n 'vision-brief': WorkbenchSpecificationArtifactConcern.INTENT,\n 'market-snapshot': WorkbenchSpecificationArtifactConcern.INTENT,\n requirements: WorkbenchSpecificationArtifactConcern.SCOPE,\n 'feature-drafts': WorkbenchSpecificationArtifactConcern.SCOPE,\n 'business-model': WorkbenchSpecificationArtifactConcern.SCOPE,\n roadmap: WorkbenchSpecificationArtifactConcern.DELIVERY,\n /*\n * `domain-plan` and `build-plan` are INCLUDED even though issues #160 and #163 build richer\n * surfaces for them (a graph, a board). They are the same KIND of artifact as their neighbours —\n * a landed, validated, reviewable family — and excluding them would mean hand-maintaining a\n * subtraction from the authority's population, which is the list-that-restates-a-list shape that\n * rots. The graph and the board are additional views of two families, not replacements for\n * reading them.\n */\n 'domain-plan': WorkbenchSpecificationArtifactConcern.DELIVERY,\n 'build-plan': WorkbenchSpecificationArtifactConcern.DELIVERY,\n 'placement-plan': WorkbenchSpecificationArtifactConcern.DELIVERY,\n 'brand-brief': WorkbenchSpecificationArtifactConcern.IDENTITY,\n 'compliance-program': WorkbenchSpecificationArtifactConcern.OBLIGATIONS,\n 'compliance-document-candidate': WorkbenchSpecificationArtifactConcern.OBLIGATIONS,\n 'document-publication': WorkbenchSpecificationArtifactConcern.OBLIGATIONS,\n 'document-release-policy': WorkbenchSpecificationArtifactConcern.OBLIGATIONS,\n 'document-facts': WorkbenchSpecificationArtifactConcern.OBLIGATIONS,\n 'document-facts-authored': WorkbenchSpecificationArtifactConcern.OBLIGATIONS,\n 'processor-register': WorkbenchSpecificationArtifactConcern.OBLIGATIONS,\n};\n\n/** The companion records a landing writes beside a family's own `index.ts`. */\nconst DECISION_RECORD_FILE_NAME = 'DECISIONS.md';\nconst DIAGRAM_FILE_NAME = 'DIAGRAM.md';\n\n/** One family row, JSON-safe, matching `Workbench_SpecificationArtifact_Schema`. */\nexport interface SpecificationArtifactRow {\n readonly family: string;\n readonly title: string;\n /** Static per-family subtitle — see {@link FAMILY_DESCRIPTIONS}. */\n readonly description: string;\n /** One-line pulse of the landed content, `null` when nothing landed. See {@link deriveContentPulse}. */\n readonly contentSummary: string | null;\n readonly concern: WorkbenchSpecificationArtifactConcern;\n readonly state: WorkbenchSpecificationArtifactState;\n readonly schemaRef: string;\n readonly sourcePath: string | null;\n readonly errorCount: number;\n readonly warnCount: number;\n readonly producedByPlaybookRefs: string[];\n /**\n * The landed family value, RAW — exactly what the specifications package exports, never the\n * validator's parsed output (whose schema `.default()`s would inject content the author never\n * wrote). The workbench's per-family templates render from this; the markdown `document` beside\n * it is their structural fallback. `null` when the family has not landed.\n */\n readonly content: Record<string, unknown> | null;\n readonly document: string | null;\n readonly issues: string | null;\n readonly decisionRecord: string | null;\n readonly diagram: string | null;\n}\n\nexport interface SpecificationArtifactsResponse {\n readonly artifacts: SpecificationArtifactRow[];\n readonly trace: {\n readonly families: number;\n readonly landed: number;\n readonly invalid: number;\n readonly evaluatedAt: string;\n };\n}\n\nfunction classifyFamily(family: string): WorkbenchSpecificationArtifactConcern {\n return FAMILY_CONCERNS[family] ?? WorkbenchSpecificationArtifactConcern.UNCLASSIFIED;\n}\n\n/**\n * Every playbook whose declared `outputs[].family` is `family`.\n *\n * The durable half of \"what produced this\": a fact about the compiled catalog, carried in git, true\n * whether or not any run's state still exists. A link to the RUN that produced a particular value was\n * deliberately not built — runs, traces and the write register are a per-run cache under\n * `one-source-of-truth.md` rule 5, so a durable artifact pointing into deletable state is dangling by\n * design. The link runs the other way: a run may name what it wrote.\n *\n * Built ONCE per derivation rather than per family: the catalog read is the same 21 files either way,\n * and looping it fifteen times would multiply the only file I/O in this behavior by fifteen.\n */\nfunction buildPlaybookRefsByFamily(): ReadonlyMap<string, string[]> {\n const byFamily = new Map<string, string[]>();\n for (const entry of listFrameworkKnowledgePlaybooks()) {\n const hydrated = getFrameworkKnowledgePlaybook(entry.ref);\n const outputs = (hydrated?.playbook as { outputs?: readonly { family?: unknown }[] } | undefined)?.outputs ?? [];\n for (const output of outputs) {\n if (typeof output?.family !== 'string' || output.family.length === 0) continue;\n const refs = byFamily.get(output.family) ?? [];\n if (!refs.includes(entry.ref)) refs.push(entry.ref);\n byFamily.set(output.family, refs);\n }\n }\n return byFamily;\n}\n\n/**\n * Read a markdown record committed beside a family, or `null`.\n *\n * `null` for an absent file is a FACT with a precise meaning, and the two files mean different things\n * by their absence: no `DIAGRAM.md` means this family has no diagram renderer, while no\n * `DECISIONS.md` means the run that produced it asked the creator nothing — never that no\n * clarification happened. The row's JSDoc carries that distinction to the reader; here both are just\n * a missing file.\n */\nfunction readCommittedRecord(packageRoot: string, familyRelativePath: string, fileName: string): string | null {\n const path = join(packageRoot, dirname(familyRelativePath), fileName);\n if (!existsSync(path)) return null;\n try {\n const content = readFileSync(path, 'utf8').trim();\n return content.length > 0 ? content : null;\n } catch {\n /*\n * A record that cannot be READ is reported as absent rather than failing the derivation. It is\n * supporting provenance beside the artifact, not the artifact — refusing the whole page because\n * one sibling file is unreadable would deny a reviewer the fifteen rows that are fine.\n */\n return null;\n }\n}\n\n/**\n * The validator's findings, rendered for a reader.\n *\n * Errors before warnings, because the two are different instructions: an error says this artifact no\n * longer satisfies its own contract, a warning says its authoring has drifted. Only the counts reach\n * the list; this is what a reviewer opens the row to read.\n */\nfunction renderIssues(errorDetails: readonly string[], warnCount: number): string | null {\n if (errorDetails.length === 0 && warnCount === 0) return null;\n const lines: string[] = [];\n if (errorDetails.length > 0) {\n lines.push(`**${errorDetails.length} error${errorDetails.length === 1 ? '' : 's'}** — the artifact does not satisfy its own contract.`, '');\n for (const detail of errorDetails) lines.push(`- ${detail}`);\n lines.push('');\n }\n if (warnCount > 0) {\n lines.push(\n `**${warnCount} warning${warnCount === 1 ? '' : 's'}** — authoring drift the validator reports without invalidating the artifact.`,\n '',\n 'Warning detail is not carried here: the family validators return warnings alongside errors and',\n 'only the errors are projected as text today. Open the file to read them.',\n );\n }\n return lines.join('\\n').trim();\n}\n\n/**\n * One line saying HOW MUCH landed — counts and the artifact's own headline, never truncated prose.\n *\n * Read with plain optional access over the RAW value rather than through the family schemas: the\n * pulse must survive an INVALID artifact (which the projection deliberately still serves), and a\n * reader shown \"3 ICPs\" beside a red badge knows more than one shown nothing. A family this\n * function does not know yields `null`, and the card simply carries no pulse — absence is honest\n * for a sixteenth family until its line is written.\n */\nfunction deriveContentPulse(family: string, snapshot: Record<string, unknown>): string | null {\n const count = (key: string): number => (Array.isArray(snapshot[key]) ? (snapshot[key] as unknown[]).length : 0);\n const text = (path: readonly string[]): string | null => {\n let value: unknown = snapshot;\n for (const key of path) {\n if (!value || typeof value !== 'object') return null;\n value = (value as Record<string, unknown>)[key];\n }\n return typeof value === 'string' && value.trim().length > 0 ? value.trim() : null;\n };\n /*\n * Each entry names its SINGULAR; the plural defaults to `+s` and is spelled out where English\n * disagrees. \"1 ICPs\" on a live card is what bought this parameter.\n */\n const parts = (entries: ReadonlyArray<readonly [number, string, string?]>): string | null => {\n const present = entries\n .filter(([n]) => n > 0)\n .map(([n, singular, plural]) => `${n} ${n === 1 ? singular : plural ?? `${singular}s`}`);\n return present.length > 0 ? present.join(' · ') : null;\n };\n\n switch (family) {\n case 'vision-brief':\n return text(['idea', 'oneLiner']);\n case 'market-snapshot':\n return parts([[count('icps'), 'ICP'], [count('personas'), 'persona'], [count('positionings'), 'positioning'], [count('tonesOfVoice'), 'tone of voice', 'tones of voice']]);\n case 'requirements':\n return parts([[count('functional'), 'functional', 'functional'], [count('nonFunctional'), 'non-functional', 'non-functional']]);\n case 'feature-drafts':\n return parts([[count('drafts'), 'feature draft']]);\n case 'business-model': {\n const model = typeof snapshot.revenueModel === 'string' ? snapshot.revenueModel.toLowerCase().replace(/_/g, ' ') : null;\n const plans = parts([[count('plans'), 'plan']]);\n return model && plans ? `${model} · ${plans}` : model ?? plans;\n }\n case 'roadmap':\n return parts([[count('phases'), 'phase']]);\n case 'domain-plan':\n return parts([[count('modules'), 'module'], [count('relationships'), 'relationship']]);\n case 'build-plan':\n return parts([[count('tasks'), 'task']]);\n case 'placement-plan':\n return parts([[count('groups'), 'group'], [count('decisions'), 'decision']]);\n case 'brand-brief': {\n const name = text(['name', 'brandName']);\n const tagline = text(['name', 'tagline']);\n return name ? (tagline ? `${name} — ${tagline}` : name) : null;\n }\n case 'compliance-program':\n return parts([[count('roleAuthorities'), 'role authority', 'role authorities'], [count('capabilityAuthorities'), 'capability authority', 'capability authorities'], [count('implementationStatements'), 'implementation statement']]);\n case 'compliance-document-candidate': {\n const title = text(['title']);\n const sections = parts([[count('sections'), 'section']]);\n return title ? (sections ? `${title} · ${sections}` : title) : sections;\n }\n case 'document-publication':\n return parts([[count('variants'), 'publication variant']]);\n case 'document-release-policy':\n return parts([[count('selections'), 'selection']]);\n case 'document-facts':\n case 'document-facts-authored':\n return parts([[count('declarations'), 'declaration']]);\n case 'processor-register':\n return parts([[count('processors'), 'processor']]);\n default:\n return null;\n }\n}\n\nfunction projectFamily(input: {\n readonly binding: ApplicationSpecificationSemanticSchemaBinding;\n readonly snapshot: unknown;\n readonly packageRoot: string;\n readonly appRelativePackagePrefix: string;\n readonly playbookRefsByFamily: ReadonlyMap<string, string[]>;\n}): SpecificationArtifactRow {\n const { binding, snapshot, packageRoot, appRelativePackagePrefix, playbookRefsByFamily } = input;\n const familyRelativePath = getFamilyPackageRelativePath(binding.family);\n const title = FAMILY_TITLES[binding.family] ?? binding.family;\n\n const base = {\n family: binding.family,\n title,\n /*\n * The slug fallback keeps a sixteenth family SERVABLE before its sentence is authored — and the\n * coverage pin beside the titles test is what turns that fallback into a red test naming the\n * family, so it never quietly ships as a subtitle.\n */\n description: FAMILY_DESCRIPTIONS[binding.family] ?? binding.family,\n concern: classifyFamily(binding.family),\n schemaRef: binding.schemaRef,\n sourcePath: familyRelativePath ? `${appRelativePackagePrefix}/${familyRelativePath}` : null,\n producedByPlaybookRefs: [...(playbookRefsByFamily.get(binding.family) ?? [])],\n };\n\n if (snapshot === undefined || snapshot === null) {\n return {\n ...base,\n state: WorkbenchSpecificationArtifactState.NOT_LANDED,\n errorCount: 0,\n warnCount: 0,\n contentSummary: null,\n content: null,\n document: null,\n issues: null,\n decisionRecord: null,\n diagram: null,\n };\n }\n\n const validation = binding.validate(snapshot);\n return {\n ...base,\n state: validation.validation === JourneyArtifactValidationState.VALID\n ? WorkbenchSpecificationArtifactState.LANDED_VALID\n : WorkbenchSpecificationArtifactState.LANDED_INVALID,\n errorCount: validation.errorCount,\n warnCount: validation.warnCount,\n contentSummary: typeof snapshot === 'object' && !Array.isArray(snapshot)\n ? deriveContentPulse(binding.family, snapshot as Record<string, unknown>)\n : null,\n /*\n * Both carried from the RAW snapshot, not from the validator's parsed output. The validator\n * parses with the family schema, whose `.default()` members would inject values the author never\n * wrote — a reviewer would then be shown, and could accept, content nobody authored. Mutation-\n * proven on the `document` half (parsed-value render reddens the raw-value pin); `content`\n * follows the same rule for the same reason.\n *\n * Every family binding's `snapshotSchema` is an object, so a landed snapshot is one; anything\n * else is reported rather than smuggled through as a non-object the row schema would refuse.\n */\n content: typeof snapshot === 'object' && !Array.isArray(snapshot) ? snapshot as Record<string, unknown> : null,\n document: renderSpecificationFamilyReviewDocument({ title, value: snapshot }),\n issues: renderIssues(validation.errorDetails, validation.warnCount),\n decisionRecord: familyRelativePath\n ? readCommittedRecord(packageRoot, familyRelativePath, DECISION_RECORD_FILE_NAME)\n : null,\n diagram: familyRelativePath\n ? readCommittedRecord(packageRoot, familyRelativePath, DIAGRAM_FILE_NAME)\n : null,\n };\n}\n\n/**\n * Project every application-specification family for a human reviewer.\n *\n * `packageRoot` is the specifications package's absolute root, and `appRelativePackagePrefix` its\n * directory name relative to the application — so a row can name a path a reader recognizes\n * (`specifications/src/vision/index.ts`) rather than one that only makes sense inside the package.\n */\nexport function projectSpecificationArtifacts(input: {\n readonly moduleExports: Record<string, unknown>;\n readonly packageRoot: string;\n readonly appRelativePackagePrefix: string;\n readonly evaluatedAt: string;\n}): SpecificationArtifactsResponse {\n const companionExports = resolveSpecificationsCompanionExports(input.moduleExports) as unknown as Record<string, unknown>;\n const playbookRefsByFamily = buildPlaybookRefsByFamily();\n\n const artifacts = APPLICATION_SPECIFICATION_SEMANTIC_SCHEMA_BINDINGS.map((binding) =>\n projectFamily({\n binding,\n /*\n * A family with no `companionExportsField` is a DRAFT — it is not accepted application truth\n * and has no slot to read (`compliance-document-candidate`). It is reported as NOT_LANDED\n * rather than skipped, for the same reason absent families are rows at all: an omitted row and\n * a family that does not exist look identical to a reader.\n */\n snapshot: binding.companionExportsField === undefined\n ? undefined\n : companionExports[binding.companionExportsField],\n packageRoot: input.packageRoot,\n appRelativePackagePrefix: input.appRelativePackagePrefix,\n playbookRefsByFamily,\n }),\n );\n\n return {\n artifacts,\n trace: {\n families: artifacts.length,\n landed: artifacts.filter((artifact) => artifact.state !== WorkbenchSpecificationArtifactState.NOT_LANDED).length,\n invalid: artifacts.filter((artifact) => artifact.state === WorkbenchSpecificationArtifactState.LANDED_INVALID).length,\n evaluatedAt: input.evaluatedAt,\n },\n };\n}\n"]}
@@ -0,0 +1,103 @@
1
+ /**
2
+ * The dev supervisor's compile state, read from the SAME artifact the supervisor keys on — so this
3
+ * gate and the thing that kills agent children under a rebuild can never disagree about whether a
4
+ * rebuild is happening (issue #265; the predicate was proven operationally before it was code:
5
+ * dispatch attempts launched behind an all-`ready` read completed, attempts launched on health
6
+ * checks alone died).
7
+ *
8
+ * ## Why agent spawns consult this at all
9
+ *
10
+ * An in-flight ACP agent child dies with every companion pause: its stdin closes on the supervisor's
11
+ * restart and the CLI exits 0 mid-turn — nine measured kills across two lanes on 2026-09-02/03. The
12
+ * supervisor's pauses are LEGITIMATE (a dependency really is recompiling), so the fix is not to
13
+ * fight them but to stop spawning minutes-long turns into a window that is already churning.
14
+ *
15
+ * ## Absent-tolerant by design
16
+ *
17
+ * The status file is a DEV-ORCHESTRATOR artifact. A standalone application install has no framework
18
+ * checkout, no watchers, and no churn — `readable: false` there means "nothing to wait for", never
19
+ * an error. Same for a malformed or mid-write read: this is a convenience gate, and a gate that can
20
+ * fail closed on its own parse error would refuse work over a JSON hiccup.
21
+ */
22
+ export interface DevCompileChurn {
23
+ /** False when no status artifact exists or it cannot be parsed — treat as quiet. */
24
+ readonly readable: boolean;
25
+ /** Package names currently NOT `ready` (compiling or failed). Empty when quiet. */
26
+ readonly busyPackages: readonly string[];
27
+ }
28
+ export declare function readDevCompileChurn(frameworkRepositoryRoot: string | null | undefined): DevCompileChurn;
29
+ /**
30
+ * Wait (bounded) for the dev tree to stop compiling before spawning a long agent turn.
31
+ *
32
+ * BOUNDED, and proceeding on timeout rather than refusing: this gate exists to raise the odds of a
33
+ * turn surviving, not to become a new way work is withheld. A tree that churns for the whole bound
34
+ * (a busy multi-session day) gets the same behavior as before this gate existed — the spawn happens
35
+ * and takes its chances — with the wait logged so a killed turn's post-mortem can see the gate did
36
+ * what it could.
37
+ */
38
+ export declare function waitForDevCompileQuiet(input: {
39
+ readonly frameworkRepositoryRoot: string | null | undefined;
40
+ readonly maximumWaitMs?: number;
41
+ readonly pollIntervalMs?: number;
42
+ readonly log?: (message: string, context?: Record<string, unknown>) => void;
43
+ }): Promise<{
44
+ readonly waitedMs: number;
45
+ readonly quiet: boolean;
46
+ }>;
47
+ /**
48
+ * Is this agent-child failure INFRASTRUCTURE-shaped — the environment taking the turn away — rather
49
+ * than the agent failing at its work?
50
+ *
51
+ * Deliberately a closed list of measured signatures, not a heuristic:
52
+ * - the exit-0 mid-turn kill (stdin closed under a companion pause — #121's diagnosed cause, and
53
+ * the shape behind nine 2026-09-02/03 kills);
54
+ * - the provider's own overload/transient answers (529 observed live on 2026-09-03; 429 is the same
55
+ * class), which reach us as a named ACP error since the JSON-RPC rejection carries its message.
56
+ *
57
+ * A signature NOT on this list is the agent's outcome and is never retried here — a wrong answer
58
+ * retried is spend; a refusal retried is worse.
59
+ */
60
+ export declare function isInfrastructureShapedAgentFailure(message: string): boolean;
61
+ /**
62
+ * Is this failure the provider ACCOUNT refusing to serve the turn — quota exhausted, or the
63
+ * operator's login expired — rather than a transient or the agent's own outcome?
64
+ *
65
+ * Kept SEPARATE from {@link isInfrastructureShapedAgentFailure} because the two demand opposite
66
+ * immediate treatment: a 529/kill is worth one retry in seconds, while an account condition has a
67
+ * HUMAN-SCALE remedy — a quota resets hours later, an expired login needs someone to run
68
+ * `claude login` — so retrying now is pure spend that fails identically. What the two share is the
69
+ * LATER treatment: both are the environment taking the turn away rather than the agent failing at
70
+ * its work, so both must preserve a choreography's checkpoint for a relaunch (measured 2026-09-03:
71
+ * a 56-minute, 14-successful-children compliance run hit the 5-hour session limit in iteration 11
72
+ * and the conclusion consumed the checkpoint, discarding every accumulated evidence brief).
73
+ *
74
+ * Closed list of measured signatures, same discipline as the sibling:
75
+ * - `ACP agent error -32603: Internal error: You've hit your session limit · resets 9:40pm (Europe/Paris)`
76
+ * - `ACP agent error -32603: Internal error: Failed to authenticate: OAuth session expired and
77
+ * could not be refreshed` (2026-09-04, first iteration of the relaunch — the interactive shell
78
+ * refreshed the same login fine minutes later; the minimal-env child could not)
79
+ */
80
+ export declare function isProviderAccountAgentFailure(message: string): boolean;
81
+ /**
82
+ * Did a concluded choreography END BY ENVIRONMENT — every child of its fatal iteration taken by
83
+ * infrastructure or quota — rather than reach a semantic conclusion?
84
+ *
85
+ * This is the predicate that decides whether the run's checkpoint survives its conclusion. The
86
+ * consuming rule ("a run that stopped because every child failed has still CONCLUDED") is right for
87
+ * a semantic failure: re-running would choose again over identical state. It is wrong when the
88
+ * children never got to do the work at all — that is the process-taken-away case the checkpoint
89
+ * exists for, arriving as child failures instead of a SIGTERM.
90
+ *
91
+ * Strict on purpose: ONE semantic failure among the fatal children means the next selection would
92
+ * see real information, so the conclusion stands and the checkpoint goes. An empty iteration list
93
+ * or a stop reason other than ALL_CHILDREN_FAILED is never environmental.
94
+ */
95
+ export declare function choreographyEndedByEnvironment(input: {
96
+ readonly stoppedBecause: string;
97
+ readonly iterations: ReadonlyArray<{
98
+ readonly children: ReadonlyArray<{
99
+ readonly failure?: string;
100
+ }>;
101
+ }>;
102
+ }): boolean;
103
+ //# sourceMappingURL=dev-compile-quiet.companion.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dev-compile-quiet.companion.d.ts","sourceRoot":"","sources":["../../../../../src/core/runtime/dev-compile-quiet.companion.ts"],"names":[],"mappings":"AAGA;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,MAAM,WAAW,eAAe;IAC9B,oFAAoF;IACpF,QAAQ,CAAC,QAAQ,EAAE,OAAO,CAAC;IAC3B,mFAAmF;IACnF,QAAQ,CAAC,YAAY,EAAE,SAAS,MAAM,EAAE,CAAC;CAC1C;AAID,wBAAgB,mBAAmB,CAAC,uBAAuB,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,GAAG,eAAe,CAevG;AAED;;;;;;;;GAQG;AACH,wBAAsB,sBAAsB,CAAC,KAAK,EAAE;IAClD,QAAQ,CAAC,uBAAuB,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IAC5D,QAAQ,CAAC,aAAa,CAAC,EAAE,MAAM,CAAC;IAChC,QAAQ,CAAC,cAAc,CAAC,EAAE,MAAM,CAAC;IACjC,QAAQ,CAAC,GAAG,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,KAAK,IAAI,CAAC;CAC7E,GAAG,OAAO,CAAC;IAAE,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,KAAK,EAAE,OAAO,CAAA;CAAE,CAAC,CAmBlE;AAED;;;;;;;;;;;;GAYG;AACH,wBAAgB,kCAAkC,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAI3E;AAED;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAgB,6BAA6B,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAKtE;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAgB,8BAA8B,CAAC,KAAK,EAAE;IACpD,QAAQ,CAAC,cAAc,EAAE,MAAM,CAAC;IAChC,QAAQ,CAAC,UAAU,EAAE,aAAa,CAAC;QAAE,QAAQ,CAAC,QAAQ,EAAE,aAAa,CAAC;YAAE,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,CAAA;SAAE,CAAC,CAAA;KAAE,CAAC,CAAC;CACzG,GAAG,OAAO,CASV"}
@@ -0,0 +1,124 @@
1
+ import { existsSync, readFileSync } from 'node:fs';
2
+ import { join } from 'node:path';
3
+ const DEV_COMPILE_STATUS_RELATIVE_PATH = '.wildo-runtime-signals/dev-compile-status.json';
4
+ export function readDevCompileChurn(frameworkRepositoryRoot) {
5
+ if (!frameworkRepositoryRoot)
6
+ return { readable: false, busyPackages: [] };
7
+ const statusPath = join(frameworkRepositoryRoot, DEV_COMPILE_STATUS_RELATIVE_PATH);
8
+ if (!existsSync(statusPath))
9
+ return { readable: false, busyPackages: [] };
10
+ try {
11
+ const parsed = JSON.parse(readFileSync(statusPath, 'utf8'));
12
+ const packages = parsed.packages ?? {};
13
+ const busyPackages = Object.entries(packages)
14
+ .filter(([, entry]) => String(entry?.status) !== 'ready')
15
+ .map(([name]) => name)
16
+ .sort();
17
+ return { readable: true, busyPackages };
18
+ }
19
+ catch {
20
+ return { readable: false, busyPackages: [] };
21
+ }
22
+ }
23
+ /**
24
+ * Wait (bounded) for the dev tree to stop compiling before spawning a long agent turn.
25
+ *
26
+ * BOUNDED, and proceeding on timeout rather than refusing: this gate exists to raise the odds of a
27
+ * turn surviving, not to become a new way work is withheld. A tree that churns for the whole bound
28
+ * (a busy multi-session day) gets the same behavior as before this gate existed — the spawn happens
29
+ * and takes its chances — with the wait logged so a killed turn's post-mortem can see the gate did
30
+ * what it could.
31
+ */
32
+ export async function waitForDevCompileQuiet(input) {
33
+ const maximumWaitMs = input.maximumWaitMs ?? 5 * 60 * 1000;
34
+ const pollIntervalMs = input.pollIntervalMs ?? 5000;
35
+ const startedAt = Date.now();
36
+ let churn = readDevCompileChurn(input.frameworkRepositoryRoot);
37
+ if (!churn.readable || churn.busyPackages.length === 0)
38
+ return { waitedMs: 0, quiet: true };
39
+ input.log?.('Deferring agent spawn: the dev tree is compiling', { busyPackages: churn.busyPackages.slice(0, 6) });
40
+ while (Date.now() - startedAt < maximumWaitMs) {
41
+ await new Promise((resolve) => setTimeout(resolve, pollIntervalMs));
42
+ churn = readDevCompileChurn(input.frameworkRepositoryRoot);
43
+ if (!churn.readable || churn.busyPackages.length === 0) {
44
+ const waitedMs = Date.now() - startedAt;
45
+ input.log?.('Dev tree quiet; spawning agent', { waitedMs });
46
+ return { waitedMs, quiet: true };
47
+ }
48
+ }
49
+ const waitedMs = Date.now() - startedAt;
50
+ input.log?.('Dev tree still compiling after the bound; spawning anyway', { waitedMs, busyPackages: churn.busyPackages.slice(0, 6) });
51
+ return { waitedMs, quiet: false };
52
+ }
53
+ /**
54
+ * Is this agent-child failure INFRASTRUCTURE-shaped — the environment taking the turn away — rather
55
+ * than the agent failing at its work?
56
+ *
57
+ * Deliberately a closed list of measured signatures, not a heuristic:
58
+ * - the exit-0 mid-turn kill (stdin closed under a companion pause — #121's diagnosed cause, and
59
+ * the shape behind nine 2026-09-02/03 kills);
60
+ * - the provider's own overload/transient answers (529 observed live on 2026-09-03; 429 is the same
61
+ * class), which reach us as a named ACP error since the JSON-RPC rejection carries its message.
62
+ *
63
+ * A signature NOT on this list is the agent's outcome and is never retried here — a wrong answer
64
+ * retried is spend; a refusal retried is worse.
65
+ */
66
+ export function isInfrastructureShapedAgentFailure(message) {
67
+ if (/Agent process exited before the turn completed/i.test(message))
68
+ return true;
69
+ if (/ACP agent error/.test(message) && /(529|429|Overloaded|overloaded_error|rate.?limit)/i.test(message))
70
+ return true;
71
+ return false;
72
+ }
73
+ /**
74
+ * Is this failure the provider ACCOUNT refusing to serve the turn — quota exhausted, or the
75
+ * operator's login expired — rather than a transient or the agent's own outcome?
76
+ *
77
+ * Kept SEPARATE from {@link isInfrastructureShapedAgentFailure} because the two demand opposite
78
+ * immediate treatment: a 529/kill is worth one retry in seconds, while an account condition has a
79
+ * HUMAN-SCALE remedy — a quota resets hours later, an expired login needs someone to run
80
+ * `claude login` — so retrying now is pure spend that fails identically. What the two share is the
81
+ * LATER treatment: both are the environment taking the turn away rather than the agent failing at
82
+ * its work, so both must preserve a choreography's checkpoint for a relaunch (measured 2026-09-03:
83
+ * a 56-minute, 14-successful-children compliance run hit the 5-hour session limit in iteration 11
84
+ * and the conclusion consumed the checkpoint, discarding every accumulated evidence brief).
85
+ *
86
+ * Closed list of measured signatures, same discipline as the sibling:
87
+ * - `ACP agent error -32603: Internal error: You've hit your session limit · resets 9:40pm (Europe/Paris)`
88
+ * - `ACP agent error -32603: Internal error: Failed to authenticate: OAuth session expired and
89
+ * could not be refreshed` (2026-09-04, first iteration of the relaunch — the interactive shell
90
+ * refreshed the same login fine minutes later; the minimal-env child could not)
91
+ */
92
+ export function isProviderAccountAgentFailure(message) {
93
+ if (!/ACP agent error/.test(message))
94
+ return false;
95
+ if (/(session limit|usage limit|hit your \S* ?limit)/i.test(message))
96
+ return true;
97
+ if (/Failed to authenticate|OAuth session expired/i.test(message))
98
+ return true;
99
+ return false;
100
+ }
101
+ /**
102
+ * Did a concluded choreography END BY ENVIRONMENT — every child of its fatal iteration taken by
103
+ * infrastructure or quota — rather than reach a semantic conclusion?
104
+ *
105
+ * This is the predicate that decides whether the run's checkpoint survives its conclusion. The
106
+ * consuming rule ("a run that stopped because every child failed has still CONCLUDED") is right for
107
+ * a semantic failure: re-running would choose again over identical state. It is wrong when the
108
+ * children never got to do the work at all — that is the process-taken-away case the checkpoint
109
+ * exists for, arriving as child failures instead of a SIGTERM.
110
+ *
111
+ * Strict on purpose: ONE semantic failure among the fatal children means the next selection would
112
+ * see real information, so the conclusion stands and the checkpoint goes. An empty iteration list
113
+ * or a stop reason other than ALL_CHILDREN_FAILED is never environmental.
114
+ */
115
+ export function choreographyEndedByEnvironment(input) {
116
+ if (input.stoppedBecause !== 'ALL_CHILDREN_FAILED')
117
+ return false;
118
+ const fatal = input.iterations[input.iterations.length - 1];
119
+ if (!fatal || fatal.children.length === 0)
120
+ return false;
121
+ return fatal.children.every((child) => child.failure !== undefined
122
+ && (isInfrastructureShapedAgentFailure(child.failure) || isProviderAccountAgentFailure(child.failure)));
123
+ }
124
+ //# sourceMappingURL=dev-compile-quiet.companion.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dev-compile-quiet.companion.js","sourceRoot":"","sources":["../../../../../src/core/runtime/dev-compile-quiet.companion.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AACnD,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AA8BjC,MAAM,gCAAgC,GAAG,gDAAgD,CAAC;AAE1F,MAAM,UAAU,mBAAmB,CAAC,uBAAkD;IACpF,IAAI,CAAC,uBAAuB;QAAE,OAAO,EAAE,QAAQ,EAAE,KAAK,EAAE,YAAY,EAAE,EAAE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AI,CAAC,OAAO,CAAC;QAAE,OAAO,IAAI,CAAC;IACjF,IAAI,iBAAiB,CAAC,IAAI,CAAC,OAAO,CAAC,IAAI,oDAAoD,CAAC,IAAI,CAAC,OAAO,CAAC;QAAE,OAAO,IAAI,CAAC;IACvH,OAAO,KAAK,CAAC;AACf,CAAC;AAED;;;;;;;;;;;;;;;;;;GAkBG;AACH,MAAM,UAAU,6BAA6B,CAAC,OAAe;IAC3D,IAAI,CAAC,iBAAiB,CAAC,IAAI,CAAC,OAAO,CAAC;QAAE,OAAO,KAAK,CAAC;IACnD,IAAI,kDAAkD,CAAC,IAAI,CAAC,OAAO,CAAC;QAAE,OAAO,IAAI,CAAC;IAClF,IAAI,+CAA+C,CAAC,IAAI,CAAC,OAAO,CAAC;QAAE,OAAO,IAAI,CAAC;IAC/E,OAAO,KAAK,CAAC;AACf,CAAC;AAED;;;;;;;;;;;;;GAaG;AACH,MAAM,UAAU,8BAA8B,CAAC,KAG9C;IACC,IAAI,KAAK,CAAC,cAAc,KAAK,qBAAqB;QAAE,OAAO,KAAK,CAAC;IACjE,MAAM,KAAK,GAAG,KAAK,CAAC,UAAU,CAAC,KAAK,CAAC,UAAU,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC;IAC5D,IAAI,CAAC,KAAK,IAAI,KAAK,CAAC,QAAQ,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO,KAAK,CAAC;IACxD,OAAO,KAAK,CAAC,QAAQ,CAAC,KAAK,CACzB,CAAC,KAAK,EAAE,EAAE,CACR,KAAK,CAAC,OAAO,KAAK,SAAS;WACxB,CAAC,kCAAkC,CAAC,KAAK,CAAC,OAAO,CAAC,IAAI,6BAA6B,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CACzG,CAAC;AACJ,CAAC","sourcesContent":["import { existsSync, readFileSync } from 'node:fs';\nimport { join } from 'node:path';\n\n/**\n * The dev supervisor's compile state, read from the SAME artifact the supervisor keys on — so this\n * gate and the thing that kills agent children under a rebuild can never disagree about whether a\n * rebuild is happening (issue #265; the predicate was proven operationally before it was code:\n * dispatch attempts launched behind an all-`ready` read completed, attempts launched on health\n * checks alone died).\n *\n * ## Why agent spawns consult this at all\n *\n * An in-flight ACP agent child dies with every companion pause: its stdin closes on the supervisor's\n * restart and the CLI exits 0 mid-turn — nine measured kills across two lanes on 2026-09-02/03. The\n * supervisor's pauses are LEGITIMATE (a dependency really is recompiling), so the fix is not to\n * fight them but to stop spawning minutes-long turns into a window that is already churning.\n *\n * ## Absent-tolerant by design\n *\n * The status file is a DEV-ORCHESTRATOR artifact. A standalone application install has no framework\n * checkout, no watchers, and no churn — `readable: false` there means \"nothing to wait for\", never\n * an error. Same for a malformed or mid-write read: this is a convenience gate, and a gate that can\n * fail closed on its own parse error would refuse work over a JSON hiccup.\n */\nexport interface DevCompileChurn {\n /** False when no status artifact exists or it cannot be parsed — treat as quiet. */\n readonly readable: boolean;\n /** Package names currently NOT `ready` (compiling or failed). Empty when quiet. */\n readonly busyPackages: readonly string[];\n}\n\nconst DEV_COMPILE_STATUS_RELATIVE_PATH = '.wildo-runtime-signals/dev-compile-status.json';\n\nexport function readDevCompileChurn(frameworkRepositoryRoot: string | null | undefined): DevCompileChurn {\n if (!frameworkRepositoryRoot) return { readable: false, busyPackages: [] };\n const statusPath = join(frameworkRepositoryRoot, DEV_COMPILE_STATUS_RELATIVE_PATH);\n if (!existsSync(statusPath)) return { readable: false, busyPackages: [] };\n try {\n const parsed = JSON.parse(readFileSync(statusPath, 'utf8')) as { packages?: Record<string, { status?: unknown }> };\n const packages = parsed.packages ?? {};\n const busyPackages = Object.entries(packages)\n .filter(([, entry]) => String(entry?.status) !== 'ready')\n .map(([name]) => name)\n .sort();\n return { readable: true, busyPackages };\n } catch {\n return { readable: false, busyPackages: [] };\n }\n}\n\n/**\n * Wait (bounded) for the dev tree to stop compiling before spawning a long agent turn.\n *\n * BOUNDED, and proceeding on timeout rather than refusing: this gate exists to raise the odds of a\n * turn surviving, not to become a new way work is withheld. A tree that churns for the whole bound\n * (a busy multi-session day) gets the same behavior as before this gate existed — the spawn happens\n * and takes its chances — with the wait logged so a killed turn's post-mortem can see the gate did\n * what it could.\n */\nexport async function waitForDevCompileQuiet(input: {\n readonly frameworkRepositoryRoot: string | null | undefined;\n readonly maximumWaitMs?: number;\n readonly pollIntervalMs?: number;\n readonly log?: (message: string, context?: Record<string, unknown>) => void;\n}): Promise<{ readonly waitedMs: number; readonly quiet: boolean }> {\n const maximumWaitMs = input.maximumWaitMs ?? 5 * 60 * 1000;\n const pollIntervalMs = input.pollIntervalMs ?? 5000;\n const startedAt = Date.now();\n let churn = readDevCompileChurn(input.frameworkRepositoryRoot);\n if (!churn.readable || churn.busyPackages.length === 0) return { waitedMs: 0, quiet: true };\n input.log?.('Deferring agent spawn: the dev tree is compiling', { busyPackages: churn.busyPackages.slice(0, 6) });\n while (Date.now() - startedAt < maximumWaitMs) {\n await new Promise((resolve) => setTimeout(resolve, pollIntervalMs));\n churn = readDevCompileChurn(input.frameworkRepositoryRoot);\n if (!churn.readable || churn.busyPackages.length === 0) {\n const waitedMs = Date.now() - startedAt;\n input.log?.('Dev tree quiet; spawning agent', { waitedMs });\n return { waitedMs, quiet: true };\n }\n }\n const waitedMs = Date.now() - startedAt;\n input.log?.('Dev tree still compiling after the bound; spawning anyway', { waitedMs, busyPackages: churn.busyPackages.slice(0, 6) });\n return { waitedMs, quiet: false };\n}\n\n/**\n * Is this agent-child failure INFRASTRUCTURE-shaped — the environment taking the turn away — rather\n * than the agent failing at its work?\n *\n * Deliberately a closed list of measured signatures, not a heuristic:\n * - the exit-0 mid-turn kill (stdin closed under a companion pause — #121's diagnosed cause, and\n * the shape behind nine 2026-09-02/03 kills);\n * - the provider's own overload/transient answers (529 observed live on 2026-09-03; 429 is the same\n * class), which reach us as a named ACP error since the JSON-RPC rejection carries its message.\n *\n * A signature NOT on this list is the agent's outcome and is never retried here — a wrong answer\n * retried is spend; a refusal retried is worse.\n */\nexport function isInfrastructureShapedAgentFailure(message: string): boolean {\n if (/Agent process exited before the turn completed/i.test(message)) return true;\n if (/ACP agent error/.test(message) && /(529|429|Overloaded|overloaded_error|rate.?limit)/i.test(message)) return true;\n return false;\n}\n\n/**\n * Is this failure the provider ACCOUNT refusing to serve the turn — quota exhausted, or the\n * operator's login expired — rather than a transient or the agent's own outcome?\n *\n * Kept SEPARATE from {@link isInfrastructureShapedAgentFailure} because the two demand opposite\n * immediate treatment: a 529/kill is worth one retry in seconds, while an account condition has a\n * HUMAN-SCALE remedy — a quota resets hours later, an expired login needs someone to run\n * `claude login` — so retrying now is pure spend that fails identically. What the two share is the\n * LATER treatment: both are the environment taking the turn away rather than the agent failing at\n * its work, so both must preserve a choreography's checkpoint for a relaunch (measured 2026-09-03:\n * a 56-minute, 14-successful-children compliance run hit the 5-hour session limit in iteration 11\n * and the conclusion consumed the checkpoint, discarding every accumulated evidence brief).\n *\n * Closed list of measured signatures, same discipline as the sibling:\n * - `ACP agent error -32603: Internal error: You've hit your session limit · resets 9:40pm (Europe/Paris)`\n * - `ACP agent error -32603: Internal error: Failed to authenticate: OAuth session expired and\n * could not be refreshed` (2026-09-04, first iteration of the relaunch — the interactive shell\n * refreshed the same login fine minutes later; the minimal-env child could not)\n */\nexport function isProviderAccountAgentFailure(message: string): boolean {\n if (!/ACP agent error/.test(message)) return false;\n if (/(session limit|usage limit|hit your \\S* ?limit)/i.test(message)) return true;\n if (/Failed to authenticate|OAuth session expired/i.test(message)) return true;\n return false;\n}\n\n/**\n * Did a concluded choreography END BY ENVIRONMENT — every child of its fatal iteration taken by\n * infrastructure or quota — rather than reach a semantic conclusion?\n *\n * This is the predicate that decides whether the run's checkpoint survives its conclusion. The\n * consuming rule (\"a run that stopped because every child failed has still CONCLUDED\") is right for\n * a semantic failure: re-running would choose again over identical state. It is wrong when the\n * children never got to do the work at all — that is the process-taken-away case the checkpoint\n * exists for, arriving as child failures instead of a SIGTERM.\n *\n * Strict on purpose: ONE semantic failure among the fatal children means the next selection would\n * see real information, so the conclusion stands and the checkpoint goes. An empty iteration list\n * or a stop reason other than ALL_CHILDREN_FAILED is never environmental.\n */\nexport function choreographyEndedByEnvironment(input: {\n readonly stoppedBecause: string;\n readonly iterations: ReadonlyArray<{ readonly children: ReadonlyArray<{ readonly failure?: string }> }>;\n}): boolean {\n if (input.stoppedBecause !== 'ALL_CHILDREN_FAILED') return false;\n const fatal = input.iterations[input.iterations.length - 1];\n if (!fatal || fatal.children.length === 0) return false;\n return fatal.children.every(\n (child) =>\n child.failure !== undefined\n && (isInfrastructureShapedAgentFailure(child.failure) || isProviderAccountAgentFailure(child.failure)),\n );\n}\n"]}
@@ -1,6 +1,9 @@
1
- import { I18nBackendService, HttpServerBackendService, MongoDBService, PostgreSQLDatabaseBackendService, RedisService, FileStorageRouterBackendService, ExternalProvidersRegistryBackendService, ObservabilityBackendService, WorkerShutdownManagerBackendService, FlowsActorsRegistryService, ControllersRegistryHandlerBackendService, ResourcesRegistryBackendService, ServicesRegistryHandlerBackendService, RepositoriesRegistryHandlerBackendService, type AbstractControllerBackendService, type ApplicationInitializationConfig, type AppConfiguration_BackendAuthored, type LoggerService } from '@wildo-ai/saas-backend-lib';
1
+ import { I18nBackendService, HttpServerBackendService, MongoDBService, PostgreSQLDatabaseBackendService, RedisService, FileStorageRouterBackendService, ExternalProvidersRegistryBackendService, ObservabilityBackendService, WorkerShutdownManagerBackendService, FlowsActorsRegistryService, ControllersRegistryHandlerBackendService, ResourcesRegistryBackendService, ServicesRegistryHandlerBackendService, RepositoriesRegistryHandlerBackendService, ResourceOperationCustomImplementationRegistryBackendService, type AbstractControllerBackendService, type ApplicationInitializationConfig, type AppConfiguration_BackendAuthored, type LoggerService } from '@wildo-ai/saas-backend-lib';
2
2
  import { type PlatformAppConfigInitializerService } from '@wildo-ai/platform-shared-lib';
3
3
  import type { SaasRuntimeProvidersArtifact } from '@wildo-ai/platform-config-lib';
4
+ import { IntrospectionSourceWatcherCompanionService } from '../../introspection/services/introspection-source-watcher.companion.service';
5
+ import { IntrospectionResourceNotifierCompanionService } from '../../introspection/resources/introspection-resource-notifier.companion.service';
6
+ import { IntrospectionResourceSourceCompanionService } from '../../introspection/resources/introspection-resource-source.companion.service';
4
7
  import { CompanionAuthFloorCompanionService } from '../../auth/companion-auth-floor.companion.service';
5
8
  import type { CompanionContext } from '../../context/companion-context';
6
9
  import { CompanionStartupCompositionFence } from '../companion-startup-composition-fence';
@@ -41,12 +44,16 @@ export declare class StartCompanionApplicationService {
41
44
  private readonly featuresController;
42
45
  private readonly i18nService;
43
46
  private readonly servicesRegistryService;
47
+ private readonly customImplRegistry;
44
48
  private readonly repositoriesRegistryService;
45
49
  private readonly appConfigInitializer;
46
50
  private readonly companionContext;
47
51
  private readonly authFloorService;
48
52
  private readonly startupCompositionFence;
49
53
  private readonly codingAgentDispatchService;
54
+ private readonly introspectionSourceWatcher;
55
+ private readonly introspectionResourceNotifier;
56
+ private readonly introspectionResourceSource;
50
57
  private readonly logDebug;
51
58
  private readonly readinessObservationProducerInstanceId;
52
59
  private readinessObservationHeartbeat;
@@ -54,7 +61,7 @@ export declare class StartCompanionApplicationService {
54
61
  private shutdownLifecycleRegistered;
55
62
  constructor(logger: LoggerService, httpServerService: HttpServerBackendService, mongoDBService: MongoDBService, postgresqlDatabaseService: PostgreSQLDatabaseBackendService, redisService: RedisService, fileStorageRouter: FileStorageRouterBackendService, backendProviderRegistryService: {
56
63
  initialize(registry?: unknown): void;
57
- }, externalProvidersRegistryService: ExternalProvidersRegistryBackendService, observabilityBackendService: ObservabilityBackendService, workerShutdownManager: WorkerShutdownManagerBackendService, flowsActorsRegistryService: FlowsActorsRegistryService, resourcesRegistryService: ResourcesRegistryBackendService, controllersRegistryService: ControllersRegistryHandlerBackendService, i18nController: AbstractControllerBackendService, applicationConfigController: AbstractControllerBackendService, authenticationController: AbstractControllerBackendService, featuresController: AbstractControllerBackendService, i18nService: I18nBackendService, servicesRegistryService: ServicesRegistryHandlerBackendService, repositoriesRegistryService: RepositoriesRegistryHandlerBackendService, appConfigInitializer: PlatformAppConfigInitializerService, companionContext: CompanionContext, authFloorService: CompanionAuthFloorCompanionService, startupCompositionFence: CompanionStartupCompositionFence, codingAgentDispatchService: CodingAgentDispatchCompanionService);
64
+ }, externalProvidersRegistryService: ExternalProvidersRegistryBackendService, observabilityBackendService: ObservabilityBackendService, workerShutdownManager: WorkerShutdownManagerBackendService, flowsActorsRegistryService: FlowsActorsRegistryService, resourcesRegistryService: ResourcesRegistryBackendService, controllersRegistryService: ControllersRegistryHandlerBackendService, i18nController: AbstractControllerBackendService, applicationConfigController: AbstractControllerBackendService, authenticationController: AbstractControllerBackendService, featuresController: AbstractControllerBackendService, i18nService: I18nBackendService, servicesRegistryService: ServicesRegistryHandlerBackendService, customImplRegistry: ResourceOperationCustomImplementationRegistryBackendService, repositoriesRegistryService: RepositoriesRegistryHandlerBackendService, appConfigInitializer: PlatformAppConfigInitializerService, companionContext: CompanionContext, authFloorService: CompanionAuthFloorCompanionService, startupCompositionFence: CompanionStartupCompositionFence, codingAgentDispatchService: CodingAgentDispatchCompanionService, introspectionSourceWatcher: IntrospectionSourceWatcherCompanionService, introspectionResourceNotifier: IntrospectionResourceNotifierCompanionService, introspectionResourceSource: IntrospectionResourceSourceCompanionService);
58
65
  /**
59
66
  * Initialize the companion application using the typed config object.
60
67
  */
@@ -142,6 +149,21 @@ export declare class StartCompanionApplicationService {
142
149
  */
143
150
  private initializePlatformRuntimeDependencies;
144
151
  private initializePlatformHttpServer;
152
+ /**
153
+ * Start the plane that keeps introspection derivations current WITHOUT a reader asking.
154
+ *
155
+ * Ordered after the WebSocket server on purpose: the notifier's whole output is a socket emit, and
156
+ * starting it before the server exists would give it a window in which a recompilation is computed
157
+ * and then silently dropped.
158
+ *
159
+ * Failure here is NON-FATAL, and that is the important part. Everything this plane does is a
160
+ * latency and freshness improvement over a path that still works without it: with no watcher the
161
+ * derivation state stays in per-read observation, which is exactly the behaviour issue #159
162
+ * shipped. A companion that refuses to boot because a directory could not be watched would trade a
163
+ * slow workbench for no workbench — and the remedy for that would need the companion this failure
164
+ * just prevented from starting (`continuity-drift-and-cas-basis.md` Rule 3).
165
+ */
166
+ private startIntrospectionFreshnessPlane;
145
167
  /**
146
168
  * Generated CRUD routes for the WORKBENCH resources — and for nothing else.
147
169
  *
@@ -206,6 +228,21 @@ export declare class StartCompanionApplicationService {
206
228
  * logger, error builder and services as everything else in this process.
207
229
  */
208
230
  private resolveFrontendSupportControllers;
231
+ /**
232
+ * The creation-plane CONTROL resources the workbench consumes AS resources.
233
+ *
234
+ * These are the platform's own control-plane rows — the actor tasks and executions the companion
235
+ * itself writes (repository-direct) during playbook runs and coding dispatches. Their configs are
236
+ * shared platform vocabulary (`wildo-application-tasks` / `wildo-application-executions` in
237
+ * `@wildo-ai/platform-core-shared`), whose READ/LIST became ORG_MEMBER-gated API variants on
238
+ * 2026-09-01 precisely for this consumption (the decision is recorded on
239
+ * `createOrgMemberReadApiVariant` in those files). Writes remain repository-only; mounting here opens
240
+ * READ/LIST doors and nothing else.
241
+ *
242
+ * A hand list rather than a derivation, deliberately: consuming a control-plane type is a
243
+ * per-type DECISION (each one widens an HTTP surface), not a population to sweep.
244
+ */
245
+ private static readonly CREATION_CONTROL_PLANE_RESOURCE_TYPES;
209
246
  private initializeWorkbenchResourceControllers;
210
247
  private registerCustomControllers;
211
248
  /** Transport liveness only; semantic readiness is exposed separately below. */
@@ -1 +1 @@
1
- {"version":3,"file":"start-companion-application.service.d.ts","sourceRoot":"","sources":["../../../../../../src/core/runtime/services/start-companion-application.service.ts"],"names":[],"mappings":"AAIA,OAAO,EACL,kBAAkB,EAElB,wBAAwB,EACxB,cAAc,EACd,gCAAgC,EAChC,YAAY,EACZ,+BAA+B,EAC/B,uCAAuC,EACvC,2BAA2B,EAC3B,mCAAmC,EACnC,0BAA0B,EAC1B,wCAAwC,EACxC,+BAA+B,EAC/B,qCAAqC,EACrC,yCAAyC,EAGzC,KAAK,gCAAgC,EACrC,KAAK,+BAA+B,EACpC,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E/B,uBAAuB,EAAE,qCAAqC,EAE9D,2BAA2B,EAAE,yCAAyC,EAEtE,oBAAoB,EAAE,mCAAmC,EAEzD,gBAAgB,EAAE,gBAAgB,EAElC,gBAAgB,EAAE,kCAAkC,EAEpD,uBAAuB,EAAE,gCAAgC,EAEzD,0BAA0B,EAAE,mCAAmC;IAMlF;;OAEG;IACU,UAAU,CAAC,MAAM,EAAE,sBAAsB,GAAG,OAAO,CAAC,IAAI,CAAC;YA+HxD,sCAAsC;IA6CpD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAsCG;YACW,2CAA2C;IA0BzD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA6BG;YACW,iCAAiC;YAkHjC,uCAAuC;YAOvC,8BAA8B;IAO5C;;;;;;OAMG;YACW,qCAAqC;YAmCrC,4BAA4B;IA4B1C;;;;;;;;;;;;;;;;;;;;;OAqBG;IACH;;;;;;;;;;;OAWG;IACH,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,uCAAuC,CAG7D;IAEF;;;;;;;;;;;;;;;;;;;;;;;;;;;OA2BG;IACH,OAAO,CAAC,iCAAiC;YAiC3B,sCAAsC;YA+DtC,yBAAyB;IAMvC,+EAA+E;IACxE,mBAAmB,IAAI,OAAO;IAIrC;;;;OAIG;IACI,4BAA4B,IAAI,OAAO;IAIvC,aAAa,IAAI,MAAM,GAAG,IAAI;IAIrC;;;;;;;;;OASG;IACH,OAAO,CAAC,gCAAgC;IAkDxC,OAAO,CAAC,8BAA8B;IAWtC;;;;;;OAMG;IACH,OAAO,CAAC,kCAAkC;IAsB1C,4FAA4F;YAC9E,sBAAsB;CAiBrC"}
1
+ {"version":3,"file":"start-companion-application.service.d.ts","sourceRoot":"","sources":["../../../../../../src/core/runtime/services/start-companion-application.service.ts"],"names":[],"mappings":"AAIA,OAAO,EACL,kBAAkB,EAElB,wBAAwB,EACxB,cAAc,EACd,gCAAgC,EAChC,YAAY,EACZ,+BAA+B,EAC/B,uCA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