@wildo-ai/dev-companion 1.1.14 → 1.1.15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (138) hide show
  1. package/dist/esm/.tsbuildinfo +1 -1
  2. package/dist/esm/claude-cli/models/coding-agent-dispatch.models.d.ts +68 -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 +77 -5
  5. package/dist/esm/claude-cli/models/coding-agent-dispatch.models.js.map +1 -1
  6. package/dist/esm/claude-cli/models/concurrent-coding-runs.models.d.ts +46 -1
  7. package/dist/esm/claude-cli/models/concurrent-coding-runs.models.d.ts.map +1 -1
  8. package/dist/esm/claude-cli/models/concurrent-coding-runs.models.js +39 -2
  9. package/dist/esm/claude-cli/models/concurrent-coding-runs.models.js.map +1 -1
  10. package/dist/esm/claude-cli/models/shared-tree-reconciliation.models.d.ts +6 -0
  11. package/dist/esm/claude-cli/models/shared-tree-reconciliation.models.d.ts.map +1 -1
  12. package/dist/esm/claude-cli/models/shared-tree-reconciliation.models.js.map +1 -1
  13. package/dist/esm/claude-cli/models/verification-tool-availability.models.d.ts +19 -5
  14. package/dist/esm/claude-cli/models/verification-tool-availability.models.d.ts.map +1 -1
  15. package/dist/esm/claude-cli/models/verification-tool-availability.models.js +17 -5
  16. package/dist/esm/claude-cli/models/verification-tool-availability.models.js.map +1 -1
  17. package/dist/esm/claude-cli/services/accepted-change-commit.companion.service.d.ts +16 -1
  18. package/dist/esm/claude-cli/services/accepted-change-commit.companion.service.d.ts.map +1 -1
  19. package/dist/esm/claude-cli/services/accepted-change-commit.companion.service.js +44 -4
  20. package/dist/esm/claude-cli/services/accepted-change-commit.companion.service.js.map +1 -1
  21. package/dist/esm/claude-cli/services/coding-agent-dispatch.companion.service.d.ts +79 -6
  22. package/dist/esm/claude-cli/services/coding-agent-dispatch.companion.service.d.ts.map +1 -1
  23. package/dist/esm/claude-cli/services/coding-agent-dispatch.companion.service.js +291 -40
  24. package/dist/esm/claude-cli/services/coding-agent-dispatch.companion.service.js.map +1 -1
  25. package/dist/esm/claude-cli/services/research-evidence-store.companion.d.ts +14 -0
  26. package/dist/esm/claude-cli/services/research-evidence-store.companion.d.ts.map +1 -1
  27. package/dist/esm/claude-cli/services/research-evidence-store.companion.js +35 -0
  28. package/dist/esm/claude-cli/services/research-evidence-store.companion.js.map +1 -1
  29. package/dist/esm/claude-cli/services/unrecorded-provider-directories.companion.d.ts +36 -0
  30. package/dist/esm/claude-cli/services/unrecorded-provider-directories.companion.d.ts.map +1 -0
  31. package/dist/esm/claude-cli/services/unrecorded-provider-directories.companion.js +134 -0
  32. package/dist/esm/claude-cli/services/unrecorded-provider-directories.companion.js.map +1 -0
  33. package/dist/esm/core/introspection/services/translation-placement.companion.service.d.ts +3 -2
  34. package/dist/esm/core/introspection/services/translation-placement.companion.service.d.ts.map +1 -1
  35. package/dist/esm/core/introspection/services/translation-placement.companion.service.js.map +1 -1
  36. package/dist/esm/core/introspection/subprocess/companion-introspection-behavior-handlers.d.ts.map +1 -1
  37. package/dist/esm/core/introspection/subprocess/companion-introspection-behavior-handlers.js +24 -14
  38. package/dist/esm/core/introspection/subprocess/companion-introspection-behavior-handlers.js.map +1 -1
  39. package/dist/esm/core/introspection/workspace-element-index.companion.d.ts +42 -0
  40. package/dist/esm/core/introspection/workspace-element-index.companion.d.ts.map +1 -1
  41. package/dist/esm/core/introspection/workspace-element-index.companion.js +42 -0
  42. package/dist/esm/core/introspection/workspace-element-index.companion.js.map +1 -1
  43. package/dist/esm/core/runtime/dev-compile-quiet.companion.d.ts +53 -0
  44. package/dist/esm/core/runtime/dev-compile-quiet.companion.d.ts.map +1 -1
  45. package/dist/esm/core/runtime/dev-compile-quiet.companion.js +119 -2
  46. package/dist/esm/core/runtime/dev-compile-quiet.companion.js.map +1 -1
  47. package/dist/esm/core/runtime/services/start-companion-application.service.d.ts.map +1 -1
  48. package/dist/esm/core/runtime/services/start-companion-application.service.js +13 -1
  49. package/dist/esm/core/runtime/services/start-companion-application.service.js.map +1 -1
  50. package/dist/esm/core/runtime/utils/companion-platform-config.companion.d.ts +2 -2
  51. package/dist/esm/core/runtime/utils/companion-platform-config.companion.d.ts.map +1 -1
  52. package/dist/esm/core/runtime/utils/companion-platform-config.companion.js +6 -6
  53. package/dist/esm/core/runtime/utils/companion-platform-config.companion.js.map +1 -1
  54. package/dist/esm/email/services/email-template.companion.service.d.ts +5 -0
  55. package/dist/esm/email/services/email-template.companion.service.d.ts.map +1 -1
  56. package/dist/esm/email/services/email-template.companion.service.js +44 -11
  57. package/dist/esm/email/services/email-template.companion.service.js.map +1 -1
  58. package/dist/esm/email/utils/email-template-fs-discovery.utils.d.ts +26 -2
  59. package/dist/esm/email/utils/email-template-fs-discovery.utils.d.ts.map +1 -1
  60. package/dist/esm/email/utils/email-template-fs-discovery.utils.js +41 -2
  61. package/dist/esm/email/utils/email-template-fs-discovery.utils.js.map +1 -1
  62. package/dist/esm/email/utils/email-template-scanner-calls.companion.utils.d.ts +19 -0
  63. package/dist/esm/email/utils/email-template-scanner-calls.companion.utils.d.ts.map +1 -0
  64. package/dist/esm/email/utils/email-template-scanner-calls.companion.utils.js +171 -0
  65. package/dist/esm/email/utils/email-template-scanner-calls.companion.utils.js.map +1 -0
  66. package/dist/esm/email/utils/module-email-root.companion.utils.d.ts +75 -0
  67. package/dist/esm/email/utils/module-email-root.companion.utils.d.ts.map +1 -0
  68. package/dist/esm/email/utils/module-email-root.companion.utils.js +162 -0
  69. package/dist/esm/email/utils/module-email-root.companion.utils.js.map +1 -0
  70. package/dist/esm/i18n/components/LOW_LEVEL_AI_AGENT_CONFIG.en.d.ts +1 -0
  71. package/dist/esm/i18n/components/LOW_LEVEL_AI_AGENT_CONFIG.en.d.ts.map +1 -1
  72. package/dist/esm/i18n/components/LOW_LEVEL_AI_AGENT_CONFIG.en.js +1 -0
  73. package/dist/esm/i18n/components/LOW_LEVEL_AI_AGENT_CONFIG.en.js.map +1 -1
  74. package/dist/esm/i18n/components/LOW_LEVEL_AI_AGENT_CONFIG.fr.d.ts +1 -0
  75. package/dist/esm/i18n/components/LOW_LEVEL_AI_AGENT_CONFIG.fr.d.ts.map +1 -1
  76. package/dist/esm/i18n/components/LOW_LEVEL_AI_AGENT_CONFIG.fr.js +1 -0
  77. package/dist/esm/i18n/components/LOW_LEVEL_AI_AGENT_CONFIG.fr.js.map +1 -1
  78. package/dist/esm/i18n/resources/workbenchAspects.en.d.ts.map +1 -1
  79. package/dist/esm/i18n/resources/workbenchAspects.en.js +4 -0
  80. package/dist/esm/i18n/resources/workbenchAspects.en.js.map +1 -1
  81. package/dist/esm/i18n/resources/workbenchSpecificationArtifacts.en.d.ts +35 -0
  82. package/dist/esm/i18n/resources/workbenchSpecificationArtifacts.en.d.ts.map +1 -1
  83. package/dist/esm/i18n/resources/workbenchSpecificationArtifacts.en.js +12 -0
  84. package/dist/esm/i18n/resources/workbenchSpecificationArtifacts.en.js.map +1 -1
  85. package/dist/esm/i18n/resources/workbenchSpecificationArtifacts.fr.d.ts +536 -531
  86. package/dist/esm/i18n/resources/workbenchSpecificationArtifacts.fr.d.ts.map +1 -1
  87. package/dist/esm/i18n/resources/workbenchSpecificationArtifacts.fr.js +536 -531
  88. package/dist/esm/i18n/resources/workbenchSpecificationArtifacts.fr.js.map +1 -1
  89. package/dist/esm/i18n/system_enums/workbench-build.en.d.ts +2 -2
  90. package/dist/esm/i18n/system_enums/workbench-build.en.js +2 -2
  91. package/dist/esm/i18n/system_enums/workbench-build.en.js.map +1 -1
  92. package/dist/esm/i18n-labelling/services/email-template-labelling-units.companion.service.d.ts.map +1 -1
  93. package/dist/esm/i18n-labelling/services/email-template-labelling-units.companion.service.js +7 -3
  94. package/dist/esm/i18n-labelling/services/email-template-labelling-units.companion.service.js.map +1 -1
  95. package/dist/esm/meta-workflows/models/creation-journey-timeline.models.d.ts +9 -0
  96. package/dist/esm/meta-workflows/models/creation-journey-timeline.models.d.ts.map +1 -1
  97. package/dist/esm/meta-workflows/models/creation-journey-timeline.models.js +18 -2
  98. package/dist/esm/meta-workflows/models/creation-journey-timeline.models.js.map +1 -1
  99. package/dist/esm/meta-workflows/services/application-build-dispatch.companion.service.d.ts +33 -6
  100. package/dist/esm/meta-workflows/services/application-build-dispatch.companion.service.d.ts.map +1 -1
  101. package/dist/esm/meta-workflows/services/application-build-dispatch.companion.service.js +97 -19
  102. package/dist/esm/meta-workflows/services/application-build-dispatch.companion.service.js.map +1 -1
  103. package/dist/esm/meta-workflows/services/application-build-follow-up-derivation.companion.d.ts +21 -8
  104. package/dist/esm/meta-workflows/services/application-build-follow-up-derivation.companion.d.ts.map +1 -1
  105. package/dist/esm/meta-workflows/services/application-build-follow-up-derivation.companion.js +65 -12
  106. package/dist/esm/meta-workflows/services/application-build-follow-up-derivation.companion.js.map +1 -1
  107. package/dist/esm/meta-workflows/services/application-build-task-coding-policy.companion.service.d.ts +1 -1
  108. package/dist/esm/meta-workflows/services/application-build-task-coding-policy.companion.service.d.ts.map +1 -1
  109. package/dist/esm/meta-workflows/services/application-build-task-coding-policy.companion.service.js +48 -26
  110. package/dist/esm/meta-workflows/services/application-build-task-coding-policy.companion.service.js.map +1 -1
  111. package/dist/esm/meta-workflows/services/build-task-brief-application-facts.companion.d.ts +12 -0
  112. package/dist/esm/meta-workflows/services/build-task-brief-application-facts.companion.d.ts.map +1 -1
  113. package/dist/esm/meta-workflows/services/build-task-brief-application-facts.companion.js +30 -1
  114. package/dist/esm/meta-workflows/services/build-task-brief-application-facts.companion.js.map +1 -1
  115. package/dist/esm/meta-workflows/services/creation-run-report.companion.service.d.ts.map +1 -1
  116. package/dist/esm/meta-workflows/services/creation-run-report.companion.service.js +12 -1
  117. package/dist/esm/meta-workflows/services/creation-run-report.companion.service.js.map +1 -1
  118. package/dist/esm/meta-workflows/services/playbook-run.companion.service.d.ts +7 -0
  119. package/dist/esm/meta-workflows/services/playbook-run.companion.service.d.ts.map +1 -1
  120. package/dist/esm/meta-workflows/services/playbook-run.companion.service.js +81 -4
  121. package/dist/esm/meta-workflows/services/playbook-run.companion.service.js.map +1 -1
  122. package/dist/esm/meta-workflows/services/provider-registry-brief.companion.utils.d.ts +55 -1
  123. package/dist/esm/meta-workflows/services/provider-registry-brief.companion.utils.d.ts.map +1 -1
  124. package/dist/esm/meta-workflows/services/provider-registry-brief.companion.utils.js +157 -10
  125. package/dist/esm/meta-workflows/services/provider-registry-brief.companion.utils.js.map +1 -1
  126. package/dist/esm/module-layout/module-layout-convention.companion.d.ts +158 -0
  127. package/dist/esm/module-layout/module-layout-convention.companion.d.ts.map +1 -0
  128. package/dist/esm/module-layout/module-layout-convention.companion.js +272 -0
  129. package/dist/esm/module-layout/module-layout-convention.companion.js.map +1 -0
  130. package/dist/esm/module-layout/module-layout-inspection.companion.d.ts +42 -0
  131. package/dist/esm/module-layout/module-layout-inspection.companion.d.ts.map +1 -0
  132. package/dist/esm/module-layout/module-layout-inspection.companion.js +290 -0
  133. package/dist/esm/module-layout/module-layout-inspection.companion.js.map +1 -0
  134. package/dist/esm/module-layout/module-source-files.companion.d.ts +3 -0
  135. package/dist/esm/module-layout/module-source-files.companion.d.ts.map +1 -0
  136. package/dist/esm/module-layout/module-source-files.companion.js +45 -0
  137. package/dist/esm/module-layout/module-source-files.companion.js.map +1 -0
  138. package/package.json +17 -17
@@ -14,7 +14,7 @@ var PlaybookRunCompanionService_1;
14
14
  import { withApplicationDeclaredAnswers } from './declared-interview-answers.companion.js';
15
15
  import { declaredLandingScopeOf, generateChoreographyStepValue } from './choreography-step-generation.companion.js';
16
16
  import { composeExternalAuthenticationBrief } from './external-authentication-brief.companion.utils.js';
17
- import { isRegistryProviderInstalled, listRegistryProviderModules, renderProviderRegistryBrief } from './provider-registry-brief.companion.utils.js';
17
+ import { collectKnownProviderRefs, engineProviderOffers, isRegistryProviderInstalled, listRegistryProviderModules, renderProviderRegistryBrief } from './provider-registry-brief.companion.utils.js';
18
18
  import { z } from 'zod';
19
19
  import { ResearchAgentDispatchCompanionService } from '../../claude-cli/services/research-agent-dispatch.companion.service.js';
20
20
  import { diffResearchEvidence, resolveResearchEvidenceDirectory, snapshotResearchEvidence } from '../../claude-cli/services/research-evidence-store.companion.js';
@@ -35,7 +35,7 @@ import { companionRestartDrain } from '../../core/runtime/restart-drain.companio
35
35
  import { gitReadBroker } from '../../core/utils/git-read-broker.companion.js';
36
36
  import { getFrameworkKnowledgePlaybook, listFrameworkKnowledgePlaybooks, listFrameworkKnowledgeSkillSummaries, readCompiledResearchInformedContent, readFrameworkKnowledgeSkillBody } from '@wildo-ai/framework-knowledge';
37
37
  import { MetaWorkflow_EvaluationTreatmentDefinitionSchema, MetaWorkflow_EvaluationVerdict, MetaWorkflow_Executor, MetaWorkflow_ClarificationAction, } from '@wildo-ai/saas-models/meta-workflows';
38
- import { APPLICATION_SPECIFICATION_SEMANTIC_SCHEMA_BINDINGS, composeElicitationSection, dispatchOutcomeStepRef, BUILD_DECOMPOSE_INPUT_FAMILIES, STANDARD_APPLICATION_SPECIFICATION_SEMANTIC_AUTHORITY, evaluatePlaybookCatalogEligibility, buildApplicationCoherenceReport, collectHeldDraftUndeclaredFactCitations, composeAssuranceDocumentBlueprintBrief, composeAssuranceDocumentFactObligationsBrief, renderAssuranceDocumentClaimGuardsForJudge, composeAssuranceEvidenceBrief, composeAuthoredDocumentFactsBrief, composeAssuranceProgramAuthorityBrief, composeApplicationRoleGraphBrief, deriveOneFamilyFreshness, resolveStepOutputSchema, runPlaybookChoreography, countCheckpointedRounds, describeStaleOutput, describePlaybookRerun, measureChangedAspects, PlaybookLaneBoundaryDecision, collectPlaybookLaneBoundaries, isJudgeVerdictStepRef, buildPlaybookReviewGuide, evaluatePlaybookEligibility, applicationLineRefusalOf, getFamilyPackageRelativePath, resolvePlaybookOutputLandingTarget, getLandableArtifactFamilies, isPlaybookGenerationSuspension, renderApplicationCoherenceReport, renderDeclaredInputFamily, composeDeclaredInputWithheldAspects, composeMarketFitScoresSection, composeRiskSignalsSection, widenDeclaredInputAspects, ARTIFACT_PRESENT_WITHOUT_VALUE, collectConvenedExpertRoles, committedCharterRoleRefs, partitionUnstaffedExpertRoles, rederivableExpertRoleRefs, renderPlaybookReviewGuide, runPlaybookGeneration, readPlaybookOutputLandingBaselines, PlaybookOutputLandingConflictError, PlaybookOutputLandingHeldError, SpecificationWriteRefusedError, writeSpecificationFileAtomicallySync, DEFAULT_MAXIMUM_CLARIFICATION_ROUNDS, accumulateClarificationRequests, validateClarificationAnswers, composeClarificationAnswersSection, runPlaybookJudge, runPlaybookLoop, PlaybookGenerationPurpose, composeBillingCommercialModelBrief, composeOperatingJurisdictionCoverageBrief, composeOperatingJurisdictionsSection, composeCreatorStatedFactsSection, projectPlaybookElicitationAsDecision, answersNoLongerOffered, materializeElicitationOptions, readAnswersForPlaybookQuestions, readNonAnswersForPlaybookQuestions, resolveElicitationAnswers, resolveElicitationNonAnswers, buildCreatorInputLatestReadAnswerByPlaybook, resolveApplicationLineScope, collectFamiliesDeactivatedByDecisions, isFamilyNotApplicable, describeApplicationActiveSet, narrowRefinementRound, refinementDependencyMaps, LANDED_SPECIFICATION_CONSTANT_PREFIX, findReadersDatedByWaitingInterviews, selectInterviewsWaitingOnThePerson, readInterviewDepthFromState, PlaybookRerunKind, } from '@wildo-ai/application-creation-runtime';
38
+ import { APPLICATION_SPECIFICATION_SEMANTIC_SCHEMA_BINDINGS, composeElicitationSection, dispatchOutcomeStepRef, BUILD_DECOMPOSE_INPUT_FAMILIES, STANDARD_APPLICATION_SPECIFICATION_SEMANTIC_AUTHORITY, evaluatePlaybookCatalogEligibility, buildApplicationCoherenceReport, collectHeldDraftUndeclaredFactCitations, composeAssuranceDocumentBlueprintBrief, composeAssuranceDocumentFactObligationsBrief, renderAssuranceDocumentClaimGuardsForJudge, composeAssuranceEvidenceBrief, composeAuthoredDocumentFactsBrief, composeAssuranceProgramAuthorityBrief, composeApplicationRoleGraphBrief, deriveOneFamilyFreshness, resolveStepOutputSchema, runPlaybookChoreography, countCheckpointedRounds, describeStaleOutput, describePlaybookRerun, measureChangedAspects, PlaybookLaneBoundaryDecision, collectPlaybookLaneBoundaries, isJudgeVerdictStepRef, buildPlaybookReviewGuide, evaluatePlaybookEligibility, applicationLineRefusalOf, getFamilyPackageRelativePath, resolvePlaybookOutputLandingTarget, resolveDeclaredSetMembers, getLandableArtifactFamilies, isPlaybookGenerationSuspension, renderApplicationCoherenceReport, renderDeclaredInputFamily, composeDeclaredInputWithheldAspects, composeMarketFitScoresSection, composeRiskSignalsSection, widenDeclaredInputAspects, ARTIFACT_PRESENT_WITHOUT_VALUE, collectConvenedExpertRoles, committedCharterRoleRefs, partitionUnstaffedExpertRoles, rederivableExpertRoleRefs, renderPlaybookReviewGuide, runPlaybookGeneration, readPlaybookOutputLandingBaselines, PlaybookOutputLandingConflictError, PlaybookOutputLandingHeldError, SpecificationWriteRefusedError, writeSpecificationFileAtomicallySync, DEFAULT_MAXIMUM_CLARIFICATION_ROUNDS, accumulateClarificationRequests, validateClarificationAnswers, composeClarificationAnswersSection, runPlaybookJudge, runPlaybookLoop, PlaybookGenerationPurpose, composeBillingCommercialModelBrief, composeOperatingJurisdictionCoverageBrief, composeOperatingJurisdictionsSection, composeCreatorStatedFactsSection, projectPlaybookElicitationAsDecision, answersNoLongerOffered, materializeElicitationOptions, readAnswersForPlaybookQuestions, readNonAnswersForPlaybookQuestions, resolveElicitationAnswers, resolveElicitationNonAnswers, buildCreatorInputLatestReadAnswerByPlaybook, resolveApplicationLineScope, collectFamiliesDeactivatedByDecisions, isFamilyNotApplicable, describeApplicationActiveSet, narrowRefinementRound, refinementDependencyMaps, LANDED_SPECIFICATION_CONSTANT_PREFIX, findReadersDatedByWaitingInterviews, selectInterviewsWaitingOnThePerson, readInterviewDepthFromState, PlaybookRerunKind, } from '@wildo-ai/application-creation-runtime';
39
39
  // The provider REGISTRY, not the engine map: importing the package root runs its bootstrap, which
40
40
  // registers the engine specifications, and an application's own registered provider specifications
41
41
  // join the same registry — so one accessor covers both authorities.
@@ -48,7 +48,7 @@ import { SAAS_SERVICE_TYPES } from '@wildo-ai/saas-backend-lib';
48
48
  import { getCompanionServedLanguages } from '../../core/config/primary-language.companion.utils.js';
49
49
  import { partitionCapabilitiesByContractedService, secondaryLineDefinitionOfEntry, ApplicationSpecificationFamily, JourneyArtifactValidationState, MetaWorkflowPlaybookSchema, playbookInstanceId, } from '@wildo-ai/saas-specifications/application-creation';
50
50
  import { describeStructuredValidationIssue, readCodingModelDestinations, readStructuredGenerationFailure, } from '@wildo-ai/external-connectors-models';
51
- import { loadSaasConfig, readBuildParallelism, resolveProviderComplianceProfiles } from '@wildo-ai/platform-config-lib';
51
+ import { discoverSaasProviderCompanionContributions, loadSaasConfig, readBuildParallelism, resolveProviderComplianceProfiles } from '@wildo-ai/platform-config-lib';
52
52
  import { StructuredDeliberationCompanionService } from '../../deliberations/services/structured-deliberation.companion.service.js';
53
53
  import { PlacementPlanSchema, collectRevertedPlacementRevisions, deriveDomainPlanSystemOfRecordPartitionFields, } from '@wildo-ai/saas-specifications/application-creation';
54
54
  import { loadEffectiveSystemOfRecordFacets, rereadDeclaredSystemOfRecordInstances, systemOfRecordFacetPartitionsByVendor } from './system-of-record-facet-library.companion.utils.js';
@@ -3054,6 +3054,18 @@ let PlaybookRunCompanionService = class PlaybookRunCompanionService {
3054
3054
  'earlier objective returns the earlier answer, so make each one different and specific.',
3055
3055
  `You may select up to ${request.maximumLanes} children to run in parallel — do so when they can`,
3056
3056
  'be asked genuinely different questions, not to pad the set.',
3057
+ /*
3058
+ * A refill beside running children (#3848): the slots offered are only the free ones, and what a running child
3059
+ * writes or will land is already off the list. Said so the selector can leave a slot free for what a running
3060
+ * child will unblock instead of filling it because it is there.
3061
+ */
3062
+ ...((request.running ?? []).length === 0 ? [] : [
3063
+ '',
3064
+ '# Already running',
3065
+ `These children are running now: ${request.running.join(', ')}. They are not on offer, and neither is anything that`,
3066
+ 'would write what they write or read what they will land. Choose only what is worth starting beside them; leaving a',
3067
+ 'slot free for what they will unblock is a valid answer.',
3068
+ ]),
3057
3069
  ...(returnedForSelection.length === 0 ? [] : [
3058
3070
  '',
3059
3071
  '# What has been returned so far',
@@ -4480,6 +4492,8 @@ let PlaybookRunCompanionService = class PlaybookRunCompanionService {
4480
4492
  * relaunch over the same tree resumes it). Before this, its own selection call settled the loop `failed`.
4481
4493
  */
4482
4494
  isEnvironmentalFailure: isEnvironmentalPlaybookFailure,
4495
+ // A playbook the running build wave alone holds back asks it to yield (#3884), instead of waiting for its cap.
4496
+ requestBuildWaveYield: (because) => this.buildDispatch.requestBuildWaveYield(because),
4483
4497
  awaitEnvironmentRecovery: (reason) => awaitModelProviderRecovery(reason, {
4484
4498
  log: (message, context) => this.logDebug(message, context),
4485
4499
  }),
@@ -6378,6 +6392,8 @@ let PlaybookRunCompanionService = class PlaybookRunCompanionService {
6378
6392
  * that cannot be read is left absent, and the normalizer records the split unconfirmed rather than guessing.
6379
6393
  */
6380
6394
  const systemOfRecordPartitionFields = await this.readSystemOfRecordPartitionFieldsFor(outputs);
6395
+ // #3995: what providers exist, so an integration plan binding nothing (or forking something) goes back to the model.
6396
+ const knownProviderRefs = await this.readKnownProviderRefsFor(outputs);
6381
6397
  /*
6382
6398
  * The landing IN FLIGHT (#3221): opened by the landing itself, just before its first write, with the paths it is
6383
6399
  * about to write, and told each later path before its write (#3237 review F1); released once the write record below
@@ -6398,6 +6414,12 @@ let PlaybookRunCompanionService = class PlaybookRunCompanionService {
6398
6414
  playbookRef: input.playbookRef,
6399
6415
  // The INSTANCE (#1609): refused before generation, and at landing, unless every output is a keyed set.
6400
6416
  ...(input.instanceKey ? { instanceKey: input.instanceKey } : {}),
6417
+ // The members of each keyed set this playbook declares (#3896): it may land only those, which is what lets two
6418
+ // producers of one set run together.
6419
+ declaredSetMembers: new Map((playbook.outputs ?? []).flatMap((output) => {
6420
+ const members = resolveDeclaredSetMembers(playbook, output.family);
6421
+ return members === undefined ? [] : [[output.family, members]];
6422
+ })),
6401
6423
  outputs,
6402
6424
  specificationsPackageRoot,
6403
6425
  /*
@@ -6413,6 +6435,7 @@ let PlaybookRunCompanionService = class PlaybookRunCompanionService {
6413
6435
  ...(enabledEngineCapabilities === undefined ? {} : { enabledEngineCapabilities }),
6414
6436
  ...(operatingJurisdictionSlugs === undefined ? {} : { operatingJurisdictionSlugs }),
6415
6437
  ...(systemOfRecordPartitionFields === undefined ? {} : { systemOfRecordPartitionFields }),
6438
+ ...(knownProviderRefs === undefined ? {} : { knownProviderRefs }),
6416
6439
  ...(landedBuildTasks === undefined ? {} : { landedBuildTasks }),
6417
6440
  // NEUTRAL BY CONTRACT (issue #65): every landed specification constant carries the fixed
6418
6441
  // `application` prefix (`applicationVisionSnapshot`, `applicationBuildPlan`, …), never an
@@ -6820,6 +6843,19 @@ let PlaybookRunCompanionService = class PlaybookRunCompanionService {
6820
6843
  dropped: record.droppedUnresolvableItems.map((item) => `${item.aspectKey} ${item.itemRef} (${item.scope}): ${item.field} → ${item.missingRefs.join(', ')}`),
6821
6844
  });
6822
6845
  }
6846
+ /*
6847
+ * Elements the generation's LAST attempt removed rather than refuse the output (#3995 review follow-up): a recorded need
6848
+ * naming a provider that exists, or a binding to a provider nothing provides. Said here for the same reason as the
6849
+ * dropped items above: an unattended run's response reaches no person.
6850
+ */
6851
+ for (const attempt of result.generation) {
6852
+ if (attempt.lastAttemptRemovals === undefined)
6853
+ continue;
6854
+ this.logger.warn(`Playbook "${input.playbookRef}" landed "${attempt.family}" after its last attempt removed ${attempt.lastAttemptRemovals.length} element(s) it could not correct`, {
6855
+ family: attempt.family,
6856
+ removed: attempt.lastAttemptRemovals,
6857
+ });
6858
+ }
6823
6859
  // On the run's write record too, so the commit that accepts it names what is missing (best-effort, like the record).
6824
6860
  if (revertHandle !== undefined && droppedItems.length > 0) {
6825
6861
  await this.writeRegister.markDroppedItems(revertHandle, droppedItems).catch((error) => {
@@ -7613,6 +7649,45 @@ let PlaybookRunCompanionService = class PlaybookRunCompanionService {
7613
7649
  schedulesAssuranceReview,
7614
7650
  });
7615
7651
  }
7652
+ /**
7653
+ * The provider refs that exist for this application (#3995), for a generation producing the integration plan; `undefined`
7654
+ * for any other generation, and when the registry cannot be read (an unknown provider is then not a wrong one). The
7655
+ * installed `providers/<ref>/` are read from disk now; the declared scopes come from the configuration the companion
7656
+ * holds, which a provider the integration plan itself declares has not reached yet, and does not need to.
7657
+ */
7658
+ async readKnownProviderRefsFor(outputs) {
7659
+ if (!outputs.some((output) => output.family === ApplicationSpecificationFamily.INTEGRATION_PLAN))
7660
+ return undefined;
7661
+ const listing = await listRegistryProviderModules({
7662
+ frameworkRoot: this.companionContext.resolvedHomes.framework.repositoryRoot ?? null,
7663
+ moduleRegistries: this.companionContext.saasConfig?.moduleRegistries,
7664
+ });
7665
+ const saasConfig = this.companionContext.saasConfig;
7666
+ // Discovery brings what the application authored or installed beside the engine's specifications; unreadable, no check.
7667
+ let discoveredContributions;
7668
+ try {
7669
+ const discovery = saasConfig === undefined ? undefined : await discoverSaasProviderCompanionContributions({ saasRoot: this.companionContext.saasRoot, saasConfig });
7670
+ /*
7671
+ * A walk that could not read an owner is partial: a provider that owner authored would be refused against it (#3995
7672
+ * review R2), so partial is unknown and unknown skips the check. Since #3995 item 5 every scope is checked
7673
+ * (`PROVIDER_BINDING_SCOPES_CHECKED_FOR_EXISTENCE`), so an unreadable FRONTEND service counts too: it used to be
7674
+ * exempt only because frontend-scope bindings were not checked.
7675
+ */
7676
+ const ownerUnreadable = (discovery?.unreadableOwners.length ?? 0) > 0;
7677
+ discoveredContributions = discovery === undefined || ownerUnreadable ? undefined : discovery.contributions;
7678
+ }
7679
+ catch (error) {
7680
+ this.logDebug('Provider discovery unreadable; the integration plan\'s provider check is skipped', { error: describeCaughtError(error) });
7681
+ discoveredContributions = undefined;
7682
+ }
7683
+ return collectKnownProviderRefs({
7684
+ listing,
7685
+ applicationRoot: this.companionContext.saasRoot,
7686
+ specifications: listRegisteredProviderSpecifications(),
7687
+ discoveredContributions,
7688
+ saasConfig,
7689
+ });
7690
+ }
7616
7691
  /**
7617
7692
  * The system-of-record facets' partition fields by kind (#3045), for a generation producing the domain plan, read from the
7618
7693
  * application's EFFECTIVE facets, as the backend resolves them at startup (`loadEffectiveSystemOfRecordFacets`, #3053);
@@ -8223,7 +8298,9 @@ let PlaybookRunCompanionService = class PlaybookRunCompanionService {
8223
8298
  frameworkRoot: this.companionContext.resolvedHomes.framework.repositoryRoot ?? null,
8224
8299
  moduleRegistries: this.companionContext.saasConfig?.moduleRegistries,
8225
8300
  });
8226
- return renderProviderRegistryBrief(listing, (providerRef) => isRegistryProviderInstalled(saasRoot, providerRef));
8301
+ // The engine's own providers beside the registry's (#3992): a planner sees everything the framework has before it
8302
+ // concludes a need is unprovided.
8303
+ return renderProviderRegistryBrief(listing, (providerRef) => isRegistryProviderInstalled(saasRoot, providerRef), engineProviderOffers(listRegisteredProviderSpecifications()));
8227
8304
  }
8228
8305
  async composeWorkspaceTruthSection(playbook) {
8229
8306
  if (!playbookDeclaresContextSource(playbook, MetaWorkflow_ContextSource.WORKSPACE_TRUTH))