@wildo-ai/dev-companion 1.1.8 → 1.1.10
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.
- package/bin/companion-supervisor.d.mts +33 -0
- package/bin/companion-supervisor.mjs +174 -0
- package/bin/wildo-dev-companion-supervised.mjs +16 -0
- package/dist/esm/.tsbuildinfo +1 -1
- package/dist/esm/brand/models/accepted-brand-mark.models.d.ts +46 -0
- package/dist/esm/brand/models/accepted-brand-mark.models.d.ts.map +1 -0
- package/dist/esm/brand/models/accepted-brand-mark.models.js +89 -0
- package/dist/esm/brand/models/accepted-brand-mark.models.js.map +1 -0
- package/dist/esm/brand/models/logo-creative-brief.schemas.d.ts.map +1 -1
- package/dist/esm/brand/models/logo-creative-brief.schemas.js.map +1 -1
- package/dist/esm/brand/models/logo-generation.actors-system.definitions.d.ts.map +1 -1
- package/dist/esm/brand/models/logo-generation.actors-system.definitions.js +8 -2
- package/dist/esm/brand/models/logo-generation.actors-system.definitions.js.map +1 -1
- package/dist/esm/brand/models/logo-judge.actors-system.definitions.d.ts.map +1 -1
- package/dist/esm/brand/models/logo-judge.actors-system.definitions.js +8 -2
- package/dist/esm/brand/models/logo-judge.actors-system.definitions.js.map +1 -1
- package/dist/esm/brand/models/logo-judge.schemas.d.ts +5 -3
- package/dist/esm/brand/models/logo-judge.schemas.d.ts.map +1 -1
- package/dist/esm/brand/models/logo-judge.schemas.js +5 -3
- package/dist/esm/brand/models/logo-judge.schemas.js.map +1 -1
- package/dist/esm/brand/services/brand-accept.companion.service.d.ts +1 -1
- package/dist/esm/brand/services/brand-accept.companion.service.d.ts.map +1 -1
- package/dist/esm/brand/services/brand-accept.companion.service.js +9 -11
- package/dist/esm/brand/services/brand-accept.companion.service.js.map +1 -1
- package/dist/esm/brand/services/brand-propagation.companion.utils.d.ts.map +1 -1
- package/dist/esm/brand/services/brand-propagation.companion.utils.js.map +1 -1
- package/dist/esm/brand/services/logo-deliberation.companion.service.d.ts.map +1 -1
- package/dist/esm/brand/services/logo-deliberation.companion.service.js +10 -7
- package/dist/esm/brand/services/logo-deliberation.companion.service.js.map +1 -1
- package/dist/esm/brand/services/logo-generation.companion.service.d.ts.map +1 -1
- package/dist/esm/brand/services/logo-generation.companion.service.js.map +1 -1
- package/dist/esm/brand/utils/derived-brand-assets.d.ts.map +1 -1
- package/dist/esm/brand/utils/derived-brand-assets.js.map +1 -1
- package/dist/esm/brand/utils/stage-brand-candidate.d.ts.map +1 -1
- package/dist/esm/brand/utils/stage-brand-candidate.js.map +1 -1
- package/dist/esm/claude-cli/models/application-coding-run-checkpoint.models.d.ts +21 -0
- package/dist/esm/claude-cli/models/application-coding-run-checkpoint.models.d.ts.map +1 -1
- package/dist/esm/claude-cli/models/application-coding-run-checkpoint.models.js +33 -1
- package/dist/esm/claude-cli/models/application-coding-run-checkpoint.models.js.map +1 -1
- package/dist/esm/claude-cli/models/coding-agent-dispatch.models.d.ts +130 -2
- package/dist/esm/claude-cli/models/coding-agent-dispatch.models.d.ts.map +1 -1
- package/dist/esm/claude-cli/models/coding-agent-dispatch.models.js +176 -1
- package/dist/esm/claude-cli/models/coding-agent-dispatch.models.js.map +1 -1
- package/dist/esm/claude-cli/models/coding-agent-usage-limit.models.d.ts +52 -0
- package/dist/esm/claude-cli/models/coding-agent-usage-limit.models.d.ts.map +1 -0
- package/dist/esm/claude-cli/models/coding-agent-usage-limit.models.js +206 -0
- package/dist/esm/claude-cli/models/coding-agent-usage-limit.models.js.map +1 -0
- package/dist/esm/claude-cli/models/coding-session-frame-retention.d.ts.map +1 -1
- package/dist/esm/claude-cli/models/coding-session-frame-retention.js.map +1 -1
- package/dist/esm/claude-cli/models/concurrent-coding-runs.models.d.ts +38 -3
- package/dist/esm/claude-cli/models/concurrent-coding-runs.models.d.ts.map +1 -1
- package/dist/esm/claude-cli/models/concurrent-coding-runs.models.js +48 -4
- package/dist/esm/claude-cli/models/concurrent-coding-runs.models.js.map +1 -1
- package/dist/esm/claude-cli/models/parked-question-answer.models.d.ts.map +1 -1
- package/dist/esm/claude-cli/models/parked-question-answer.models.js.map +1 -1
- package/dist/esm/claude-cli/models/parked-question-answerer.actors-system.definitions.d.ts.map +1 -1
- package/dist/esm/claude-cli/models/parked-question-answerer.actors-system.definitions.js.map +1 -1
- package/dist/esm/claude-cli/services/accepted-change-commit.companion.service.d.ts +165 -8
- package/dist/esm/claude-cli/services/accepted-change-commit.companion.service.d.ts.map +1 -1
- package/dist/esm/claude-cli/services/accepted-change-commit.companion.service.js +536 -28
- package/dist/esm/claude-cli/services/accepted-change-commit.companion.service.js.map +1 -1
- package/dist/esm/claude-cli/services/accepted-change-import-closure.companion.d.ts +53 -0
- package/dist/esm/claude-cli/services/accepted-change-import-closure.companion.d.ts.map +1 -0
- package/dist/esm/claude-cli/services/accepted-change-import-closure.companion.js +193 -0
- package/dist/esm/claude-cli/services/accepted-change-import-closure.companion.js.map +1 -0
- package/dist/esm/claude-cli/services/coding-agent-dispatch.companion.service.d.ts +164 -6
- package/dist/esm/claude-cli/services/coding-agent-dispatch.companion.service.d.ts.map +1 -1
- package/dist/esm/claude-cli/services/coding-agent-dispatch.companion.service.js +468 -41
- package/dist/esm/claude-cli/services/coding-agent-dispatch.companion.service.js.map +1 -1
- package/dist/esm/claude-cli/services/coding-run-write-register.companion.service.d.ts.map +1 -1
- package/dist/esm/claude-cli/services/coding-run-write-register.companion.service.js.map +1 -1
- package/dist/esm/claude-cli/services/git-change-set.companion.service.d.ts.map +1 -1
- package/dist/esm/claude-cli/services/git-change-set.companion.service.js.map +1 -1
- package/dist/esm/claude-cli/services/in-flight-coding-runs.companion.d.ts.map +1 -1
- package/dist/esm/claude-cli/services/in-flight-coding-runs.companion.js.map +1 -1
- package/dist/esm/claude-cli/services/research-agent-dispatch.companion.service.d.ts.map +1 -1
- package/dist/esm/claude-cli/services/research-agent-dispatch.companion.service.js.map +1 -1
- package/dist/esm/claude-cli/services/research-evidence-store.companion.d.ts +15 -2
- package/dist/esm/claude-cli/services/research-evidence-store.companion.d.ts.map +1 -1
- package/dist/esm/claude-cli/services/research-evidence-store.companion.js +36 -4
- package/dist/esm/claude-cli/services/research-evidence-store.companion.js.map +1 -1
- package/dist/esm/code-compliance-check/check-label-placeholder-contract.companion.d.ts.map +1 -1
- package/dist/esm/code-compliance-check/check-label-placeholder-contract.companion.js.map +1 -1
- package/dist/esm/code-compliance-check/check-raw-feature-id-literals.companion.d.ts.map +1 -1
- package/dist/esm/code-compliance-check/check-raw-feature-id-literals.companion.js.map +1 -1
- package/dist/esm/companion-api/companion-api.schemas.d.ts +360 -339
- package/dist/esm/companion-api/companion-api.schemas.d.ts.map +1 -1
- package/dist/esm/companion-api/companion-api.schemas.js +13 -2
- package/dist/esm/companion-api/companion-api.schemas.js.map +1 -1
- package/dist/esm/companion-api/companion-error-guidance.models.d.ts.map +1 -1
- package/dist/esm/companion-api/companion-error-guidance.models.js.map +1 -1
- package/dist/esm/companion-api/controllers/companion-file-route-confinement.d.ts.map +1 -1
- package/dist/esm/companion-api/controllers/companion-file-route-confinement.js.map +1 -1
- package/dist/esm/companion-api/controllers/companion-i18n-api-contract.utils.d.ts.map +1 -1
- package/dist/esm/companion-api/controllers/companion-i18n-api-contract.utils.js.map +1 -1
- package/dist/esm/companion-api/controllers/companion-token-floor.policy.d.ts.map +1 -1
- package/dist/esm/companion-api/controllers/companion-token-floor.policy.js.map +1 -1
- package/dist/esm/companion-api/controllers/companion-trace-exemptions.d.ts.map +1 -1
- package/dist/esm/companion-api/controllers/companion-trace-exemptions.js.map +1 -1
- package/dist/esm/companion-api/controllers/companion.controller.d.ts +88 -13
- package/dist/esm/companion-api/controllers/companion.controller.d.ts.map +1 -1
- package/dist/esm/companion-api/controllers/companion.controller.js +448 -51
- package/dist/esm/companion-api/controllers/companion.controller.js.map +1 -1
- package/dist/esm/core/auth/companion-auth-floor.companion.service.d.ts.map +1 -1
- package/dist/esm/core/auth/companion-auth-floor.companion.service.js.map +1 -1
- package/dist/esm/core/catalogs/catalog-context.factory.d.ts.map +1 -1
- package/dist/esm/core/catalogs/catalog-context.factory.js.map +1 -1
- package/dist/esm/core/catalogs/catalog-context.factory.models.d.ts.map +1 -1
- package/dist/esm/core/catalogs/catalog-context.factory.models.js.map +1 -1
- package/dist/esm/core/catalogs/schema-org/aggregate-offer-catalog-context.factory.d.ts.map +1 -1
- package/dist/esm/core/catalogs/schema-org/aggregate-offer-catalog-context.factory.js.map +1 -1
- package/dist/esm/core/catalogs/schema-org/aggregate-rating-catalog-context.factory.d.ts.map +1 -1
- package/dist/esm/core/catalogs/schema-org/aggregate-rating-catalog-context.factory.js.map +1 -1
- package/dist/esm/core/catalogs/schema-org/article-catalog-context.factory.d.ts.map +1 -1
- package/dist/esm/core/catalogs/schema-org/article-catalog-context.factory.js.map +1 -1
- package/dist/esm/core/catalogs/schema-org/blog-posting-catalog-context.factory.d.ts.map +1 -1
- package/dist/esm/core/catalogs/schema-org/blog-posting-catalog-context.factory.js.map +1 -1
- package/dist/esm/core/catalogs/schema-org/breadcrumb-list-catalog-context.factory.d.ts.map +1 -1
- package/dist/esm/core/catalogs/schema-org/breadcrumb-list-catalog-context.factory.js.map +1 -1
- package/dist/esm/core/catalogs/schema-org/faq-page-catalog-context.factory.d.ts.map +1 -1
- package/dist/esm/core/catalogs/schema-org/faq-page-catalog-context.factory.js.map +1 -1
- package/dist/esm/core/catalogs/schema-org/offer-catalog-context.factory.d.ts.map +1 -1
- package/dist/esm/core/catalogs/schema-org/offer-catalog-context.factory.js.map +1 -1
- package/dist/esm/core/catalogs/schema-org/organization-catalog-context.factory.d.ts.map +1 -1
- package/dist/esm/core/catalogs/schema-org/organization-catalog-context.factory.js.map +1 -1
- package/dist/esm/core/catalogs/schema-org/product-catalog-context.factory.d.ts.map +1 -1
- package/dist/esm/core/catalogs/schema-org/product-catalog-context.factory.js.map +1 -1
- package/dist/esm/core/catalogs/schema-org/review-catalog-context.factory.d.ts.map +1 -1
- package/dist/esm/core/catalogs/schema-org/review-catalog-context.factory.js.map +1 -1
- package/dist/esm/core/catalogs/schema-org/schema-org-catalog-boundary.shared.d.ts.map +1 -1
- package/dist/esm/core/catalogs/schema-org/schema-org-catalog-boundary.shared.js.map +1 -1
- package/dist/esm/core/catalogs/schema-org/schema-org-catalog-context.shared.d.ts.map +1 -1
- package/dist/esm/core/catalogs/schema-org/schema-org-catalog-context.shared.js.map +1 -1
- package/dist/esm/core/catalogs/schema-org/software-application-catalog-context.factory.d.ts.map +1 -1
- package/dist/esm/core/catalogs/schema-org/software-application-catalog-context.factory.js.map +1 -1
- package/dist/esm/core/catalogs/schema-org/website-catalog-context.factory.d.ts.map +1 -1
- package/dist/esm/core/catalogs/schema-org/website-catalog-context.factory.js.map +1 -1
- package/dist/esm/core/catalogs/structured-data-catalog-audit.service.d.ts.map +1 -1
- package/dist/esm/core/catalogs/structured-data-catalog-audit.service.js.map +1 -1
- package/dist/esm/core/config/application-schema-plan-obligation.companion.utils.d.ts.map +1 -1
- package/dist/esm/core/config/application-schema-plan-obligation.companion.utils.js.map +1 -1
- package/dist/esm/core/config/primary-language.companion.utils.d.ts +5 -4
- package/dist/esm/core/config/primary-language.companion.utils.d.ts.map +1 -1
- package/dist/esm/core/config/primary-language.companion.utils.js +5 -4
- package/dist/esm/core/config/primary-language.companion.utils.js.map +1 -1
- package/dist/esm/core/context/application-module-generations.companion.d.ts +103 -0
- package/dist/esm/core/context/application-module-generations.companion.d.ts.map +1 -0
- package/dist/esm/core/context/application-module-generations.companion.js +313 -0
- package/dist/esm/core/context/application-module-generations.companion.js.map +1 -0
- package/dist/esm/core/context/companion-context.d.ts.map +1 -1
- package/dist/esm/core/context/companion-context.js.map +1 -1
- package/dist/esm/core/context/companion-package-loaders.companion.d.ts +19 -19
- package/dist/esm/core/context/companion-package-loaders.companion.d.ts.map +1 -1
- package/dist/esm/core/context/companion-package-loaders.companion.js +52 -40
- package/dist/esm/core/context/companion-package-loaders.companion.js.map +1 -1
- package/dist/esm/core/context/draft-family-values.companion.d.ts.map +1 -1
- package/dist/esm/core/context/draft-family-values.companion.js.map +1 -1
- package/dist/esm/core/inject/models/container.d.ts.map +1 -1
- package/dist/esm/core/inject/models/container.js +4 -0
- package/dist/esm/core/inject/models/container.js.map +1 -1
- package/dist/esm/core/inject/models/service-types.d.ts +4 -0
- package/dist/esm/core/inject/models/service-types.d.ts.map +1 -1
- package/dist/esm/core/inject/models/service-types.js +4 -0
- package/dist/esm/core/inject/models/service-types.js.map +1 -1
- package/dist/esm/core/introspection/behaviors/companion-introspection-behavior-definitions.d.ts.map +1 -1
- package/dist/esm/core/introspection/behaviors/companion-introspection-behavior-definitions.js.map +1 -1
- package/dist/esm/core/introspection/models/companion-introspection.models.d.ts.map +1 -1
- package/dist/esm/core/introspection/models/companion-introspection.models.js.map +1 -1
- package/dist/esm/core/introspection/resources/application-secrets.companion.d.ts.map +1 -1
- package/dist/esm/core/introspection/resources/application-secrets.companion.js.map +1 -1
- package/dist/esm/core/introspection/resources/creation-console-answer.companion.d.ts +15 -1
- package/dist/esm/core/introspection/resources/creation-console-answer.companion.d.ts.map +1 -1
- package/dist/esm/core/introspection/resources/creation-console-answer.companion.js +38 -3
- package/dist/esm/core/introspection/resources/creation-console-answer.companion.js.map +1 -1
- package/dist/esm/core/introspection/resources/creation-console-projection.companion.d.ts +21 -0
- package/dist/esm/core/introspection/resources/creation-console-projection.companion.d.ts.map +1 -1
- package/dist/esm/core/introspection/resources/creation-console-projection.companion.js +71 -25
- package/dist/esm/core/introspection/resources/creation-console-projection.companion.js.map +1 -1
- package/dist/esm/core/introspection/resources/creation-home-projection.companion.d.ts +10 -0
- package/dist/esm/core/introspection/resources/creation-home-projection.companion.d.ts.map +1 -1
- package/dist/esm/core/introspection/resources/creation-home-projection.companion.js +58 -2
- package/dist/esm/core/introspection/resources/creation-home-projection.companion.js.map +1 -1
- package/dist/esm/core/introspection/resources/creation-plane-dispatch.custom-impl.companion.service.d.ts +0 -28
- package/dist/esm/core/introspection/resources/creation-plane-dispatch.custom-impl.companion.service.d.ts.map +1 -1
- package/dist/esm/core/introspection/resources/creation-plane-dispatch.custom-impl.companion.service.js +197 -20
- package/dist/esm/core/introspection/resources/creation-plane-dispatch.custom-impl.companion.service.js.map +1 -1
- package/dist/esm/core/introspection/resources/creation-plane-projection.companion.service.d.ts.map +1 -1
- package/dist/esm/core/introspection/resources/creation-plane-projection.companion.service.js +49 -7
- package/dist/esm/core/introspection/resources/creation-plane-projection.companion.service.js.map +1 -1
- package/dist/esm/core/introspection/resources/introspection-resource-notifier.companion.service.d.ts.map +1 -1
- package/dist/esm/core/introspection/resources/introspection-resource-notifier.companion.service.js.map +1 -1
- package/dist/esm/core/introspection/resources/introspection-resource-source.companion.service.d.ts.map +1 -1
- package/dist/esm/core/introspection/resources/introspection-resource-source.companion.service.js.map +1 -1
- package/dist/esm/core/introspection/resources/launch-blockers.companion.d.ts +51 -0
- package/dist/esm/core/introspection/resources/launch-blockers.companion.d.ts.map +1 -0
- package/dist/esm/core/introspection/resources/launch-blockers.companion.js +124 -0
- package/dist/esm/core/introspection/resources/launch-blockers.companion.js.map +1 -0
- package/dist/esm/core/introspection/services/companion-introspection-behavior-registry.companion.service.d.ts.map +1 -1
- package/dist/esm/core/introspection/services/companion-introspection-behavior-registry.companion.service.js.map +1 -1
- package/dist/esm/core/introspection/services/companion-introspection.companion.service.d.ts +14 -3
- package/dist/esm/core/introspection/services/companion-introspection.companion.service.d.ts.map +1 -1
- package/dist/esm/core/introspection/services/companion-introspection.companion.service.js +91 -5
- package/dist/esm/core/introspection/services/companion-introspection.companion.service.js.map +1 -1
- package/dist/esm/core/introspection/services/introspection-derivation-state.companion.service.d.ts +186 -11
- package/dist/esm/core/introspection/services/introspection-derivation-state.companion.service.d.ts.map +1 -1
- package/dist/esm/core/introspection/services/introspection-derivation-state.companion.service.js +437 -35
- package/dist/esm/core/introspection/services/introspection-derivation-state.companion.service.js.map +1 -1
- package/dist/esm/core/introspection/services/introspection-input-closure.companion.d.ts +44 -0
- package/dist/esm/core/introspection/services/introspection-input-closure.companion.d.ts.map +1 -0
- package/dist/esm/core/introspection/services/introspection-input-closure.companion.js +104 -0
- package/dist/esm/core/introspection/services/introspection-input-closure.companion.js.map +1 -0
- package/dist/esm/core/introspection/services/introspection-source-state.companion.service.d.ts +123 -24
- package/dist/esm/core/introspection/services/introspection-source-state.companion.service.d.ts.map +1 -1
- package/dist/esm/core/introspection/services/introspection-source-state.companion.service.js +281 -54
- package/dist/esm/core/introspection/services/introspection-source-state.companion.service.js.map +1 -1
- package/dist/esm/core/introspection/services/introspection-source-watcher.companion.service.d.ts +22 -6
- package/dist/esm/core/introspection/services/introspection-source-watcher.companion.service.d.ts.map +1 -1
- package/dist/esm/core/introspection/services/introspection-source-watcher.companion.service.js +38 -7
- package/dist/esm/core/introspection/services/introspection-source-watcher.companion.service.js.map +1 -1
- package/dist/esm/core/introspection/services/translation-placement.companion.service.d.ts.map +1 -1
- package/dist/esm/core/introspection/services/translation-placement.companion.service.js.map +1 -1
- package/dist/esm/core/introspection/subprocess/app-shell-placement-content.behavior.d.ts +9 -0
- package/dist/esm/core/introspection/subprocess/app-shell-placement-content.behavior.d.ts.map +1 -1
- package/dist/esm/core/introspection/subprocess/app-shell-placement-content.behavior.js +29 -9
- package/dist/esm/core/introspection/subprocess/app-shell-placement-content.behavior.js.map +1 -1
- package/dist/esm/core/introspection/subprocess/application-domain-model.behavior.d.ts.map +1 -1
- package/dist/esm/core/introspection/subprocess/application-domain-model.behavior.js.map +1 -1
- package/dist/esm/core/introspection/subprocess/assertions.behavior.d.ts.map +1 -1
- package/dist/esm/core/introspection/subprocess/assertions.behavior.js +10 -10
- package/dist/esm/core/introspection/subprocess/assertions.behavior.js.map +1 -1
- package/dist/esm/core/introspection/subprocess/asset-noop-hooks.d.ts.map +1 -1
- package/dist/esm/core/introspection/subprocess/asset-noop-hooks.js.map +1 -1
- package/dist/esm/core/introspection/subprocess/asset-noop-register.d.ts.map +1 -1
- package/dist/esm/core/introspection/subprocess/asset-noop-register.js.map +1 -1
- package/dist/esm/core/introspection/subprocess/brand-prompt-renderer.d.ts.map +1 -1
- package/dist/esm/core/introspection/subprocess/brand-prompt-renderer.js.map +1 -1
- package/dist/esm/core/introspection/subprocess/chart-registration-refs.behavior.d.ts.map +1 -1
- package/dist/esm/core/introspection/subprocess/chart-registration-refs.behavior.js.map +1 -1
- package/dist/esm/core/introspection/subprocess/companion-introspection-behavior-handlers.d.ts +1 -1
- package/dist/esm/core/introspection/subprocess/companion-introspection-behavior-handlers.d.ts.map +1 -1
- package/dist/esm/core/introspection/subprocess/companion-introspection-behavior-handlers.js +20 -19
- package/dist/esm/core/introspection/subprocess/companion-introspection-behavior-handlers.js.map +1 -1
- package/dist/esm/core/introspection/subprocess/companion-introspection-child.d.ts.map +1 -1
- package/dist/esm/core/introspection/subprocess/companion-introspection-child.js.map +1 -1
- package/dist/esm/core/introspection/subprocess/companion-introspection-module-exports.utils.d.ts.map +1 -1
- package/dist/esm/core/introspection/subprocess/companion-introspection-module-exports.utils.js.map +1 -1
- package/dist/esm/core/introspection/subprocess/compliance-primary-facts.behavior.d.ts.map +1 -1
- package/dist/esm/core/introspection/subprocess/compliance-primary-facts.behavior.js.map +1 -1
- package/dist/esm/core/introspection/subprocess/definition-specifications.behavior.d.ts.map +1 -1
- package/dist/esm/core/introspection/subprocess/definition-specifications.behavior.js.map +1 -1
- package/dist/esm/core/introspection/subprocess/engine-resource-population.subprocess.utils.d.ts.map +1 -1
- package/dist/esm/core/introspection/subprocess/engine-resource-population.subprocess.utils.js.map +1 -1
- package/dist/esm/core/introspection/subprocess/expert-persona-brief.renderer.d.ts +7 -1
- package/dist/esm/core/introspection/subprocess/expert-persona-brief.renderer.d.ts.map +1 -1
- package/dist/esm/core/introspection/subprocess/expert-persona-brief.renderer.js +13 -4
- package/dist/esm/core/introspection/subprocess/expert-persona-brief.renderer.js.map +1 -1
- package/dist/esm/core/introspection/subprocess/family-aspects.behavior.d.ts.map +1 -1
- package/dist/esm/core/introspection/subprocess/family-aspects.behavior.js +9 -1
- package/dist/esm/core/introspection/subprocess/family-aspects.behavior.js.map +1 -1
- package/dist/esm/core/introspection/subprocess/frontend-labels-needed-info.behavior.d.ts.map +1 -1
- package/dist/esm/core/introspection/subprocess/frontend-labels-needed-info.behavior.js.map +1 -1
- package/dist/esm/core/introspection/subprocess/market-context-block.builder.d.ts.map +1 -1
- package/dist/esm/core/introspection/subprocess/market-context-block.builder.js +2 -1
- package/dist/esm/core/introspection/subprocess/market-context-block.builder.js.map +1 -1
- package/dist/esm/core/introspection/subprocess/market-prompt-renderer.d.ts +4 -3
- package/dist/esm/core/introspection/subprocess/market-prompt-renderer.d.ts.map +1 -1
- package/dist/esm/core/introspection/subprocess/market-prompt-renderer.js +14 -8
- package/dist/esm/core/introspection/subprocess/market-prompt-renderer.js.map +1 -1
- package/dist/esm/core/introspection/subprocess/openapi-generation-input.behavior.d.ts.map +1 -1
- package/dist/esm/core/introspection/subprocess/openapi-generation-input.behavior.js +17 -4
- package/dist/esm/core/introspection/subprocess/openapi-generation-input.behavior.js.map +1 -1
- package/dist/esm/core/introspection/subprocess/risk-signals.behavior.d.ts.map +1 -1
- package/dist/esm/core/introspection/subprocess/risk-signals.behavior.js.map +1 -1
- package/dist/esm/core/introspection/subprocess/specification-artifacts.behavior.d.ts.map +1 -1
- package/dist/esm/core/introspection/subprocess/specification-artifacts.behavior.js +7 -0
- package/dist/esm/core/introspection/subprocess/specification-artifacts.behavior.js.map +1 -1
- package/dist/esm/core/introspection/subprocess/specification-elements.behavior.d.ts.map +1 -1
- package/dist/esm/core/introspection/subprocess/specification-elements.behavior.js.map +1 -1
- package/dist/esm/core/introspection/workspace-element-index.companion.d.ts.map +1 -1
- package/dist/esm/core/introspection/workspace-element-index.companion.js.map +1 -1
- package/dist/esm/core/introspection/workspace-elements.companion.d.ts.map +1 -1
- package/dist/esm/core/introspection/workspace-elements.companion.js.map +1 -1
- package/dist/esm/core/lock/wildo-saas-lock.companion.service.d.ts.map +1 -1
- package/dist/esm/core/lock/wildo-saas-lock.companion.service.js.map +1 -1
- package/dist/esm/core/lock/wildo-saas-lock.models.d.ts.map +1 -1
- package/dist/esm/core/lock/wildo-saas-lock.models.js.map +1 -1
- package/dist/esm/core/lock/wildo-saas-lock.schemas.d.ts +4 -4
- package/dist/esm/core/lock/wildo-saas-lock.schemas.d.ts.map +1 -1
- package/dist/esm/core/lock/wildo-saas-lock.schemas.js.map +1 -1
- package/dist/esm/core/runtime/application-runtime-liveness.companion.d.ts +35 -0
- package/dist/esm/core/runtime/application-runtime-liveness.companion.d.ts.map +1 -1
- package/dist/esm/core/runtime/application-runtime-liveness.companion.js +74 -0
- package/dist/esm/core/runtime/application-runtime-liveness.companion.js.map +1 -1
- package/dist/esm/core/runtime/companion-endpoint-record.d.ts.map +1 -1
- package/dist/esm/core/runtime/companion-endpoint-record.js.map +1 -1
- package/dist/esm/core/runtime/companion-env-file.d.ts +39 -9
- package/dist/esm/core/runtime/companion-env-file.d.ts.map +1 -1
- package/dist/esm/core/runtime/companion-env-file.js +75 -16
- package/dist/esm/core/runtime/companion-env-file.js.map +1 -1
- package/dist/esm/core/runtime/companion-self-restart.companion.d.ts +38 -0
- package/dist/esm/core/runtime/companion-self-restart.companion.d.ts.map +1 -0
- package/dist/esm/core/runtime/companion-self-restart.companion.js +110 -0
- package/dist/esm/core/runtime/companion-self-restart.companion.js.map +1 -0
- package/dist/esm/core/runtime/companion-startup-assembly.d.ts.map +1 -1
- package/dist/esm/core/runtime/companion-startup-assembly.js +7 -1
- package/dist/esm/core/runtime/companion-startup-assembly.js.map +1 -1
- package/dist/esm/core/runtime/dev-compile-quiet.companion.d.ts +12 -0
- package/dist/esm/core/runtime/dev-compile-quiet.companion.d.ts.map +1 -1
- package/dist/esm/core/runtime/dev-compile-quiet.companion.js +15 -1
- package/dist/esm/core/runtime/dev-compile-quiet.companion.js.map +1 -1
- package/dist/esm/core/runtime/event-loop-stall-monitor.companion.d.ts +83 -0
- package/dist/esm/core/runtime/event-loop-stall-monitor.companion.d.ts.map +1 -0
- package/dist/esm/core/runtime/event-loop-stall-monitor.companion.js +150 -0
- package/dist/esm/core/runtime/event-loop-stall-monitor.companion.js.map +1 -0
- package/dist/esm/core/runtime/in-flight-work-heartbeat.companion.d.ts.map +1 -1
- package/dist/esm/core/runtime/in-flight-work-heartbeat.companion.js.map +1 -1
- package/dist/esm/core/runtime/models/companion-runtime.models.d.ts.map +1 -1
- package/dist/esm/core/runtime/models/companion-runtime.models.js.map +1 -1
- package/dist/esm/core/runtime/services/file-storage-initialization.companion.d.ts.map +1 -1
- package/dist/esm/core/runtime/services/file-storage-initialization.companion.js.map +1 -1
- package/dist/esm/core/runtime/services/start-companion-application.service.d.ts +30 -4
- package/dist/esm/core/runtime/services/start-companion-application.service.d.ts.map +1 -1
- package/dist/esm/core/runtime/services/start-companion-application.service.js +78 -12
- package/dist/esm/core/runtime/services/start-companion-application.service.js.map +1 -1
- package/dist/esm/core/runtime/utils/companion-local-signing-key.companion.d.ts.map +1 -1
- package/dist/esm/core/runtime/utils/companion-local-signing-key.companion.js.map +1 -1
- package/dist/esm/core/runtime/utils/companion-platform-config.companion.d.ts.map +1 -1
- package/dist/esm/core/runtime/utils/companion-platform-config.companion.js.map +1 -1
- package/dist/esm/core/runtime/utils/companion-workbench-topology.d.ts.map +1 -1
- package/dist/esm/core/runtime/utils/companion-workbench-topology.js.map +1 -1
- package/dist/esm/core/runtime/utils/platform-core-domain-modules.companion.d.ts.map +1 -1
- package/dist/esm/core/runtime/utils/platform-core-domain-modules.companion.js.map +1 -1
- package/dist/esm/core/specifications/chart-view-specification-context.factory.d.ts.map +1 -1
- package/dist/esm/core/specifications/chart-view-specification-context.factory.js.map +1 -1
- package/dist/esm/core/specifications/composite-view-specification-context.factory.d.ts.map +1 -1
- package/dist/esm/core/specifications/composite-view-specification-context.factory.js.map +1 -1
- package/dist/esm/core/specifications/cross-registry-rendering.shared.d.ts.map +1 -1
- package/dist/esm/core/specifications/cross-registry-rendering.shared.js.map +1 -1
- package/dist/esm/core/specifications/execution-view-specification-context.factory.d.ts.map +1 -1
- package/dist/esm/core/specifications/execution-view-specification-context.factory.js.map +1 -1
- package/dist/esm/core/specifications/feature-specification-context.factory.d.ts.map +1 -1
- package/dist/esm/core/specifications/feature-specification-context.factory.js.map +1 -1
- package/dist/esm/core/specifications/flows-actors-view-specification-context.factory.d.ts.map +1 -1
- package/dist/esm/core/specifications/flows-actors-view-specification-context.factory.js.map +1 -1
- package/dist/esm/core/specifications/frontend-component-specification-context.factory.d.ts.map +1 -1
- package/dist/esm/core/specifications/frontend-component-specification-context.factory.js.map +1 -1
- package/dist/esm/core/specifications/full-custom-view-specification-context.factory.d.ts.map +1 -1
- package/dist/esm/core/specifications/full-custom-view-specification-context.factory.js.map +1 -1
- package/dist/esm/core/specifications/guidance-flow-specification-context.factory.d.ts.map +1 -1
- package/dist/esm/core/specifications/guidance-flow-specification-context.factory.js.map +1 -1
- package/dist/esm/core/specifications/milestone-specification-context.factory.d.ts.map +1 -1
- package/dist/esm/core/specifications/milestone-specification-context.factory.js.map +1 -1
- package/dist/esm/core/specifications/non-composite-view-specification-context.shared.d.ts.map +1 -1
- package/dist/esm/core/specifications/non-composite-view-specification-context.shared.js.map +1 -1
- package/dist/esm/core/specifications/onboarding-element-rendering.shared.d.ts.map +1 -1
- package/dist/esm/core/specifications/onboarding-element-rendering.shared.js.map +1 -1
- package/dist/esm/core/specifications/onboarding-view-specification-context.factory.d.ts.map +1 -1
- package/dist/esm/core/specifications/onboarding-view-specification-context.factory.js.map +1 -1
- package/dist/esm/core/specifications/product-specification-context.factory.d.ts.map +1 -1
- package/dist/esm/core/specifications/product-specification-context.factory.js.map +1 -1
- package/dist/esm/core/specifications/resource-specification-context.factory.d.ts.map +1 -1
- package/dist/esm/core/specifications/resource-specification-context.factory.js.map +1 -1
- package/dist/esm/core/specifications/role-specification-context.factory.d.ts.map +1 -1
- package/dist/esm/core/specifications/role-specification-context.factory.js.map +1 -1
- package/dist/esm/core/specifications/specification-context-factory.d.ts.map +1 -1
- package/dist/esm/core/specifications/specification-context-factory.js.map +1 -1
- package/dist/esm/core/specifications/specification-context-factory.models.d.ts.map +1 -1
- package/dist/esm/core/specifications/specification-context-factory.models.js.map +1 -1
- package/dist/esm/core/specifications/specification-context-factory.shared.d.ts.map +1 -1
- package/dist/esm/core/specifications/specification-context-factory.shared.js.map +1 -1
- package/dist/esm/core/specifications/system-email-template-specification-context.factory.d.ts.map +1 -1
- package/dist/esm/core/specifications/system-email-template-specification-context.factory.js.map +1 -1
- package/dist/esm/core/specifications/templates/composite-view/composite-view-all-information.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/composite-view/composite-view-all-information.template.js.map +1 -1
- package/dist/esm/core/specifications/templates/composite-view/composite-view-custom-implementation-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/composite-view/composite-view-custom-implementation-context.template.js.map +1 -1
- package/dist/esm/core/specifications/templates/composite-view/composite-view-development-usage-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/composite-view/composite-view-development-usage-context.template.js.map +1 -1
- package/dist/esm/core/specifications/templates/composite-view/composite-view-translation-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/composite-view/composite-view-translation-context.template.js.map +1 -1
- package/dist/esm/core/specifications/templates/feature/feature-all-information.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/feature/feature-all-information.template.js.map +1 -1
- package/dist/esm/core/specifications/templates/feature/feature-custom-implementation-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/feature/feature-custom-implementation-context.template.js.map +1 -1
- package/dist/esm/core/specifications/templates/feature/feature-development-usage-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/feature/feature-development-usage-context.template.js.map +1 -1
- package/dist/esm/core/specifications/templates/feature/feature-translation-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/feature/feature-translation-context.template.js.map +1 -1
- package/dist/esm/core/specifications/templates/frontend-component/frontend-component-all-information.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/frontend-component/frontend-component-all-information.template.js.map +1 -1
- package/dist/esm/core/specifications/templates/frontend-component/frontend-component-custom-implementation-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/frontend-component/frontend-component-custom-implementation-context.template.js.map +1 -1
- package/dist/esm/core/specifications/templates/frontend-component/frontend-component-development-usage-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/frontend-component/frontend-component-development-usage-context.template.js.map +1 -1
- package/dist/esm/core/specifications/templates/frontend-component/frontend-component-translation-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/frontend-component/frontend-component-translation-context.template.js.map +1 -1
- package/dist/esm/core/specifications/templates/guidance-flow-specification/guidance-flow-all-information.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/guidance-flow-specification/guidance-flow-all-information.template.js.map +1 -1
- package/dist/esm/core/specifications/templates/guidance-flow-specification/guidance-flow-custom-implementation-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/guidance-flow-specification/guidance-flow-custom-implementation-context.template.js.map +1 -1
- package/dist/esm/core/specifications/templates/guidance-flow-specification/guidance-flow-development-usage-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/guidance-flow-specification/guidance-flow-development-usage-context.template.js.map +1 -1
- package/dist/esm/core/specifications/templates/guidance-flow-specification/guidance-flow-translation-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/guidance-flow-specification/guidance-flow-translation-context.template.js.map +1 -1
- package/dist/esm/core/specifications/templates/milestone/milestone-all-information.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/milestone/milestone-all-information.template.js.map +1 -1
- package/dist/esm/core/specifications/templates/milestone/milestone-custom-implementation-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/milestone/milestone-custom-implementation-context.template.js.map +1 -1
- package/dist/esm/core/specifications/templates/milestone/milestone-development-usage-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/milestone/milestone-development-usage-context.template.js.map +1 -1
- package/dist/esm/core/specifications/templates/milestone/milestone-translation-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/milestone/milestone-translation-context.template.js.map +1 -1
- package/dist/esm/core/specifications/templates/non-composite-view/non-composite-view-all-information.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/non-composite-view/non-composite-view-all-information.template.js.map +1 -1
- package/dist/esm/core/specifications/templates/non-composite-view/non-composite-view-custom-implementation-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/non-composite-view/non-composite-view-custom-implementation-context.template.js.map +1 -1
- package/dist/esm/core/specifications/templates/non-composite-view/non-composite-view-development-usage-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/non-composite-view/non-composite-view-development-usage-context.template.js.map +1 -1
- package/dist/esm/core/specifications/templates/non-composite-view/non-composite-view-translation-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/non-composite-view/non-composite-view-translation-context.template.js.map +1 -1
- package/dist/esm/core/specifications/templates/onboarding-view-specification/onboarding-view-all-information.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/onboarding-view-specification/onboarding-view-all-information.template.js.map +1 -1
- package/dist/esm/core/specifications/templates/onboarding-view-specification/onboarding-view-custom-implementation-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/onboarding-view-specification/onboarding-view-custom-implementation-context.template.js.map +1 -1
- package/dist/esm/core/specifications/templates/onboarding-view-specification/onboarding-view-development-usage-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/onboarding-view-specification/onboarding-view-development-usage-context.template.js.map +1 -1
- package/dist/esm/core/specifications/templates/onboarding-view-specification/onboarding-view-translation-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/onboarding-view-specification/onboarding-view-translation-context.template.js.map +1 -1
- package/dist/esm/core/specifications/templates/product/product-all-information.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/product/product-all-information.template.js.map +1 -1
- package/dist/esm/core/specifications/templates/product/product-custom-implementation-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/product/product-custom-implementation-context.template.js.map +1 -1
- package/dist/esm/core/specifications/templates/product/product-development-usage-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/product/product-development-usage-context.template.js.map +1 -1
- package/dist/esm/core/specifications/templates/product/product-translation-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/product/product-translation-context.template.js.map +1 -1
- package/dist/esm/core/specifications/templates/resource/resource-all-information.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/resource/resource-all-information.template.js.map +1 -1
- package/dist/esm/core/specifications/templates/resource/resource-custom-implementation-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/resource/resource-custom-implementation-context.template.js.map +1 -1
- package/dist/esm/core/specifications/templates/resource/resource-development-usage-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/resource/resource-development-usage-context.template.js.map +1 -1
- package/dist/esm/core/specifications/templates/resource/resource-translation-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/resource/resource-translation-context.template.js.map +1 -1
- package/dist/esm/core/specifications/templates/role/role-all-information.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/role/role-all-information.template.js.map +1 -1
- package/dist/esm/core/specifications/templates/role/role-custom-implementation-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/role/role-custom-implementation-context.template.js.map +1 -1
- package/dist/esm/core/specifications/templates/role/role-development-usage-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/role/role-development-usage-context.template.js.map +1 -1
- package/dist/esm/core/specifications/templates/role/role-translation-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/role/role-translation-context.template.js.map +1 -1
- package/dist/esm/core/specifications/templates/system-email-template/system-email-template-all-information.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/system-email-template/system-email-template-all-information.template.js.map +1 -1
- package/dist/esm/core/specifications/templates/system-email-template/system-email-template-custom-implementation-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/system-email-template/system-email-template-custom-implementation-context.template.js.map +1 -1
- package/dist/esm/core/specifications/templates/system-email-template/system-email-template-development-usage-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/system-email-template/system-email-template-development-usage-context.template.js.map +1 -1
- package/dist/esm/core/specifications/templates/system-email-template/system-email-template-translation-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/templates/system-email-template/system-email-template-translation-context.template.js.map +1 -1
- package/dist/esm/core/specifications/validate-resource-field-completeness.d.ts.map +1 -1
- package/dist/esm/core/specifications/validate-resource-field-completeness.js.map +1 -1
- package/dist/esm/core/traceability/companion-agent-call-trace-sink.companion.service.d.ts.map +1 -1
- package/dist/esm/core/traceability/companion-agent-call-trace-sink.companion.service.js.map +1 -1
- package/dist/esm/core/traceability/companion-traceability.models.d.ts.map +1 -1
- package/dist/esm/core/traceability/companion-traceability.models.js.map +1 -1
- package/dist/esm/core/traceability/companion-traceability.service.d.ts.map +1 -1
- package/dist/esm/core/traceability/companion-traceability.service.js.map +1 -1
- package/dist/esm/core/utils/atomic-write.utils.d.ts.map +1 -1
- package/dist/esm/core/utils/atomic-write.utils.js.map +1 -1
- package/dist/esm/core/utils/bounded-concurrency.utils.d.ts +17 -0
- package/dist/esm/core/utils/bounded-concurrency.utils.d.ts.map +1 -0
- package/dist/esm/core/utils/bounded-concurrency.utils.js +37 -0
- package/dist/esm/core/utils/bounded-concurrency.utils.js.map +1 -0
- package/dist/esm/core/utils/derived-input-signature.companion.utils.d.ts +10 -1
- package/dist/esm/core/utils/derived-input-signature.companion.utils.d.ts.map +1 -1
- package/dist/esm/core/utils/derived-input-signature.companion.utils.js +9 -2
- package/dist/esm/core/utils/derived-input-signature.companion.utils.js.map +1 -1
- package/dist/esm/creation-conversation/creation-conversation.actors-system.definitions.d.ts.map +1 -1
- package/dist/esm/creation-conversation/creation-conversation.actors-system.definitions.js +2 -0
- package/dist/esm/creation-conversation/creation-conversation.actors-system.definitions.js.map +1 -1
- package/dist/esm/creation-conversation/creation-conversation.function-tools.d.ts.map +1 -1
- package/dist/esm/creation-conversation/creation-conversation.function-tools.js +69 -7
- package/dist/esm/creation-conversation/creation-conversation.function-tools.js.map +1 -1
- package/dist/esm/deliberations/models/deliberation-agents.actors-system.definitions.d.ts +0 -17
- package/dist/esm/deliberations/models/deliberation-agents.actors-system.definitions.d.ts.map +1 -1
- package/dist/esm/deliberations/models/deliberation-agents.actors-system.definitions.js +17 -12
- package/dist/esm/deliberations/models/deliberation-agents.actors-system.definitions.js.map +1 -1
- package/dist/esm/deliberations/services/deliberation.companion.service.d.ts +10 -5
- package/dist/esm/deliberations/services/deliberation.companion.service.d.ts.map +1 -1
- package/dist/esm/deliberations/services/deliberation.companion.service.js +31 -21
- package/dist/esm/deliberations/services/deliberation.companion.service.js.map +1 -1
- package/dist/esm/deliberations/services/structured-deliberation.companion.service.d.ts.map +1 -1
- package/dist/esm/deliberations/services/structured-deliberation.companion.service.js.map +1 -1
- package/dist/esm/deliberations/utils/expert-agent-registration.d.ts +56 -0
- package/dist/esm/deliberations/utils/expert-agent-registration.d.ts.map +1 -0
- package/dist/esm/deliberations/utils/expert-agent-registration.js +74 -0
- package/dist/esm/deliberations/utils/expert-agent-registration.js.map +1 -0
- package/dist/esm/deliberations/utils/load-committed-expert-agents.d.ts +9 -5
- package/dist/esm/deliberations/utils/load-committed-expert-agents.d.ts.map +1 -1
- package/dist/esm/deliberations/utils/load-committed-expert-agents.js +11 -15
- package/dist/esm/deliberations/utils/load-committed-expert-agents.js.map +1 -1
- package/dist/esm/email/models/email-template.actors-system.definitions.d.ts.map +1 -1
- package/dist/esm/email/models/email-template.actors-system.definitions.js.map +1 -1
- package/dist/esm/email/services/email-spec-context-loader.companion.service.d.ts.map +1 -1
- package/dist/esm/email/services/email-spec-context-loader.companion.service.js.map +1 -1
- package/dist/esm/email/services/email-template.companion.service.d.ts +6 -1
- package/dist/esm/email/services/email-template.companion.service.d.ts.map +1 -1
- package/dist/esm/email/services/email-template.companion.service.js +4 -1
- package/dist/esm/email/services/email-template.companion.service.js.map +1 -1
- package/dist/esm/email/utils/email-labels-file-source.utils.d.ts.map +1 -1
- package/dist/esm/email/utils/email-labels-file-source.utils.js.map +1 -1
- package/dist/esm/email/utils/email-labels-tree.utils.d.ts.map +1 -1
- package/dist/esm/email/utils/email-labels-tree.utils.js.map +1 -1
- package/dist/esm/email/utils/email-template-fs-discovery.utils.d.ts.map +1 -1
- package/dist/esm/email/utils/email-template-fs-discovery.utils.js.map +1 -1
- package/dist/esm/executions/services/companion-actor-execution-persistence.adapter.d.ts.map +1 -1
- package/dist/esm/executions/services/companion-actor-execution-persistence.adapter.js.map +1 -1
- package/dist/esm/executions/services/companion-executions.companion.service.d.ts.map +1 -1
- package/dist/esm/executions/services/companion-executions.companion.service.js.map +1 -1
- package/dist/esm/expert-personas/models/expert-persona-critique.actors-system.definitions.d.ts.map +1 -1
- package/dist/esm/expert-personas/models/expert-persona-critique.actors-system.definitions.js +8 -2
- package/dist/esm/expert-personas/models/expert-persona-critique.actors-system.definitions.js.map +1 -1
- package/dist/esm/expert-personas/models/expert-persona-derivation.actors-system.definitions.d.ts.map +1 -1
- package/dist/esm/expert-personas/models/expert-persona-derivation.actors-system.definitions.js +8 -2
- package/dist/esm/expert-personas/models/expert-persona-derivation.actors-system.definitions.js.map +1 -1
- package/dist/esm/expert-personas/models/expert-persona-derivation.schemas.d.ts +5 -3
- package/dist/esm/expert-personas/models/expert-persona-derivation.schemas.d.ts.map +1 -1
- package/dist/esm/expert-personas/models/expert-persona-derivation.schemas.js +5 -3
- package/dist/esm/expert-personas/models/expert-persona-derivation.schemas.js.map +1 -1
- package/dist/esm/expert-personas/services/expert-persona.companion.service.d.ts +17 -1
- package/dist/esm/expert-personas/services/expert-persona.companion.service.d.ts.map +1 -1
- package/dist/esm/expert-personas/services/expert-persona.companion.service.js +51 -14
- package/dist/esm/expert-personas/services/expert-persona.companion.service.js.map +1 -1
- package/dist/esm/expert-personas/services/persona-source-ownership.d.ts.map +1 -1
- package/dist/esm/expert-personas/services/persona-source-ownership.js.map +1 -1
- package/dist/esm/i18n/components/APPLICATION_LEVEL_ACTIVITY_BAR.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/APPLICATION_LEVEL_ACTIVITY_BAR.en.js.map +1 -1
- package/dist/esm/i18n/components/APPLICATION_LEVEL_COMMAND_MENU.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/APPLICATION_LEVEL_COMMAND_MENU.en.js.map +1 -1
- package/dist/esm/i18n/components/APPLICATION_LEVEL_CONTROL_PANEL.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/APPLICATION_LEVEL_CONTROL_PANEL.en.js.map +1 -1
- package/dist/esm/i18n/components/APPLICATION_LEVEL_MENUBAR.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/APPLICATION_LEVEL_MENUBAR.en.js.map +1 -1
- package/dist/esm/i18n/components/APPLICATION_LEVEL_NAVIGATION_BACK.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/APPLICATION_LEVEL_NAVIGATION_BACK.en.js.map +1 -1
- package/dist/esm/i18n/components/APPLICATION_LEVEL_NOTIFICATION_CENTER.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/APPLICATION_LEVEL_NOTIFICATION_CENTER.en.js.map +1 -1
- package/dist/esm/i18n/components/APPLICATION_LEVEL_QUICK_ACTION_BUTTON.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/APPLICATION_LEVEL_QUICK_ACTION_BUTTON.en.js.map +1 -1
- package/dist/esm/i18n/components/APPLICATION_LEVEL_QUICK_SWITCHER.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/APPLICATION_LEVEL_QUICK_SWITCHER.en.js.map +1 -1
- package/dist/esm/i18n/components/APPLICATION_LEVEL_SIDEBAR.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/APPLICATION_LEVEL_SIDEBAR.en.js.map +1 -1
- package/dist/esm/i18n/components/APPLICATION_LEVEL_STATUS_BAR.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/APPLICATION_LEVEL_STATUS_BAR.en.js.map +1 -1
- package/dist/esm/i18n/components/APPLICATION_LEVEL_TOOLBAR.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/APPLICATION_LEVEL_TOOLBAR.en.js.map +1 -1
- package/dist/esm/i18n/components/APPLICATION_LEVEL_USER_DROPDOWN.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/APPLICATION_LEVEL_USER_DROPDOWN.en.js.map +1 -1
- package/dist/esm/i18n/components/APPLICATION_LEVEL_UTILITY_PANEL.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/APPLICATION_LEVEL_UTILITY_PANEL.en.js.map +1 -1
- package/dist/esm/i18n/components/APP_LAYOUTS_AGENT_WORK_OVERRIDE_RATE_SETTINGS.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/APP_LAYOUTS_AGENT_WORK_OVERRIDE_RATE_SETTINGS.en.js.map +1 -1
- package/dist/esm/i18n/components/APP_LAYOUTS_APPEARANCE_SETTINGS.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/APP_LAYOUTS_APPEARANCE_SETTINGS.en.js.map +1 -1
- package/dist/esm/i18n/components/APP_LAYOUTS_BILLING_SETTINGS.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/APP_LAYOUTS_BILLING_SETTINGS.en.js.map +1 -1
- package/dist/esm/i18n/components/APP_LAYOUTS_CONNECTED_ACCOUNTS_SETTINGS.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/APP_LAYOUTS_CONNECTED_ACCOUNTS_SETTINGS.en.js.map +1 -1
- package/dist/esm/i18n/components/APP_LAYOUTS_CONSENT_GATE.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/APP_LAYOUTS_CONSENT_GATE.en.js.map +1 -1
- package/dist/esm/i18n/components/APP_LAYOUTS_DOCUMENT_ACCEPTANCE_GATE.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/APP_LAYOUTS_DOCUMENT_ACCEPTANCE_GATE.en.js.map +1 -1
- package/dist/esm/i18n/components/APP_LAYOUTS_ERROR_BOUNDARY.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/APP_LAYOUTS_ERROR_BOUNDARY.en.js.map +1 -1
- package/dist/esm/i18n/components/APP_LAYOUTS_HOME.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/APP_LAYOUTS_HOME.en.js.map +1 -1
- package/dist/esm/i18n/components/APP_LAYOUTS_INVITATIONS_SETTINGS.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/APP_LAYOUTS_INVITATIONS_SETTINGS.en.js.map +1 -1
- package/dist/esm/i18n/components/APP_LAYOUTS_MAIN_CONTAINER.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/APP_LAYOUTS_MAIN_CONTAINER.en.js.map +1 -1
- package/dist/esm/i18n/components/APP_LAYOUTS_ROUTER_ERROR_BOUNDARY.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/APP_LAYOUTS_ROUTER_ERROR_BOUNDARY.en.js.map +1 -1
- package/dist/esm/i18n/components/APP_LAYOUTS_SECURITY_SETTINGS.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/APP_LAYOUTS_SECURITY_SETTINGS.en.js.map +1 -1
- package/dist/esm/i18n/components/APP_LAYOUTS_SETTINGS_HUB.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/APP_LAYOUTS_SETTINGS_HUB.en.js.map +1 -1
- package/dist/esm/i18n/components/APP_LAYOUTS_SURFACE_ERROR_BOUNDARY.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/APP_LAYOUTS_SURFACE_ERROR_BOUNDARY.en.js.map +1 -1
- package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_CHART.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_CHART.en.js.map +1 -1
- package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_CHART_WIDGET.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_CHART_WIDGET.en.js.map +1 -1
- package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_EXECUTION.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_EXECUTION.en.js.map +1 -1
- package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_FLOWS_ACTORS.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_FLOWS_ACTORS.en.js.map +1 -1
- package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_NOT_FOUND.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_NOT_FOUND.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_ACTION_BAR.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_ACTION_BAR.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_ACTOR.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_ACTOR.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_AGENT_CONFIG.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_AGENT_CONFIG.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_APPROVAL.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_APPROVAL.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_ARTIFACT.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_ARTIFACT.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_ARTIFACT_BROWSER.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_ARTIFACT_BROWSER.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_CHAIN_OF_THOUGHT.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_CHAIN_OF_THOUGHT.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_CODE_BLOCK.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_CODE_BLOCK.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_CONFIRMATION.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_CONFIRMATION.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_CONTEXT.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_CONTEXT.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_CONVERSATION.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_CONVERSATION.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_DECISION.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_DECISION.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_DIFF_BLOCK.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_DIFF_BLOCK.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_EXECUTION_PLAN.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_EXECUTION_PLAN.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_EXECUTION_STREAM.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_EXECUTION_STREAM.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_FLOW_EXECUTION.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_FLOW_EXECUTION.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_FLOW_NODE.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_FLOW_NODE.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_INLINE_CITATION.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_INLINE_CITATION.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_MESSAGE.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_MESSAGE.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_MODEL_SELECTOR.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_MODEL_SELECTOR.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_OPEN_IN_CHAT.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_OPEN_IN_CHAT.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_PLAN.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_PLAN.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_PROMPT_INPUT.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_PROMPT_INPUT.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_SYSTEM_CATALOG.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_SYSTEM_CATALOG.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_TASK_DETAIL.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_TASK_DETAIL.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_TASK_MEMORY.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_TASK_MEMORY.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_WEB_PREVIEW.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_WEB_PREVIEW.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_BILLING_INVOICE_HISTORY.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_BILLING_INVOICE_HISTORY.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_BILLING_PLAN_CHANGE_PREVIEW.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_BILLING_PLAN_CHANGE_PREVIEW.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_BILLING_PORTAL_LINK.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_BILLING_PORTAL_LINK.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_BILLING_PRICING_TABLE.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_BILLING_PRICING_TABLE.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_BILLING_SUBSCRIPTION_STATUS.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_BILLING_SUBSCRIPTION_STATUS.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_BILLING_USAGE_DASHBOARD.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_BILLING_USAGE_DASHBOARD.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_BREADCRUMB.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_BREADCRUMB.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_BUTTON.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_BUTTON.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_CAROUSEL.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_CAROUSEL.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_CELEBRATION_OVERLAY.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_CELEBRATION_OVERLAY.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_COLOR_INPUT.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_COLOR_INPUT.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_COMMAND.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_COMMAND.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_CONTENT_SECTION_CONTAINER.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_CONTENT_SECTION_CONTAINER.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DATETIME_RANGE_PICKER.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DATETIME_RANGE_PICKER.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DIALOG.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DIALOG.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_ADDRESS.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_ADDRESS.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_BIGDECIMAL.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_BIGDECIMAL.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_BOOLEAN.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_BOOLEAN.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_CODE.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_CODE.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_DURATION.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_DURATION.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE_AUDIO.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE_AUDIO.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE_DOCUMENT.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE_DOCUMENT.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE_GALLERY.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE_GALLERY.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE_IMAGE.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE_IMAGE.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE_VIDEO.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_FILE_VIDEO.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_MONEY.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_MONEY.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_NUMBER.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_NUMBER.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_PHONE.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_PHONE.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_RANGE_BIGDECIMAL.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_RANGE_BIGDECIMAL.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_RANGE_MONEY.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_RANGE_MONEY.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_RANGE_NUMBER.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_RANGE_NUMBER.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DRAWER.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DRAWER.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DURATION.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DURATION.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_ERROR_DISPLAY.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_ERROR_DISPLAY.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_FEATURE_LOCK_BADGE.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_FEATURE_LOCK_BADGE.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_FEATURE_UNAVAILABLE_PROMPT.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_FEATURE_UNAVAILABLE_PROMPT.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_FILE_UPLOAD.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_FILE_UPLOAD.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_ADDRESS.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_ADDRESS.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_BOOLEAN.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_BOOLEAN.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_CODE.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_CODE.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_FILE.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_FILE.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_PHONE.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_PHONE.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_STRING.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_STRING.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_FORM_MESSAGE.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_FORM_MESSAGE.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_IMAGE_CROP.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_IMAGE_CROP.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_LOADING_OVERLAY.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_LOADING_OVERLAY.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_LOADING_SPINNER.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_LOADING_SPINNER.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_OPERATIONS_CONFIRM_CRITICAL.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_OPERATIONS_CONFIRM_CRITICAL.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_OVERLAY_CONTAINER.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_OVERLAY_CONTAINER.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_PAGINATION.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_PAGINATION.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_PASSWORD_INPUT.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_PASSWORD_INPUT.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_RANGE_SLIDER.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_RANGE_SLIDER.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_SELECT_MULTIPLE.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_SELECT_MULTIPLE.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_SHEET.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_SHEET.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_SIDEBAR.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_SIDEBAR.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_TIME_RANGE_PICKER.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_TIME_RANGE_PICKER.en.js.map +1 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_AUTH_CALLBACK.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_AUTH_CALLBACK.en.js.map +1 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_ENROLLMENT_REQUIRED.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_ENROLLMENT_REQUIRED.en.js.map +1 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_FILE_UPLOAD_GRANT.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_FILE_UPLOAD_GRANT.en.js.map +1 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_MAGIC_LINK_VERIFY.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_MAGIC_LINK_VERIFY.en.js.map +1 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_MFA_CHALLENGE.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_MFA_CHALLENGE.en.js.map +1 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_OAUTH_CONSENT.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_OAUTH_CONSENT.en.js.map +1 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_OAUTH_LOGGED_OUT.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_OAUTH_LOGGED_OUT.en.js.map +1 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_OAUTH_LOGOUT_CONFIRM.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_OAUTH_LOGOUT_CONFIRM.en.js.map +1 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_ONE_OFF_SESSION.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_ONE_OFF_SESSION.en.js.map +1 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_ORGANIZATION_ONBOARDING.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_ORGANIZATION_ONBOARDING.en.js.map +1 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_TERMS.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_TERMS.en.js.map +1 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_AUTH.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_AUTH.en.js.map +1 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_CONFIRM_EMAIL.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_CONFIRM_EMAIL.en.js.map +1 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_INVITATION.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_INVITATION.en.js.map +1 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_PASSWORD_LOST.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_PASSWORD_LOST.en.js.map +1 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_REGISTER.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_REGISTER.en.js.map +1 -1
- package/dist/esm/i18n/components/RESOURCES_FIELDS_RESOURCE_REFERENCE.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/RESOURCES_FIELDS_RESOURCE_REFERENCE.en.js.map +1 -1
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_ACTION.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_ACTION.en.js.map +1 -1
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_CONTAINER_NESTED.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_CONTAINER_NESTED.en.js.map +1 -1
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_CREATE.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_CREATE.en.js.map +1 -1
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_DANGER_ZONE.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_DANGER_ZONE.en.js.map +1 -1
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_FILTERS.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_FILTERS.en.js.map +1 -1
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_HEADER.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_HEADER.en.js.map +1 -1
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_LIST.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_LIST.en.js.map +1 -1
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_OPERATIONS_BULK.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_OPERATIONS_BULK.en.js.map +1 -1
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_OPERATIONS_ITEMS.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_OPERATIONS_ITEMS.en.js.map +1 -1
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_PAGINATION.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_PAGINATION.en.js.map +1 -1
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_READ.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_READ.en.js.map +1 -1
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_SEARCH.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_SEARCH.en.js.map +1 -1
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_UPDATE.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_UPDATE.en.js.map +1 -1
- package/dist/esm/i18n/components/guidance_announcement.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/guidance_announcement.en.js.map +1 -1
- package/dist/esm/i18n/components/guidance_banner.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/guidance_banner.en.js.map +1 -1
- package/dist/esm/i18n/components/guidance_card.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/guidance_card.en.js.map +1 -1
- package/dist/esm/i18n/components/guidance_checklist.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/guidance_checklist.en.js.map +1 -1
- package/dist/esm/i18n/components/guidance_checklist_item.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/guidance_checklist_item.en.js.map +1 -1
- package/dist/esm/i18n/components/guidance_modal.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/guidance_modal.en.js.map +1 -1
- package/dist/esm/i18n/components/guidance_onboarding_view.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/guidance_onboarding_view.en.js.map +1 -1
- package/dist/esm/i18n/components/guidance_survey.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/guidance_survey.en.js.map +1 -1
- package/dist/esm/i18n/components/guidance_tooltip.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/guidance_tooltip.en.js.map +1 -1
- package/dist/esm/i18n/components/guidance_tour.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/guidance_tour.en.js.map +1 -1
- package/dist/esm/i18n/components/progression_achievement_badge.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/progression_achievement_badge.en.js.map +1 -1
- package/dist/esm/i18n/components/progression_milestone_tracker.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/progression_milestone_tracker.en.js.map +1 -1
- package/dist/esm/i18n/composite_views/app.creation-conversation.en.d.ts +1 -0
- package/dist/esm/i18n/composite_views/app.creation-conversation.en.d.ts.map +1 -1
- package/dist/esm/i18n/composite_views/app.creation-conversation.en.js +55 -1
- package/dist/esm/i18n/composite_views/app.creation-conversation.en.js.map +1 -1
- package/dist/esm/i18n/composite_views/app.creation-dossier.en.d.ts.map +1 -1
- package/dist/esm/i18n/composite_views/app.creation-dossier.en.js.map +1 -1
- package/dist/esm/i18n/composite_views/app.domain-model.en.d.ts.map +1 -1
- package/dist/esm/i18n/composite_views/app.domain-model.en.js.map +1 -1
- package/dist/esm/i18n/control-plane-label-blocks.d.ts +344 -0
- package/dist/esm/i18n/control-plane-label-blocks.d.ts.map +1 -0
- package/dist/esm/i18n/control-plane-label-blocks.js +115 -0
- package/dist/esm/i18n/control-plane-label-blocks.js.map +1 -0
- package/dist/esm/i18n/errors_guidance/errors-guidance.en.d.ts.map +1 -1
- package/dist/esm/i18n/errors_guidance/errors-guidance.en.js.map +1 -1
- package/dist/esm/i18n/errors_messages/errors-messages.en.d.ts.map +1 -1
- package/dist/esm/i18n/errors_messages/errors-messages.en.js.map +1 -1
- package/dist/esm/i18n/index.d.ts.map +1 -1
- package/dist/esm/i18n/index.js.map +1 -1
- package/dist/esm/i18n/resources/wildoApplicationActorSystemExecutions.en.d.ts +410 -0
- package/dist/esm/i18n/resources/wildoApplicationActorSystemExecutions.en.d.ts.map +1 -1
- package/dist/esm/i18n/resources/wildoApplicationActorSystemExecutions.en.js +13 -145
- package/dist/esm/i18n/resources/wildoApplicationActorSystemExecutions.en.js.map +1 -1
- package/dist/esm/i18n/resources/wildoApplicationActorTasks.en.d.ts +65 -0
- package/dist/esm/i18n/resources/wildoApplicationActorTasks.en.d.ts.map +1 -1
- package/dist/esm/i18n/resources/wildoApplicationActorTasks.en.js +4 -37
- package/dist/esm/i18n/resources/wildoApplicationActorTasks.en.js.map +1 -1
- package/dist/esm/i18n/resources/wildoApplicationFlowSystemExecutions.en.d.ts +65 -0
- package/dist/esm/i18n/resources/wildoApplicationFlowSystemExecutions.en.d.ts.map +1 -1
- package/dist/esm/i18n/resources/wildoApplicationFlowSystemExecutions.en.js +4 -37
- package/dist/esm/i18n/resources/wildoApplicationFlowSystemExecutions.en.js.map +1 -1
- package/dist/esm/i18n/resources/workbenchApplicationSecrets.en.d.ts.map +1 -1
- package/dist/esm/i18n/resources/workbenchApplicationSecrets.en.js.map +1 -1
- package/dist/esm/i18n/resources/workbenchAspects.en.d.ts.map +1 -1
- package/dist/esm/i18n/resources/workbenchAspects.en.js +11 -0
- package/dist/esm/i18n/resources/workbenchAspects.en.js.map +1 -1
- package/dist/esm/i18n/resources/workbenchBuildDispatchPlan.en.d.ts +5 -0
- package/dist/esm/i18n/resources/workbenchBuildDispatchPlan.en.d.ts.map +1 -1
- package/dist/esm/i18n/resources/workbenchBuildDispatchPlan.en.js +5 -0
- package/dist/esm/i18n/resources/workbenchBuildDispatchPlan.en.js.map +1 -1
- package/dist/esm/i18n/resources/workbenchBuildDispatches.en.d.ts.map +1 -1
- package/dist/esm/i18n/resources/workbenchBuildDispatches.en.js.map +1 -1
- package/dist/esm/i18n/resources/workbenchBuildPlanTasks.en.d.ts +1 -1
- package/dist/esm/i18n/resources/workbenchBuildPlanTasks.en.d.ts.map +1 -1
- package/dist/esm/i18n/resources/workbenchBuildPlanTasks.en.js +2 -1
- package/dist/esm/i18n/resources/workbenchBuildPlanTasks.en.js.map +1 -1
- package/dist/esm/i18n/resources/workbenchCodingLaneStatus.en.d.ts.map +1 -1
- package/dist/esm/i18n/resources/workbenchCodingLaneStatus.en.js.map +1 -1
- package/dist/esm/i18n/resources/workbenchCreationHomeLines.en.d.ts.map +1 -1
- package/dist/esm/i18n/resources/workbenchCreationHomeLines.en.js.map +1 -1
- package/dist/esm/i18n/resources/workbenchCreationOutcomes.en.d.ts.map +1 -1
- package/dist/esm/i18n/resources/workbenchCreationOutcomes.en.js.map +1 -1
- package/dist/esm/i18n/resources/workbenchDomainResources.en.d.ts.map +1 -1
- package/dist/esm/i18n/resources/workbenchDomainResources.en.js.map +1 -1
- package/dist/esm/i18n/resources/workbenchDossierEntries.en.d.ts +56 -0
- package/dist/esm/i18n/resources/workbenchDossierEntries.en.d.ts.map +1 -1
- package/dist/esm/i18n/resources/workbenchDossierEntries.en.js +15 -0
- package/dist/esm/i18n/resources/workbenchDossierEntries.en.js.map +1 -1
- package/dist/esm/i18n/resources/workbenchGovernanceDocuments.en.d.ts.map +1 -1
- package/dist/esm/i18n/resources/workbenchGovernanceDocuments.en.js.map +1 -1
- package/dist/esm/i18n/resources/workbenchGovernanceQuestions.en.d.ts.map +1 -1
- package/dist/esm/i18n/resources/workbenchGovernanceQuestions.en.js.map +1 -1
- package/dist/esm/i18n/resources/workbenchParkedCodingQuestions.en.d.ts.map +1 -1
- package/dist/esm/i18n/resources/workbenchParkedCodingQuestions.en.js.map +1 -1
- package/dist/esm/i18n/resources/workbenchPlaybookRuns.en.d.ts.map +1 -1
- package/dist/esm/i18n/resources/workbenchPlaybookRuns.en.js.map +1 -1
- package/dist/esm/i18n/resources/workbenchPlaybooks.en.d.ts.map +1 -1
- package/dist/esm/i18n/resources/workbenchPlaybooks.en.js.map +1 -1
- package/dist/esm/i18n/resources/workbenchRunWriteRecords.en.d.ts.map +1 -1
- package/dist/esm/i18n/resources/workbenchRunWriteRecords.en.js.map +1 -1
- package/dist/esm/i18n/resources/workbenchSpecificationArtifacts.en.d.ts +553 -0
- package/dist/esm/i18n/resources/workbenchSpecificationArtifacts.en.d.ts.map +1 -1
- package/dist/esm/i18n/resources/workbenchSpecificationArtifacts.en.js +187 -5
- package/dist/esm/i18n/resources/workbenchSpecificationArtifacts.en.js.map +1 -1
- package/dist/esm/i18n/resources/workbenchTraceSessions.en.d.ts.map +1 -1
- package/dist/esm/i18n/resources/workbenchTraceSessions.en.js.map +1 -1
- package/dist/esm/i18n/resources/workbenchWaitingPlaybookRuns.en.d.ts.map +1 -1
- package/dist/esm/i18n/resources/workbenchWaitingPlaybookRuns.en.js.map +1 -1
- package/dist/esm/i18n/system_enums/application-creation.en.d.ts +60 -0
- package/dist/esm/i18n/system_enums/application-creation.en.d.ts.map +1 -1
- package/dist/esm/i18n/system_enums/application-creation.en.js +66 -1
- package/dist/esm/i18n/system_enums/application-creation.en.js.map +1 -1
- package/dist/esm/i18n/system_enums/compliance-programme.en.d.ts.map +1 -1
- package/dist/esm/i18n/system_enums/compliance-programme.en.js.map +1 -1
- package/dist/esm/i18n/system_enums/flows-actors.en.d.ts.map +1 -1
- package/dist/esm/i18n/system_enums/flows-actors.en.js.map +1 -1
- package/dist/esm/i18n/system_enums/localization.en.d.ts +82 -0
- package/dist/esm/i18n/system_enums/localization.en.d.ts.map +1 -0
- package/dist/esm/i18n/system_enums/localization.en.js +82 -0
- package/dist/esm/i18n/system_enums/localization.en.js.map +1 -0
- package/dist/esm/i18n/system_enums/market.en.d.ts.map +1 -1
- package/dist/esm/i18n/system_enums/market.en.js.map +1 -1
- package/dist/esm/i18n/system_enums/processor-register.en.d.ts.map +1 -1
- package/dist/esm/i18n/system_enums/processor-register.en.js.map +1 -1
- package/dist/esm/i18n/system_enums/risk-register.en.d.ts +1 -0
- package/dist/esm/i18n/system_enums/risk-register.en.d.ts.map +1 -1
- package/dist/esm/i18n/system_enums/risk-register.en.js +1 -0
- package/dist/esm/i18n/system_enums/risk-register.en.js.map +1 -1
- package/dist/esm/i18n/system_enums/workbench-build.en.d.ts.map +1 -1
- package/dist/esm/i18n/system_enums/workbench-build.en.js.map +1 -1
- package/dist/esm/i18n/system_enums/workbench-creation-home.en.d.ts +1 -0
- package/dist/esm/i18n/system_enums/workbench-creation-home.en.d.ts.map +1 -1
- package/dist/esm/i18n/system_enums/workbench-creation-home.en.js +2 -0
- package/dist/esm/i18n/system_enums/workbench-creation-home.en.js.map +1 -1
- package/dist/esm/i18n/system_enums/workbench-dossier.en.d.ts +10 -0
- package/dist/esm/i18n/system_enums/workbench-dossier.en.d.ts.map +1 -1
- package/dist/esm/i18n/system_enums/workbench-dossier.en.js +13 -0
- package/dist/esm/i18n/system_enums/workbench-dossier.en.js.map +1 -1
- package/dist/esm/i18n/system_enums/workbench-playbook-run.en.d.ts.map +1 -1
- package/dist/esm/i18n/system_enums/workbench-playbook-run.en.js.map +1 -1
- package/dist/esm/i18n/system_enums/workbench-secrets.en.d.ts.map +1 -1
- package/dist/esm/i18n/system_enums/workbench-secrets.en.js.map +1 -1
- package/dist/esm/i18n/system_enums/workbench-specification-artifact.en.d.ts.map +1 -1
- package/dist/esm/i18n/system_enums/workbench-specification-artifact.en.js.map +1 -1
- package/dist/esm/i18n-labelling/models/email-template-labelling-unit.models.d.ts.map +1 -1
- package/dist/esm/i18n-labelling/models/email-template-labelling-unit.models.js.map +1 -1
- package/dist/esm/i18n-labelling/models/labelling-progress.models.d.ts +43 -0
- package/dist/esm/i18n-labelling/models/labelling-progress.models.d.ts.map +1 -0
- package/dist/esm/i18n-labelling/models/labelling-progress.models.js +34 -0
- package/dist/esm/i18n-labelling/models/labelling-progress.models.js.map +1 -0
- package/dist/esm/i18n-labelling/models/labelling-unit.models.d.ts +29 -2
- package/dist/esm/i18n-labelling/models/labelling-unit.models.d.ts.map +1 -1
- package/dist/esm/i18n-labelling/models/labelling-unit.models.js +17 -0
- package/dist/esm/i18n-labelling/models/labelling-unit.models.js.map +1 -1
- package/dist/esm/i18n-labelling/models/labelling.actors-system.definitions.d.ts.map +1 -1
- package/dist/esm/i18n-labelling/models/labelling.actors-system.definitions.js.map +1 -1
- package/dist/esm/i18n-labelling/services/component-labels-bootstrap.companion.service.d.ts.map +1 -1
- package/dist/esm/i18n-labelling/services/component-labels-bootstrap.companion.service.js.map +1 -1
- package/dist/esm/i18n-labelling/services/email-template-labelling-units.companion.service.d.ts.map +1 -1
- package/dist/esm/i18n-labelling/services/email-template-labelling-units.companion.service.js.map +1 -1
- package/dist/esm/i18n-labelling/services/labelling-planner.companion.service.d.ts +5 -0
- package/dist/esm/i18n-labelling/services/labelling-planner.companion.service.d.ts.map +1 -1
- package/dist/esm/i18n-labelling/services/labelling-planner.companion.service.js +44 -4
- package/dist/esm/i18n-labelling/services/labelling-planner.companion.service.js.map +1 -1
- package/dist/esm/i18n-labelling/services/labelling-spec-context-loader.companion.service.d.ts.map +1 -1
- package/dist/esm/i18n-labelling/services/labelling-spec-context-loader.companion.service.js.map +1 -1
- package/dist/esm/i18n-labelling/services/labellize-orchestrator.companion.service.d.ts +8 -0
- package/dist/esm/i18n-labelling/services/labellize-orchestrator.companion.service.d.ts.map +1 -1
- package/dist/esm/i18n-labelling/services/labellize-orchestrator.companion.service.js +97 -56
- package/dist/esm/i18n-labelling/services/labellize-orchestrator.companion.service.js.map +1 -1
- package/dist/esm/i18n-labelling/services/translate-orchestrator.companion.service.d.ts +18 -0
- package/dist/esm/i18n-labelling/services/translate-orchestrator.companion.service.d.ts.map +1 -1
- package/dist/esm/i18n-labelling/services/translate-orchestrator.companion.service.js +269 -153
- package/dist/esm/i18n-labelling/services/translate-orchestrator.companion.service.js.map +1 -1
- package/dist/esm/i18n-labelling/utils/application-tone-of-voice.utils.d.ts.map +1 -1
- package/dist/esm/i18n-labelling/utils/application-tone-of-voice.utils.js.map +1 -1
- package/dist/esm/i18n-labelling/utils/declared-refusal-codes.utils.d.ts.map +1 -1
- package/dist/esm/i18n-labelling/utils/declared-refusal-codes.utils.js.map +1 -1
- package/dist/esm/i18n-labelling/utils/email-template-translation.utils.d.ts.map +1 -1
- package/dist/esm/i18n-labelling/utils/email-template-translation.utils.js.map +1 -1
- package/dist/esm/i18n-labelling/utils/frontend-derived-label-keys.utils.d.ts.map +1 -1
- package/dist/esm/i18n-labelling/utils/frontend-derived-label-keys.utils.js.map +1 -1
- package/dist/esm/i18n-labelling/utils/guidance-keys.utils.d.ts.map +1 -1
- package/dist/esm/i18n-labelling/utils/guidance-keys.utils.js.map +1 -1
- package/dist/esm/i18n-labelling/utils/incomplete-plan-refusal.utils.d.ts.map +1 -1
- package/dist/esm/i18n-labelling/utils/incomplete-plan-refusal.utils.js.map +1 -1
- package/dist/esm/i18n-labelling/utils/label-file-source.utils.d.ts.map +1 -1
- package/dist/esm/i18n-labelling/utils/label-file-source.utils.js.map +1 -1
- package/dist/esm/i18n-labelling/utils/label-placeholder-drift.utils.d.ts.map +1 -1
- package/dist/esm/i18n-labelling/utils/label-placeholder-drift.utils.js.map +1 -1
- package/dist/esm/i18n-labelling/utils/labelling-concurrency.utils.d.ts +41 -0
- package/dist/esm/i18n-labelling/utils/labelling-concurrency.utils.d.ts.map +1 -0
- package/dist/esm/i18n-labelling/utils/labelling-concurrency.utils.js +47 -0
- package/dist/esm/i18n-labelling/utils/labelling-concurrency.utils.js.map +1 -0
- package/dist/esm/i18n-labelling/utils/orphan-label-artifacts.utils.d.ts.map +1 -1
- package/dist/esm/i18n-labelling/utils/orphan-label-artifacts.utils.js.map +1 -1
- package/dist/esm/i18n-labelling/utils/per-unit-file.utils.d.ts +12 -0
- package/dist/esm/i18n-labelling/utils/per-unit-file.utils.d.ts.map +1 -1
- package/dist/esm/i18n-labelling/utils/per-unit-file.utils.js +10 -2
- package/dist/esm/i18n-labelling/utils/per-unit-file.utils.js.map +1 -1
- package/dist/esm/i18n-labelling/utils/provider-display-name-keys.utils.d.ts.map +1 -1
- package/dist/esm/i18n-labelling/utils/provider-display-name-keys.utils.js.map +1 -1
- package/dist/esm/i18n-labelling/utils/resource-section-label-keys.utils.d.ts.map +1 -1
- package/dist/esm/i18n-labelling/utils/resource-section-label-keys.utils.js.map +1 -1
- package/dist/esm/i18n-labelling/utils/role-lifecycle-keys.utils.d.ts.map +1 -1
- package/dist/esm/i18n-labelling/utils/role-lifecycle-keys.utils.js.map +1 -1
- package/dist/esm/i18n-labelling/utils/schema-fields-extractor.utils.d.ts +8 -1
- package/dist/esm/i18n-labelling/utils/schema-fields-extractor.utils.d.ts.map +1 -1
- package/dist/esm/i18n-labelling/utils/schema-fields-extractor.utils.js +9 -2
- package/dist/esm/i18n-labelling/utils/schema-fields-extractor.utils.js.map +1 -1
- package/dist/esm/i18n-labelling/utils/staged-label-file-writer.utils.d.ts +89 -0
- package/dist/esm/i18n-labelling/utils/staged-label-file-writer.utils.d.ts.map +1 -0
- package/dist/esm/i18n-labelling/utils/staged-label-file-writer.utils.js +229 -0
- package/dist/esm/i18n-labelling/utils/staged-label-file-writer.utils.js.map +1 -0
- package/dist/esm/i18n-labelling/utils/structured-chunk-completion.utils.d.ts +13 -7
- package/dist/esm/i18n-labelling/utils/structured-chunk-completion.utils.d.ts.map +1 -1
- package/dist/esm/i18n-labelling/utils/structured-chunk-completion.utils.js +13 -7
- package/dist/esm/i18n-labelling/utils/structured-chunk-completion.utils.js.map +1 -1
- package/dist/esm/i18n-labelling/utils/system-of-record-display-name-keys.utils.d.ts.map +1 -1
- package/dist/esm/i18n-labelling/utils/system-of-record-display-name-keys.utils.js.map +1 -1
- package/dist/esm/i18n-labelling/utils/translate-locale-contract.utils.d.ts.map +1 -1
- package/dist/esm/i18n-labelling/utils/translate-locale-contract.utils.js.map +1 -1
- package/dist/esm/index.d.ts.map +1 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/market/services/market-generation.companion.service.d.ts.map +1 -1
- package/dist/esm/market/services/market-generation.companion.service.js.map +1 -1
- package/dist/esm/meta-workflows/models/application-build.actors-system.definitions.d.ts.map +1 -1
- package/dist/esm/meta-workflows/models/application-build.actors-system.definitions.js.map +1 -1
- package/dist/esm/meta-workflows/models/application-coding-agent.actors-system.definitions.d.ts.map +1 -1
- package/dist/esm/meta-workflows/models/application-coding-agent.actors-system.definitions.js +3 -3
- package/dist/esm/meta-workflows/models/application-coding-agent.actors-system.definitions.js.map +1 -1
- package/dist/esm/meta-workflows/models/application-line-catalog.models.d.ts.map +1 -1
- package/dist/esm/meta-workflows/models/application-line-catalog.models.js.map +1 -1
- package/dist/esm/meta-workflows/models/application-research-agent.actors-system.definitions.d.ts.map +1 -1
- package/dist/esm/meta-workflows/models/application-research-agent.actors-system.definitions.js.map +1 -1
- package/dist/esm/meta-workflows/models/brief-adequacy.actors-system.definitions.d.ts.map +1 -1
- package/dist/esm/meta-workflows/models/brief-adequacy.actors-system.definitions.js.map +1 -1
- package/dist/esm/meta-workflows/models/build-task-rearm.models.d.ts +85 -1
- package/dist/esm/meta-workflows/models/build-task-rearm.models.d.ts.map +1 -1
- package/dist/esm/meta-workflows/models/build-task-rearm.models.js +101 -0
- package/dist/esm/meta-workflows/models/build-task-rearm.models.js.map +1 -1
- package/dist/esm/meta-workflows/models/carried-verification-failure.models.d.ts.map +1 -1
- package/dist/esm/meta-workflows/models/carried-verification-failure.models.js.map +1 -1
- package/dist/esm/meta-workflows/models/composite-round-relaunch.models.d.ts.map +1 -1
- package/dist/esm/meta-workflows/models/composite-round-relaunch.models.js.map +1 -1
- package/dist/esm/meta-workflows/models/creation-intervention.models.d.ts +308 -0
- package/dist/esm/meta-workflows/models/creation-intervention.models.d.ts.map +1 -0
- package/dist/esm/meta-workflows/models/creation-intervention.models.js +365 -0
- package/dist/esm/meta-workflows/models/creation-intervention.models.js.map +1 -0
- package/dist/esm/meta-workflows/models/generation-step-progress.models.d.ts +61 -0
- package/dist/esm/meta-workflows/models/generation-step-progress.models.d.ts.map +1 -0
- package/dist/esm/meta-workflows/models/generation-step-progress.models.js +58 -0
- package/dist/esm/meta-workflows/models/generation-step-progress.models.js.map +1 -0
- package/dist/esm/meta-workflows/models/human-decision-settler.models.d.ts.map +1 -1
- package/dist/esm/meta-workflows/models/human-decision-settler.models.js.map +1 -1
- package/dist/esm/meta-workflows/models/meta-workflows-lane.models.d.ts +10 -6
- package/dist/esm/meta-workflows/models/meta-workflows-lane.models.d.ts.map +1 -1
- package/dist/esm/meta-workflows/models/meta-workflows-lane.models.js +11 -6
- package/dist/esm/meta-workflows/models/meta-workflows-lane.models.js.map +1 -1
- package/dist/esm/meta-workflows/models/meta-workflows.actors-system.definitions.d.ts.map +1 -1
- package/dist/esm/meta-workflows/models/meta-workflows.actors-system.definitions.js.map +1 -1
- package/dist/esm/meta-workflows/models/playbook-run-checkpoint.models.d.ts +3 -0
- package/dist/esm/meta-workflows/models/playbook-run-checkpoint.models.d.ts.map +1 -1
- package/dist/esm/meta-workflows/models/playbook-run-checkpoint.models.js +8 -1
- package/dist/esm/meta-workflows/models/playbook-run-checkpoint.models.js.map +1 -1
- package/dist/esm/meta-workflows/models/playbook-run-record.models.d.ts +26 -0
- package/dist/esm/meta-workflows/models/playbook-run-record.models.d.ts.map +1 -1
- package/dist/esm/meta-workflows/models/playbook-run-record.models.js +66 -10
- package/dist/esm/meta-workflows/models/playbook-run-record.models.js.map +1 -1
- package/dist/esm/meta-workflows/models/playbook-step-schema-namespaces.models.d.ts.map +1 -1
- package/dist/esm/meta-workflows/models/playbook-step-schema-namespaces.models.js.map +1 -1
- package/dist/esm/meta-workflows/models/website-copy-review.actors-system.definitions.d.ts +36 -0
- package/dist/esm/meta-workflows/models/website-copy-review.actors-system.definitions.d.ts.map +1 -0
- package/dist/esm/meta-workflows/models/website-copy-review.actors-system.definitions.js +97 -0
- package/dist/esm/meta-workflows/models/website-copy-review.actors-system.definitions.js.map +1 -0
- package/dist/esm/meta-workflows/models/website-copy-review.models.d.ts +124 -0
- package/dist/esm/meta-workflows/models/website-copy-review.models.d.ts.map +1 -0
- package/dist/esm/meta-workflows/models/website-copy-review.models.js +74 -0
- package/dist/esm/meta-workflows/models/website-copy-review.models.js.map +1 -0
- package/dist/esm/meta-workflows/services/application-assembly-checks.companion.utils.d.ts +13 -0
- package/dist/esm/meta-workflows/services/application-assembly-checks.companion.utils.d.ts.map +1 -0
- package/dist/esm/meta-workflows/services/application-assembly-checks.companion.utils.js +33 -0
- package/dist/esm/meta-workflows/services/application-assembly-checks.companion.utils.js.map +1 -0
- package/dist/esm/meta-workflows/services/application-assembly-repair.companion.utils.d.ts +145 -0
- package/dist/esm/meta-workflows/services/application-assembly-repair.companion.utils.d.ts.map +1 -0
- package/dist/esm/meta-workflows/services/application-assembly-repair.companion.utils.js +179 -0
- package/dist/esm/meta-workflows/services/application-assembly-repair.companion.utils.js.map +1 -0
- package/dist/esm/meta-workflows/services/application-build-dispatch.companion.service.d.ts +672 -24
- package/dist/esm/meta-workflows/services/application-build-dispatch.companion.service.d.ts.map +1 -1
- package/dist/esm/meta-workflows/services/application-build-dispatch.companion.service.js +1887 -74
- package/dist/esm/meta-workflows/services/application-build-dispatch.companion.service.js.map +1 -1
- package/dist/esm/meta-workflows/services/application-build-experience-skills.companion.service.d.ts.map +1 -1
- package/dist/esm/meta-workflows/services/application-build-experience-skills.companion.service.js.map +1 -1
- package/dist/esm/meta-workflows/services/application-build-generation-step.companion.service.d.ts +232 -14
- package/dist/esm/meta-workflows/services/application-build-generation-step.companion.service.d.ts.map +1 -1
- package/dist/esm/meta-workflows/services/application-build-generation-step.companion.service.js +407 -55
- package/dist/esm/meta-workflows/services/application-build-generation-step.companion.service.js.map +1 -1
- package/dist/esm/meta-workflows/services/application-build-task-coding-policy.companion.service.d.ts +158 -3
- package/dist/esm/meta-workflows/services/application-build-task-coding-policy.companion.service.d.ts.map +1 -1
- package/dist/esm/meta-workflows/services/application-build-task-coding-policy.companion.service.js +446 -18
- package/dist/esm/meta-workflows/services/application-build-task-coding-policy.companion.service.js.map +1 -1
- package/dist/esm/meta-workflows/services/application-build-website-context.companion.service.d.ts +130 -2
- package/dist/esm/meta-workflows/services/application-build-website-context.companion.service.d.ts.map +1 -1
- package/dist/esm/meta-workflows/services/application-build-website-context.companion.service.js +266 -10
- package/dist/esm/meta-workflows/services/application-build-website-context.companion.service.js.map +1 -1
- package/dist/esm/meta-workflows/services/application-build-website-copy-review.companion.service.d.ts +122 -0
- package/dist/esm/meta-workflows/services/application-build-website-copy-review.companion.service.d.ts.map +1 -0
- package/dist/esm/meta-workflows/services/application-build-website-copy-review.companion.service.js +295 -0
- package/dist/esm/meta-workflows/services/application-build-website-copy-review.companion.service.js.map +1 -0
- package/dist/esm/meta-workflows/services/application-enabled-surface-brief.companion.utils.d.ts +22 -0
- package/dist/esm/meta-workflows/services/application-enabled-surface-brief.companion.utils.d.ts.map +1 -0
- package/dist/esm/meta-workflows/services/application-enabled-surface-brief.companion.utils.js +45 -0
- package/dist/esm/meta-workflows/services/application-enabled-surface-brief.companion.utils.js.map +1 -0
- package/dist/esm/meta-workflows/services/application-maturity-executor.companion.service.d.ts.map +1 -1
- package/dist/esm/meta-workflows/services/application-maturity-executor.companion.service.js +10 -11
- package/dist/esm/meta-workflows/services/application-maturity-executor.companion.service.js.map +1 -1
- package/dist/esm/meta-workflows/services/build-plan-authoring.companion.service.d.ts.map +1 -1
- package/dist/esm/meta-workflows/services/build-plan-authoring.companion.service.js.map +1 -1
- package/dist/esm/meta-workflows/services/build-task-brief-application-facts.companion.d.ts +53 -0
- package/dist/esm/meta-workflows/services/build-task-brief-application-facts.companion.d.ts.map +1 -0
- package/dist/esm/meta-workflows/services/build-task-brief-application-facts.companion.js +97 -0
- package/dist/esm/meta-workflows/services/build-task-brief-application-facts.companion.js.map +1 -0
- package/dist/esm/meta-workflows/services/capability-composition-executor.companion.service.d.ts.map +1 -1
- package/dist/esm/meta-workflows/services/capability-composition-executor.companion.service.js +10 -11
- package/dist/esm/meta-workflows/services/capability-composition-executor.companion.service.js.map +1 -1
- package/dist/esm/meta-workflows/services/creation-intervention-ledger.companion.service.d.ts +82 -0
- package/dist/esm/meta-workflows/services/creation-intervention-ledger.companion.service.d.ts.map +1 -0
- package/dist/esm/meta-workflows/services/creation-intervention-ledger.companion.service.js +291 -0
- package/dist/esm/meta-workflows/services/creation-intervention-ledger.companion.service.js.map +1 -0
- package/dist/esm/meta-workflows/services/creation-lane-preflight.companion.service.d.ts +76 -0
- package/dist/esm/meta-workflows/services/creation-lane-preflight.companion.service.d.ts.map +1 -0
- package/dist/esm/meta-workflows/services/creation-lane-preflight.companion.service.js +88 -0
- package/dist/esm/meta-workflows/services/creation-lane-preflight.companion.service.js.map +1 -0
- package/dist/esm/meta-workflows/services/creation-run-report.companion.service.d.ts +53 -0
- package/dist/esm/meta-workflows/services/creation-run-report.companion.service.d.ts.map +1 -0
- package/dist/esm/meta-workflows/services/creation-run-report.companion.service.js +164 -0
- package/dist/esm/meta-workflows/services/creation-run-report.companion.service.js.map +1 -0
- package/dist/esm/meta-workflows/services/dossier-write-queue.companion.utils.d.ts +37 -0
- package/dist/esm/meta-workflows/services/dossier-write-queue.companion.utils.d.ts.map +1 -0
- package/dist/esm/meta-workflows/services/dossier-write-queue.companion.utils.js +52 -0
- package/dist/esm/meta-workflows/services/dossier-write-queue.companion.utils.js.map +1 -0
- package/dist/esm/meta-workflows/services/dossier.companion.service.d.ts +79 -14
- package/dist/esm/meta-workflows/services/dossier.companion.service.d.ts.map +1 -1
- package/dist/esm/meta-workflows/services/dossier.companion.service.js +185 -29
- package/dist/esm/meta-workflows/services/dossier.companion.service.js.map +1 -1
- package/dist/esm/meta-workflows/services/engine-settings-destination-catalog.companion.d.ts.map +1 -1
- package/dist/esm/meta-workflows/services/engine-settings-destination-catalog.companion.js.map +1 -1
- package/dist/esm/meta-workflows/services/execution-trace-read.companion.service.d.ts.map +1 -1
- package/dist/esm/meta-workflows/services/execution-trace-read.companion.service.js.map +1 -1
- package/dist/esm/meta-workflows/services/external-authentication-brief.companion.utils.d.ts.map +1 -1
- package/dist/esm/meta-workflows/services/external-authentication-brief.companion.utils.js.map +1 -1
- package/dist/esm/meta-workflows/services/foundation-executor.companion.service.d.ts +52 -4
- package/dist/esm/meta-workflows/services/foundation-executor.companion.service.d.ts.map +1 -1
- package/dist/esm/meta-workflows/services/foundation-executor.companion.service.js +134 -62
- package/dist/esm/meta-workflows/services/foundation-executor.companion.service.js.map +1 -1
- package/dist/esm/meta-workflows/services/governed-document-texts.companion.d.ts.map +1 -1
- package/dist/esm/meta-workflows/services/governed-document-texts.companion.js.map +1 -1
- package/dist/esm/meta-workflows/services/governed-documents-pdf.companion.d.ts.map +1 -1
- package/dist/esm/meta-workflows/services/governed-documents-pdf.companion.js.map +1 -1
- package/dist/esm/meta-workflows/services/interview-answer-proposal.companion.d.ts +67 -0
- package/dist/esm/meta-workflows/services/interview-answer-proposal.companion.d.ts.map +1 -0
- package/dist/esm/meta-workflows/services/interview-answer-proposal.companion.js +64 -0
- package/dist/esm/meta-workflows/services/interview-answer-proposal.companion.js.map +1 -0
- package/dist/esm/meta-workflows/services/landed-module-import.companion.d.ts.map +1 -1
- package/dist/esm/meta-workflows/services/landed-module-import.companion.js.map +1 -1
- package/dist/esm/meta-workflows/services/playbook-execution-trace.companion.service.d.ts.map +1 -1
- package/dist/esm/meta-workflows/services/playbook-execution-trace.companion.service.js.map +1 -1
- package/dist/esm/meta-workflows/services/playbook-instance.companion.service.d.ts.map +1 -1
- package/dist/esm/meta-workflows/services/playbook-instance.companion.service.js +61 -20
- package/dist/esm/meta-workflows/services/playbook-instance.companion.service.js.map +1 -1
- package/dist/esm/meta-workflows/services/playbook-run-write-register.companion.service.d.ts +134 -4
- package/dist/esm/meta-workflows/services/playbook-run-write-register.companion.service.d.ts.map +1 -1
- package/dist/esm/meta-workflows/services/playbook-run-write-register.companion.service.js +390 -7
- package/dist/esm/meta-workflows/services/playbook-run-write-register.companion.service.js.map +1 -1
- package/dist/esm/meta-workflows/services/playbook-run.companion.service.d.ts +166 -7
- package/dist/esm/meta-workflows/services/playbook-run.companion.service.d.ts.map +1 -1
- package/dist/esm/meta-workflows/services/playbook-run.companion.service.js +703 -116
- package/dist/esm/meta-workflows/services/playbook-run.companion.service.js.map +1 -1
- package/dist/esm/meta-workflows/services/playbook-spend-meter.companion.service.d.ts +62 -1
- package/dist/esm/meta-workflows/services/playbook-spend-meter.companion.service.d.ts.map +1 -1
- package/dist/esm/meta-workflows/services/playbook-spend-meter.companion.service.js +152 -2
- package/dist/esm/meta-workflows/services/playbook-spend-meter.companion.service.js.map +1 -1
- package/dist/esm/meta-workflows/services/schema-plan-freshness-loop.companion.d.ts.map +1 -1
- package/dist/esm/meta-workflows/services/schema-plan-freshness-loop.companion.js.map +1 -1
- package/dist/esm/meta-workflows/utils/unified-diff.companion.utils.d.ts.map +1 -1
- package/dist/esm/meta-workflows/utils/unified-diff.companion.utils.js.map +1 -1
- package/dist/esm/technical-doc/services/technical-doc.companion.service.d.ts.map +1 -1
- package/dist/esm/technical-doc/services/technical-doc.companion.service.js.map +1 -1
- package/dist/esm/technical-doc/services/technical-documentation-application-derivation.companion.service.d.ts.map +1 -1
- package/dist/esm/technical-doc/services/technical-documentation-application-derivation.companion.service.js.map +1 -1
- package/dist/esm/technical-doc/services/technical-documentation-environment-identity.companion.service.d.ts.map +1 -1
- package/dist/esm/technical-doc/services/technical-documentation-environment-identity.companion.service.js.map +1 -1
- package/dist/esm/technical-doc/services/technical-documentation-pilot-assets.companion.service.d.ts.map +1 -1
- package/dist/esm/technical-doc/services/technical-documentation-pilot-assets.companion.service.js.map +1 -1
- package/dist/esm/technical-doc/services/technical-documentation-pilot.companion.service.d.ts.map +1 -1
- package/dist/esm/technical-doc/services/technical-documentation-pilot.companion.service.js.map +1 -1
- package/package.json +22 -18
- package/dist/esm/__tests__/asset-noop.d.ts +0 -3
- package/dist/esm/__tests__/asset-noop.d.ts.map +0 -1
- package/dist/esm/__tests__/asset-noop.js +0 -2
- package/dist/esm/__tests__/asset-noop.js.map +0 -1
- package/dist/esm/__tests__/chdir-dogfood-app.setup.d.ts +0 -2
- package/dist/esm/__tests__/chdir-dogfood-app.setup.d.ts.map +0 -1
- package/dist/esm/__tests__/chdir-dogfood-app.setup.js +0 -44
- package/dist/esm/__tests__/chdir-dogfood-app.setup.js.map +0 -1
- package/dist/esm/__tests__/internal-test-view.d.ts +0 -39
- package/dist/esm/__tests__/internal-test-view.d.ts.map +0 -1
- package/dist/esm/__tests__/internal-test-view.js +0 -2
- package/dist/esm/__tests__/internal-test-view.js.map +0 -1
- package/dist/esm/claude-cli/services/__tests__/support/in-memory-coding-actor-plane.d.ts +0 -50
- package/dist/esm/claude-cli/services/__tests__/support/in-memory-coding-actor-plane.d.ts.map +0 -1
- package/dist/esm/claude-cli/services/__tests__/support/in-memory-coding-actor-plane.js +0 -157
- package/dist/esm/claude-cli/services/__tests__/support/in-memory-coding-actor-plane.js.map +0 -1
- package/dist/esm/meta-workflows/services/__tests__/application-build-task-coding.companion.test-fixtures.d.ts +0 -8
- package/dist/esm/meta-workflows/services/__tests__/application-build-task-coding.companion.test-fixtures.d.ts.map +0 -1
- package/dist/esm/meta-workflows/services/__tests__/application-build-task-coding.companion.test-fixtures.js +0 -43
- package/dist/esm/meta-workflows/services/__tests__/application-build-task-coding.companion.test-fixtures.js.map +0 -1
- package/dist/esm/meta-workflows/services/__tests__/support/in-memory-actor-plane.d.ts +0 -79
- package/dist/esm/meta-workflows/services/__tests__/support/in-memory-actor-plane.d.ts.map +0 -1
- package/dist/esm/meta-workflows/services/__tests__/support/in-memory-actor-plane.js +0 -193
- package/dist/esm/meta-workflows/services/__tests__/support/in-memory-actor-plane.js.map +0 -1
|
@@ -10,43 +10,56 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
10
10
|
var __param = (this && this.__param) || function (paramIndex, decorator) {
|
|
11
11
|
return function (target, key) { decorator(target, key, paramIndex); }
|
|
12
12
|
};
|
|
13
|
+
import { createHash } from 'node:crypto';
|
|
13
14
|
import { readdirSync } from 'node:fs';
|
|
14
15
|
import { readFile } from 'node:fs/promises';
|
|
15
16
|
import { join } from 'node:path';
|
|
16
17
|
import { inject, injectable } from 'inversify';
|
|
17
18
|
import { ApplicationSchemaPlanObligation } from '../../core/config/application-schema-plan-obligation.companion.utils.js';
|
|
18
19
|
import { experienceTaskSkillRefs, taskHasExperienceProduct } from './application-build-experience-skills.companion.service.js';
|
|
19
|
-
import { buildWebsitePlanContextSource, websiteTaskSkillRefs } from './application-build-website-context.companion.service.js';
|
|
20
|
+
import { buildWebsitePlanContextSource, citedRequirementRefsByWebsiteTask, deliveringTasksFor, deriveWebsiteClaimDelivery, describeWebsiteTaskCopySubjects, websiteTaskSkillRefs, } from './application-build-website-context.companion.service.js';
|
|
21
|
+
import { collectWebsiteCopyDeclarations, currentWebsiteCopy, reviewWebsiteTaskCopy, } from './application-build-website-copy-review.companion.service.js';
|
|
22
|
+
import { readWebsiteCopyReview, WebsiteCopyReviewOutcome } from '../models/website-copy-review.models.js';
|
|
23
|
+
import { WEBSITE_COPY_REVIEW_JUDGE_AGENT_REF, WebsiteCopyReviewVerdictOutputSchema } from '../models/website-copy-review.actors-system.definitions.js';
|
|
20
24
|
import { WORKBENCH_TASK_CORRELATION_DOMAIN, Workbench_BuildDispatchPhase, Workbench_BuildTaskStuckReason, WorkbenchBuildPlanTaskStatus, WorkbenchTaskCorrelationRef, sanitizeWorkbenchCreationPlaneIdentity, } from '@wildo-ai/platform-core-shared';
|
|
21
|
-
import { composeBuildTaskCodingContract, slugifyRegistryIdentifier, decidedFamilyValuesFromCompanionExports, indexDecidedAspects, } from '@wildo-ai/application-creation-runtime';
|
|
25
|
+
import { assemblyRepairTaskRef, composeAssemblyRepairCodingContract, composeBuildTaskCodingContract, slugifyRegistryIdentifier, decidedFamilyValuesFromCompanionExports, indexDecidedAspects, mergePlaybookSpend, PlaybookSpendMeasurement, readApplicationDisplayName, readEngineCapabilityEnabled, SAAS_CONFIG_FILE_NAME, } from '@wildo-ai/application-creation-runtime';
|
|
22
26
|
import { SAAS_SERVICE_TYPES, describeCaughtError } from '@wildo-ai/saas-backend-lib';
|
|
23
27
|
import { Actor_Task_Topics, FlowsActors_Status } from '@wildo-ai/saas-models';
|
|
24
|
-
import {
|
|
28
|
+
import { PER_SERVICE_WEBSITE_CONFIG_FILE_NAME, resolveStaticWebsiteServiceEntry } from '@wildo-ai/saas-website/config-loader';
|
|
29
|
+
import { ApplicationSpecificationFamily, BUILD_PLAN_TASK_GRAPH_HARD_FLOOR_CODES, BuildPlanResourceStage, BuildPlanTaskGraphSchema, BuildPlanTaskTargetKind, BuildPlanTaskProductKind, DomainPlanTenancyModel, MetaWorkflow_FunctionalTopic, PlacementDisposition, PlacementPlanSchema, PlacementSurface, RoadmapSnapshotSchema, selectReadyBuildPlanTasks, validateBuildPlanTaskGraph, } from '@wildo-ai/saas-specifications/application-creation';
|
|
25
30
|
import { relatedWorkspaceResources } from '../../core/introspection/workspace-element-index.companion.js';
|
|
26
31
|
import { describeWorkspaceFreshness, readWorkspaceElements } from '../../core/introspection/workspace-elements.companion.js';
|
|
27
32
|
import { COMPANION_SERVICE_TYPES } from '../../core/inject/models/service-types.js';
|
|
28
33
|
import { CompanionIntrospectionService } from '../../core/introspection/services/companion-introspection.companion.service.js';
|
|
29
34
|
import { loadSpecificationsCompanionExports } from '../../core/context/companion-package-loaders.companion.js';
|
|
30
35
|
import { waitForDevCompileQuiet } from '../../core/runtime/dev-compile-quiet.companion.js';
|
|
31
|
-
import { readBuildParallelism } from '@wildo-ai/platform-config-lib';
|
|
36
|
+
import { loadConfig, loadInfraEnvConfig, loadSaasConfig, readBuildParallelism, WildoEnvironment } from '@wildo-ai/platform-config-lib';
|
|
32
37
|
import { CodingRunConcurrency } from '../../claude-cli/models/concurrent-coding-runs.models.js';
|
|
33
38
|
import { CodingAgentDispatchCompanionService, } from '../../claude-cli/services/coding-agent-dispatch.companion.service.js';
|
|
34
|
-
import { CodingRunFailureAttribution, CodingRunStart, deriveCodingRunStart, isApplicationCodingContractRefusal, } from '../../claude-cli/models/coding-agent-dispatch.models.js';
|
|
39
|
+
import { CodingRunFailureAttribution, CodingRunStart, deriveCodingRunStart, isApplicationCodingContractRefusal, readSettledRunFailureMessage, } from '../../claude-cli/models/coding-agent-dispatch.models.js';
|
|
35
40
|
import { GitChangeSetCompanionService } from '../../claude-cli/services/git-change-set.companion.service.js';
|
|
36
41
|
import { CompanionExecutionsCompanionService } from '../../executions/services/companion-executions.companion.service.js';
|
|
37
42
|
import { CompanionExecutionsListQuerySchema } from '../../companion-api/companion-api.schemas.js';
|
|
38
43
|
import { APPLICATION_CODING_SYSTEM_REF } from '../models/application-coding-agent.actors-system.definitions.js';
|
|
39
|
-
import { readUnavailableApplicationRuntimes } from '../../core/runtime/application-runtime-liveness.companion.js';
|
|
40
|
-
import { NothingToRearmError, readBuildTaskRearm, } from '../models/build-task-rearm.models.js';
|
|
44
|
+
import { readApplicationBootFailures, readUnavailableApplicationRuntimes, } from '../../core/runtime/application-runtime-liveness.companion.js';
|
|
45
|
+
import { BuildTaskRearmReason, MAXIMUM_INTERFERENCE_REARMS, OPERATOR_BUILD_TASK_REARM_REASONS, NothingToRearmError, readBuildTaskInterference, landedOverrideContextSource, readBuildTaskLandedOverride, readBuildTaskRearm, } from '../models/build-task-rearm.models.js';
|
|
41
46
|
import { APPLICATION_BUILD_GENERATION_STEP_ACTOR_REF, APPLICATION_BUILD_SYSTEM_REF } from '../models/application-build.actors-system.definitions.js';
|
|
42
|
-
import {
|
|
43
|
-
import {
|
|
47
|
+
import { readRecordedPlaybookSpend } from '../models/playbook-run-record.models.js';
|
|
48
|
+
import { ApplicationBuildGenerationStep, ApplicationBuildGenerationStepCompanionService, GENERATION_STEP_WRITE_SCOPE, GenerationStepWriteScope, ApplicationBuildGenerationStepLandedKind, SchemaPlanSyncState, } from './application-build-generation-step.companion.service.js';
|
|
49
|
+
import { INSTALLED_SKILL_INDEX_RELATIVE_PATH, readApplicationCapabilityFacts, sliceSkillIndexForTask } from './build-task-brief-application-facts.companion.js';
|
|
50
|
+
import { resolveAssemblyRepairCodingPolicy, resolveBuildPlanTaskCodingPolicy, BuildPlanTaskLandedProbeKind, buildPlanTaskLandedProbePaths, declarationsAppearAt, labelFileDeclaresKeys, labelPacksDeclareKeyPrefix, launcherShellIdentity, placementSubjectShellIdentity, ProductDeclarationRelation, productDerivedSkillRefs, resourceSchemaFilePath, schemaSourceDeclaresPersonalData, targetDerivedSkillRefs, resolveBuildTaskLandedProbes, resolveUndraftableDocumentRef, settingsDestinationShellIdentity, shellModuleContributionFile, shellSurfaceConfigFile, WEBSITE_LABEL_PACK_PATHS, } from './application-build-task-coding-policy.companion.service.js';
|
|
51
|
+
import { resolveApplicationAssemblyCheckRefs } from './application-assembly-checks.companion.utils.js';
|
|
52
|
+
import { BrandAssetPurpose } from '@wildo-ai/saas-specifications';
|
|
53
|
+
import { hasAcceptedBrandMark } from '../../brand/models/accepted-brand-mark.models.js';
|
|
54
|
+
import { ASSEMBLY_FAILURE_CONTEXT_SOURCE_REF, ASSEMBLY_REPAIR_GUIDANCE, ASSEMBLY_REPAIR_TARGET_KIND, MAXIMUM_ASSEMBLY_REPAIRS_PER_CHECK, assemblyRepairAttemptsThisRound, describeWithheldAssemblyRepairs, isAssemblyRepairTaskRef, readGivenAssemblyFailure, selectAssemblyRepair, } from './application-assembly-repair.companion.utils.js';
|
|
44
55
|
/** No build plan, or nothing left to do. Named so the transport can say which. */
|
|
45
56
|
export class ApplicationBuildPlanUnavailableError extends Error {
|
|
46
57
|
}
|
|
47
58
|
export class ApplicationBuildPlanExhaustedError extends Error {
|
|
48
59
|
taskCount;
|
|
49
60
|
landedCount;
|
|
61
|
+
landedTaskRefs;
|
|
62
|
+
assembly;
|
|
50
63
|
/**
|
|
51
64
|
* The counts, carried STRUCTURALLY rather than only inside the sentence.
|
|
52
65
|
*
|
|
@@ -54,16 +67,57 @@ export class ApplicationBuildPlanExhaustedError extends Error {
|
|
|
54
67
|
* fields the only copy lived in prose the reader would have had to parse. A board that parses
|
|
55
68
|
* another component's error message is a board that breaks when somebody improves the wording.
|
|
56
69
|
*/
|
|
57
|
-
constructor(message, taskCount, landedCount
|
|
70
|
+
constructor(message, taskCount, landedCount,
|
|
71
|
+
/** WHICH tasks landed — so a finished plan can still say which of them no run of their own produced (#2217). */
|
|
72
|
+
landedTaskRefs = [],
|
|
73
|
+
/**
|
|
74
|
+
* Whether the application the finished plan built ASSEMBLES (#2222) — set by a dispatch door, which is where
|
|
75
|
+
* "the build is finished" is claimed; absent from the cheap read door, which never runs a compiler.
|
|
76
|
+
*/
|
|
77
|
+
assembly) {
|
|
58
78
|
super(message);
|
|
59
79
|
this.taskCount = taskCount;
|
|
60
80
|
this.landedCount = landedCount;
|
|
81
|
+
this.landedTaskRefs = landedTaskRefs;
|
|
82
|
+
this.assembly = assembly;
|
|
61
83
|
}
|
|
62
84
|
}
|
|
63
85
|
/** The ref of the `database-migrations` step the dispatch host derives when a plan owes it and omits it (#1027). */
|
|
64
86
|
export const HOST_DERIVED_DATABASE_MIGRATIONS_TASK_REF = 'build-task-database-migrations';
|
|
65
87
|
/** The ref of the `documentation-publication` step the host derives for a plan that authors chapters (#1273). */
|
|
66
88
|
export const HOST_DERIVED_DOCUMENTATION_PUBLICATION_TASK_REF = 'build-task-documentation-publication';
|
|
89
|
+
/** The ref of the `i18n-translations` step the host derives after a plan's labels step, for a multi-locale application (#2204). */
|
|
90
|
+
export const HOST_DERIVED_I18N_TRANSLATIONS_TASK_REF = 'build-task-i18n-translations';
|
|
91
|
+
/** The ref of the `engine-capabilities` step the host derives when the decisions imply a capability nothing turned on (#2497). */
|
|
92
|
+
export const HOST_DERIVED_ENGINE_CAPABILITIES_TASK_REF = 'build-task-engine-capabilities';
|
|
93
|
+
/**
|
|
94
|
+
* The ref prefix of a FOLLOW-UP task the host derives when a completed coding run reports a requirement it could not
|
|
95
|
+
* fully meet (#2496): `build-task-follow-up-<origin>-<requirement>`. A follow-up's own report derives nothing further, so
|
|
96
|
+
* the chain is one step long; what it leaves unmet is shown on its record.
|
|
97
|
+
*/
|
|
98
|
+
export const HOST_DERIVED_FOLLOW_UP_TASK_REF_PREFIX = 'build-task-follow-up-';
|
|
99
|
+
/** The ref of the `display-name` step the host derives when the brand's name is not yet the application's (#2505). */
|
|
100
|
+
export const HOST_DERIVED_DISPLAY_NAME_TASK_REF = 'build-task-display-name';
|
|
101
|
+
/**
|
|
102
|
+
* The tokens a run's recorded usage carries, or `undefined` when it carries none. Read by SHAPE: the row
|
|
103
|
+
* crossed a JSON boundary, and `CodingAgent_Usage` makes every field optional.
|
|
104
|
+
*/
|
|
105
|
+
export function readCodingRunReportedTokens(usage) {
|
|
106
|
+
if (typeof usage !== 'object' || usage === null)
|
|
107
|
+
return undefined;
|
|
108
|
+
const bag = usage;
|
|
109
|
+
const count = (key) => (typeof bag[key] === 'number' && Number.isFinite(bag[key]) && bag[key] >= 0 ? bag[key] : undefined);
|
|
110
|
+
const dimensions = {
|
|
111
|
+
inputTokens: count('inputTokens'),
|
|
112
|
+
outputTokens: count('outputTokens'),
|
|
113
|
+
cacheReadTokens: count('cachedReadTokens'),
|
|
114
|
+
cacheWriteTokens: count('cachedWriteTokens'),
|
|
115
|
+
};
|
|
116
|
+
const reported = Object.values(dimensions).filter((value) => value !== undefined);
|
|
117
|
+
const totalTokens = count('totalTokens') ?? (reported.length > 0 ? reported.reduce((sum, value) => sum + value, 0) : undefined);
|
|
118
|
+
const tokens = Object.fromEntries(Object.entries({ ...dimensions, totalTokens }).filter((entry) => entry[1] !== undefined));
|
|
119
|
+
return Object.keys(tokens).length > 0 ? tokens : undefined;
|
|
120
|
+
}
|
|
67
121
|
/**
|
|
68
122
|
* Whether an attempt COUNTS as one of the task's: everything but a host refusal. A refusal of the task's
|
|
69
123
|
* own contract counts although nothing ran, because the attempt budget counts it (#1581).
|
|
@@ -73,6 +127,8 @@ export function isCountedBuildTaskAttempt(attempt) {
|
|
|
73
127
|
}
|
|
74
128
|
/** The actor-plane page cap the attempt listing reads under; hitting it sets `attemptsTruncated`. */
|
|
75
129
|
const BUILD_TASK_ATTEMPT_PAGE_CAP = 200;
|
|
130
|
+
/** How long one listing of the latest completed coding runs serves the plan reads of a burst (#2496 review F8). */
|
|
131
|
+
const LATEST_COMPLETED_CODING_RUNS_TTL_MS = 2_000;
|
|
76
132
|
/**
|
|
77
133
|
* How many of its OWN failures a build task may spend before dispatch stops offering it (#1536).
|
|
78
134
|
* Three, because the first end-to-end run's two repeating tasks each failed three times identically:
|
|
@@ -81,6 +137,20 @@ const BUILD_TASK_ATTEMPT_PAGE_CAP = 200;
|
|
|
81
137
|
export const MAXIMUM_ATTRIBUTABLE_FAILED_ATTEMPTS = 3;
|
|
82
138
|
/** How much of a failed check's output a retry is shown — enough for a compiler's first errors, not a log. */
|
|
83
139
|
const PREVIOUS_ATTEMPT_OUTPUT_TAIL_CHARS = 2000;
|
|
140
|
+
/**
|
|
141
|
+
* The follow-up task ref for one reported gap (#2496): the origin, the requirement, and a token of the REPORTING RUN, so
|
|
142
|
+
* the same report derives the same task on every read while a later run reporting the gap again derives a NEW task (the
|
|
143
|
+
* old follow-up's completed run must not land the new report at birth). Always a slug the graph schema accepts: a
|
|
144
|
+
* requirement ref with no ASCII letter or digit (an agent may write `—` or `要件`) is named by a digest instead, so no
|
|
145
|
+
* agent-written string can make the plan unreadable.
|
|
146
|
+
*/
|
|
147
|
+
export function deriveFollowUpTaskRef(originTaskRef, requirementRef, reportingRunTaskId) {
|
|
148
|
+
const slug = (value) => value.toLowerCase().replace(/[^a-z0-9]+/gu, '-').replace(/^-+|-+$/gu, '');
|
|
149
|
+
const digest = (value) => createHash('sha256').update(value).digest('hex');
|
|
150
|
+
const origin = slug(originTaskRef.replace(/^build-task-/u, '')) || `t${digest(originTaskRef).slice(0, 8)}`;
|
|
151
|
+
const requirement = slug(requirementRef) || `r${digest(requirementRef).slice(0, 8)}`;
|
|
152
|
+
return `${HOST_DERIVED_FOLLOW_UP_TASK_REF_PREFIX}${origin}-${requirement}-${digest(reportingRunTaskId).slice(0, 6)}`;
|
|
153
|
+
}
|
|
84
154
|
function projectBuildTaskAttempt(execution) {
|
|
85
155
|
const task = execution.standaloneTasks[0];
|
|
86
156
|
const taskRef = task?.input?.taskRef;
|
|
@@ -88,6 +158,14 @@ function projectBuildTaskAttempt(execution) {
|
|
|
88
158
|
return null;
|
|
89
159
|
const output = task.output;
|
|
90
160
|
const rearm = readBuildTaskRearm(task.memory);
|
|
161
|
+
const unmetRequirements = Array.isArray(output?.unmetRequirements)
|
|
162
|
+
? output.unmetRequirements
|
|
163
|
+
.filter((entry) => typeof entry?.requirementRef === 'string' && typeof entry.missing === 'string')
|
|
164
|
+
.map((entry) => ({ requirementRef: entry.requirementRef, missing: entry.missing }))
|
|
165
|
+
: [];
|
|
166
|
+
const landedOverride = readBuildTaskLandedOverride(task.input);
|
|
167
|
+
const interference = readBuildTaskInterference(task.memory);
|
|
168
|
+
const websiteCopyReview = readWebsiteCopyReview(task.memory);
|
|
91
169
|
const carriedFailures = Array.isArray(output?.carriedVerificationDiagnoses)
|
|
92
170
|
? output.carriedVerificationDiagnoses.filter((entry) => typeof entry?.checkRef === 'string')
|
|
93
171
|
: [];
|
|
@@ -100,6 +178,9 @@ function projectBuildTaskAttempt(execution) {
|
|
|
100
178
|
.filter((entry) => entry.outcome?.success === false && !carriedRefs.has(String(entry.checkRef)))
|
|
101
179
|
.map((entry) => String(entry.checkRef));
|
|
102
180
|
const cost = output?.usage?.cost;
|
|
181
|
+
// Whichever key the run's writer used (#2390): `failure` for a refusal or a step, `error` and its siblings for a coding run.
|
|
182
|
+
const failureMessage = readSettledRunFailureMessage(output);
|
|
183
|
+
const tokens = readCodingRunReportedTokens(output?.usage);
|
|
103
184
|
const stats = output?.changeSetSummary?.stats;
|
|
104
185
|
const count = (value) => (typeof value === 'number' && Number.isFinite(value) ? value : 0);
|
|
105
186
|
const outOfScopePaths = Array.isArray(output?.scopeAssessment?.outOfScopePaths)
|
|
@@ -109,15 +190,24 @@ function projectBuildTaskAttempt(execution) {
|
|
|
109
190
|
taskRef,
|
|
110
191
|
attempt: {
|
|
111
192
|
runTaskId: String(task._id),
|
|
193
|
+
...(execution.systemRef === APPLICATION_BUILD_SYSTEM_REF ? { generationStep: true } : {}),
|
|
194
|
+
...(() => {
|
|
195
|
+
if (execution.systemRef !== APPLICATION_BUILD_SYSTEM_REF)
|
|
196
|
+
return {};
|
|
197
|
+
const generationStepSpend = readRecordedPlaybookSpend(task.output?.spend);
|
|
198
|
+
return generationStepSpend ? { generationStepSpend } : {};
|
|
199
|
+
})(),
|
|
112
200
|
startedAt: execution.createdAt,
|
|
113
201
|
...(execution.finishedAt ? { settledAt: execution.finishedAt } : {}),
|
|
114
202
|
status: execution.status,
|
|
115
203
|
...(typeof output?.disposition === 'string' ? { disposition: output.disposition } : {}),
|
|
116
|
-
...(
|
|
204
|
+
...(failureMessage !== undefined ? { error: failureMessage } : {}),
|
|
117
205
|
...(rearm ? { rearm } : {}),
|
|
206
|
+
...(landedOverride ? { landedOverride } : {}),
|
|
118
207
|
...(carriedFailures.length > 0 ? { carriedFailures } : {}),
|
|
119
208
|
...(passedCheckRefs.length > 0 ? { passedCheckRefs } : {}),
|
|
120
209
|
...(typeof cost?.amount === 'number' && typeof cost.currency === 'string' ? { cost: { amount: cost.amount, currency: cost.currency } } : {}),
|
|
210
|
+
...(tokens ? { tokens } : {}),
|
|
121
211
|
...(failedCheckRefs.length > 0 ? { failedCheckRefs } : {}),
|
|
122
212
|
...(typeof output?.agentStopReason === 'string' ? { agentStopReason: output.agentStopReason } : {}),
|
|
123
213
|
...(typeof output?.deniedPermissionCount === 'number' ? { deniedPermissionCount: output.deniedPermissionCount } : {}),
|
|
@@ -130,11 +220,49 @@ function projectBuildTaskAttempt(execution) {
|
|
|
130
220
|
},
|
|
131
221
|
} : {}),
|
|
132
222
|
...(output?.interferenceSuspected === true ? { interferenceSuspected: true } : {}),
|
|
223
|
+
...(interference ? { interference } : {}),
|
|
133
224
|
...(typeof output?.failureAttribution === 'string' ? { failureAttribution: output.failureAttribution } : {}),
|
|
225
|
+
...(unmetRequirements.length > 0 ? { unmetRequirements } : {}),
|
|
226
|
+
...(typeof output?.unmetRequirementsMalformed === 'string' ? { unmetRequirementsMalformed: output.unmetRequirementsMalformed } : {}),
|
|
227
|
+
...(websiteCopyReview ? { websiteCopyReview } : {}),
|
|
134
228
|
...refusalMarks(deriveCodingRunStart({ status: execution.status, ...(task.startedAt ? { startedAt: task.startedAt } : {}), ...(output ? { output } : {}) })),
|
|
135
229
|
},
|
|
136
230
|
};
|
|
137
231
|
}
|
|
232
|
+
/**
|
|
233
|
+
* What one website run's copy review covers (#2593): the task's own subjects, and — for a PAGE task — every section of
|
|
234
|
+
* its page whose section task has no completed run of its own. A page agent that wrote its sections' bodies despite
|
|
235
|
+
* its boundary leaves those tasks landed by probe with no run to review them, so the page run's review covers them.
|
|
236
|
+
*/
|
|
237
|
+
function websiteCopyReviewScope(task, tasks, companionExports, latest, deliveryOf) {
|
|
238
|
+
const own = describeWebsiteTaskCopySubjects(task, companionExports, deliveryOf) ?? [];
|
|
239
|
+
const pageRefs = new Set(task.produces.flatMap((product) => (product.kind === BuildPlanTaskProductKind.WEBSITE_PAGE ? [product.pageRef] : [])));
|
|
240
|
+
if (pageRefs.size === 0)
|
|
241
|
+
return { own, alsoReviewed: [] };
|
|
242
|
+
const alsoReviewed = tasks
|
|
243
|
+
.filter((candidate) => candidate.taskRef !== task.taskRef && candidate.target.kind === BuildPlanTaskTargetKind.WEBSITE && !latest.has(candidate.taskRef)
|
|
244
|
+
&& candidate.produces.some((product) => product.kind === BuildPlanTaskProductKind.WEBSITE_SECTION && pageRefs.has(product.pageRef)))
|
|
245
|
+
.map((candidate) => ({ taskRef: candidate.taskRef, subjects: describeWebsiteTaskCopySubjects(candidate, companionExports, deliveryOf) ?? [] }))
|
|
246
|
+
.filter((entry) => entry.subjects.length > 0);
|
|
247
|
+
return { own, alsoReviewed };
|
|
248
|
+
}
|
|
249
|
+
/** A locale's website pack from a tree reader, `undefined` when absent or not a flat object. */
|
|
250
|
+
async function readWebsiteLabelPack(reader, locale) {
|
|
251
|
+
const text = await reader.readText(`website/src/i18n/${locale}.json`);
|
|
252
|
+
if (text === undefined)
|
|
253
|
+
return undefined;
|
|
254
|
+
try {
|
|
255
|
+
const parsed = JSON.parse(text);
|
|
256
|
+
return typeof parsed === 'object' && parsed !== null && !Array.isArray(parsed) ? parsed : undefined;
|
|
257
|
+
}
|
|
258
|
+
catch {
|
|
259
|
+
return undefined;
|
|
260
|
+
}
|
|
261
|
+
}
|
|
262
|
+
function sameWebsiteCopy(left, right) {
|
|
263
|
+
const keys = Object.keys(left);
|
|
264
|
+
return keys.length === Object.keys(right).length && keys.every((key) => right[key] === left[key]);
|
|
265
|
+
}
|
|
138
266
|
/** What an attempt's record says about a run that never started (`deriveCodingRunStart`, #1581). */
|
|
139
267
|
function refusalMarks(start) {
|
|
140
268
|
if (start === CodingRunStart.REFUSED_BY_HOST)
|
|
@@ -151,16 +279,42 @@ function refusalMarks(start) {
|
|
|
151
279
|
* report none, and those attempts are not in the totals — which are then a floor, and say so, rather
|
|
152
280
|
* than quietly reading an unpriced attempt as free. An attempt still running has no cost yet and is not
|
|
153
281
|
* counted.
|
|
282
|
+
*
|
|
283
|
+
* `totalTokens` / `cacheReadTokens` (#2232) sum what the runs REPORTED, present only when at least one did.
|
|
284
|
+
* Generation steps are left out of every figure here: they are no agent runs and report neither.
|
|
285
|
+
* Tokens are reported where a cost may not be (an agent priced by subscription, a provider that prices
|
|
286
|
+
* nothing), so they are the figure that says a run worked when its cost is unknown.
|
|
154
287
|
*/
|
|
155
288
|
export function deriveBuildSpend(records) {
|
|
156
289
|
const total = {};
|
|
157
290
|
const onTasksNotLanded = {};
|
|
158
291
|
let attemptsWithoutReportedCost = 0;
|
|
292
|
+
const tokens = {};
|
|
293
|
+
const generationSpends = [];
|
|
294
|
+
let generationSteps = 0;
|
|
295
|
+
let generationStepsWithoutRecordedSpend = 0;
|
|
159
296
|
for (const record of records) {
|
|
160
297
|
for (const attempt of record.attempts) {
|
|
161
298
|
// A run that never started could report no cost: it is not an unpriced attempt (#1581).
|
|
162
299
|
if (attempt.ranNothing === true)
|
|
163
300
|
continue;
|
|
301
|
+
// A generation step is no agent run: its model calls are its own figure, never an unpriced coding run (#2232).
|
|
302
|
+
if (attempt.generationStep === true) {
|
|
303
|
+
if (attempt.settledAt === undefined)
|
|
304
|
+
continue;
|
|
305
|
+
generationSteps += 1;
|
|
306
|
+
// A step no meter observed recorded nothing either: counted apart, never merged in as spending nothing.
|
|
307
|
+
if (attempt.generationStepSpend && attempt.generationStepSpend.measurement !== PlaybookSpendMeasurement.NOT_OBSERVED)
|
|
308
|
+
generationSpends.push(attempt.generationStepSpend);
|
|
309
|
+
else
|
|
310
|
+
generationStepsWithoutRecordedSpend += 1;
|
|
311
|
+
continue;
|
|
312
|
+
}
|
|
313
|
+
for (const key of ['totalTokens', 'cacheReadTokens']) {
|
|
314
|
+
const value = attempt.tokens?.[key];
|
|
315
|
+
if (value !== undefined)
|
|
316
|
+
tokens[key] = (tokens[key] ?? 0) + value;
|
|
317
|
+
}
|
|
164
318
|
if (!attempt.cost) {
|
|
165
319
|
if (attempt.settledAt !== undefined)
|
|
166
320
|
attemptsWithoutReportedCost += 1;
|
|
@@ -173,7 +327,18 @@ export function deriveBuildSpend(records) {
|
|
|
173
327
|
}
|
|
174
328
|
}
|
|
175
329
|
const cents = (sums) => Object.fromEntries(Object.entries(sums).map(([currency, amount]) => [currency, Math.round(amount * 100) / 100]));
|
|
176
|
-
return {
|
|
330
|
+
return {
|
|
331
|
+
total: cents(total),
|
|
332
|
+
onTasksNotLanded: cents(onTasksNotLanded),
|
|
333
|
+
attemptsWithoutReportedCost,
|
|
334
|
+
...tokens,
|
|
335
|
+
...(generationSteps > 0 ? { generationSteps: {
|
|
336
|
+
steps: generationSteps,
|
|
337
|
+
stepsWithoutRecordedSpend: generationStepsWithoutRecordedSpend,
|
|
338
|
+
// Absent when no step recorded one: an empty merge would read "measured, 0 calls" beside steps that recorded nothing.
|
|
339
|
+
...(generationSpends.length > 0 ? { spend: mergePlaybookSpend(generationSpends) } : {}),
|
|
340
|
+
} } : {}),
|
|
341
|
+
};
|
|
177
342
|
}
|
|
178
343
|
/**
|
|
179
344
|
* The reds owed a repair, from every attempt's record (#1529). Pure over the attempts, so what counts as
|
|
@@ -214,6 +379,14 @@ export function deriveRepairsOwed(attemptsByTask) {
|
|
|
214
379
|
}))
|
|
215
380
|
.sort((left, right) => left.firstSeenAt.localeCompare(right.firstSeenAt));
|
|
216
381
|
}
|
|
382
|
+
/**
|
|
383
|
+
* The stuck reasons a landed override passes (#2217): a COMPLETED earlier run, with or without its writes
|
|
384
|
+
* committed — that run is the landing the operator says is wrong. Every other reason still refuses the task.
|
|
385
|
+
*/
|
|
386
|
+
const LANDED_OVERRIDE_RELEASES = new Set([
|
|
387
|
+
Workbench_BuildTaskStuckReason.COMPLETED_UNLANDED,
|
|
388
|
+
Workbench_BuildTaskStuckReason.COMPLETED_AWAITING_COMMIT,
|
|
389
|
+
]);
|
|
217
390
|
/** How long a CONCURRENT admission waits for the compile watchers before starting anyway (#1528). */
|
|
218
391
|
const CONCURRENT_ADMISSION_COMPILE_QUIET_MS = 30_000;
|
|
219
392
|
/** Dispatches one wave call may make per slot before it returns and lets the next call continue. */
|
|
@@ -229,7 +402,36 @@ export var ApplicationBuildWaveStop;
|
|
|
229
402
|
ApplicationBuildWaveStop["GENERATION_STEP_REPEATED"] = "generation-step-repeated";
|
|
230
403
|
/** An admission was refused; the refusal is on the dispatch entry. */
|
|
231
404
|
ApplicationBuildWaveStop["DISPATCH_REFUSED"] = "dispatch-refused";
|
|
405
|
+
/**
|
|
406
|
+
* The coding agent's account hit its usage limit (#2388): every turn started before its reset would be
|
|
407
|
+
* refused the same way, so the wave starts none. `usageLimit` on the result says when it resumes, and the
|
|
408
|
+
* build lane submits the next wave then.
|
|
409
|
+
*/
|
|
410
|
+
ApplicationBuildWaveStop["CODING_AGENT_USAGE_LIMITED"] = "coding-agent-usage-limited";
|
|
411
|
+
/**
|
|
412
|
+
* The application's backend no longer starts (#2405): its own start record says the last start FAILED, after the
|
|
413
|
+
* newest commit had its chance to restart it. Every task landed now would be built on, and verified against, an
|
|
414
|
+
* application that cannot run. `bootFailures` on the result names the backend, its refusal and the runs this wave
|
|
415
|
+
* landed (`wildo build tasks` names every task landed since the last good start, across waves). While runs are live
|
|
416
|
+
* the filling only pauses and asks again at the next settle; with none live it stops. A task named with
|
|
417
|
+
* `wildo build run` still runs, because re-running the task that broke it is the repair.
|
|
418
|
+
*/
|
|
419
|
+
ApplicationBuildWaveStop["APPLICATION_DOES_NOT_BOOT"] = "application-does-not-boot";
|
|
232
420
|
})(ApplicationBuildWaveStop || (ApplicationBuildWaveStop = {}));
|
|
421
|
+
/**
|
|
422
|
+
* The next-task doors' refusal while the application's backend does not start (#2405). A CONFLICT: the request is
|
|
423
|
+
* valid, the application's state forbids it, and the message names the refusal and the repair.
|
|
424
|
+
*/
|
|
425
|
+
export class ApplicationDoesNotBootError extends Error {
|
|
426
|
+
bootFailures;
|
|
427
|
+
constructor(bootFailures) {
|
|
428
|
+
super(`The application's backend does not start, so no next task is dispatched: ${bootFailures
|
|
429
|
+
.map((failure) => `${failure.serviceIdentifier} — ${failure.message ?? 'no reason recorded'}`).join('; ')}. `
|
|
430
|
+
+ 'Fix the task that broke it: wildo build run <taskRef> --despite-landed --reason operator-judgement --note "<the refusal>".');
|
|
431
|
+
this.bootFailures = bootFailures;
|
|
432
|
+
this.name = 'ApplicationDoesNotBootError';
|
|
433
|
+
}
|
|
434
|
+
}
|
|
233
435
|
/**
|
|
234
436
|
* Dispatch the next ready build-plan task to a coding agent.
|
|
235
437
|
*
|
|
@@ -270,6 +472,22 @@ export var ApplicationBuildWaveStop;
|
|
|
270
472
|
* terminal state. Conflating them would let an operator read a money-burning loop as "the build is
|
|
271
473
|
* finished".
|
|
272
474
|
*/
|
|
475
|
+
/**
|
|
476
|
+
* A build wave was asked for while one is already running in this companion (#2208 review M1).
|
|
477
|
+
*
|
|
478
|
+
* A second wave would double the width the person set, and it would break the first wave's end: that wave
|
|
479
|
+
* commits what its runs left and re-runs interfered tasks ALONE "now that nothing is writing", which is false
|
|
480
|
+
* while a second wave's runs are live. Refused as a CONFLICT — nothing is wrong with the request, the
|
|
481
|
+
* companion's state forbids it — and the remedy is to wait for the running wave, whose feed line ends it.
|
|
482
|
+
*/
|
|
483
|
+
export class ApplicationBuildWaveInFlightError extends Error {
|
|
484
|
+
startedAt;
|
|
485
|
+
constructor(startedAt) {
|
|
486
|
+
super(`A build wave is already running (started ${startedAt}). Follow it with \`wildo creation feed --follow\`; `
|
|
487
|
+
+ 'start the next one once it has ended — it takes the tasks that are ready then.');
|
|
488
|
+
this.startedAt = startedAt;
|
|
489
|
+
}
|
|
490
|
+
}
|
|
273
491
|
export class ApplicationBuildTaskCompletedButUnlandedError extends Error {
|
|
274
492
|
taskRef;
|
|
275
493
|
priorTaskId;
|
|
@@ -378,7 +596,7 @@ function projectBuildDispatchRecord(execution) {
|
|
|
378
596
|
const taskStarted = typeof task.startedAt === 'string';
|
|
379
597
|
const phase = projectBuildDispatchPhase({ systemRef: execution.systemRef, status: execution.status, taskStarted });
|
|
380
598
|
const isCodingRun = execution.systemRef === APPLICATION_CODING_SYSTEM_REF;
|
|
381
|
-
const failure = task.output
|
|
599
|
+
const failure = readSettledRunFailureMessage(task.output);
|
|
382
600
|
// When the phase LEFT `SUBMITTED`: admission for a coding run, the end of the step otherwise.
|
|
383
601
|
const settledAt = phase === Workbench_BuildDispatchPhase.SUBMITTED ? undefined
|
|
384
602
|
: isCodingRun && taskStarted ? task.startedAt
|
|
@@ -402,8 +620,19 @@ let ApplicationBuildDispatchCompanionService = class ApplicationBuildDispatchCom
|
|
|
402
620
|
introspection;
|
|
403
621
|
actorsSystem;
|
|
404
622
|
executions;
|
|
623
|
+
agents;
|
|
405
624
|
logDebug;
|
|
406
|
-
|
|
625
|
+
/** Set once the follow-up derivation has warned that the coding-run listing hit its cap (#2496 review N1). */
|
|
626
|
+
followUpListingTruncationWarned = false;
|
|
627
|
+
/** See `readLatestCompletedCodingRuns`. */
|
|
628
|
+
latestCompletedCodingRuns;
|
|
629
|
+
/**
|
|
630
|
+
* When the wave running in this companion started; `undefined` when none is (#2208 review M1). One process
|
|
631
|
+
* owns every wave — the console, a lane child and an explicit playbook run all reach {@link dispatchBuildWave}
|
|
632
|
+
* here — so an in-process marker is the whole population, and a restart (which ends every run) clears it.
|
|
633
|
+
*/
|
|
634
|
+
liveWaveStartedAt;
|
|
635
|
+
constructor(logger, companionContext, dispatch, git, generationSteps, introspection, actorsSystem, executions, acceptedChangeCommit, agents) {
|
|
407
636
|
this.logger = logger;
|
|
408
637
|
this.companionContext = companionContext;
|
|
409
638
|
this.dispatch = dispatch;
|
|
@@ -412,7 +641,229 @@ let ApplicationBuildDispatchCompanionService = class ApplicationBuildDispatchCom
|
|
|
412
641
|
this.introspection = introspection;
|
|
413
642
|
this.actorsSystem = actorsSystem;
|
|
414
643
|
this.executions = executions;
|
|
644
|
+
this.agents = agents;
|
|
415
645
|
this.logDebug = this.logger.debugByType('ApplicationBuildDispatchCompanionService');
|
|
646
|
+
acceptedChangeCommit?.registerConcurrentRunProductWitness({
|
|
647
|
+
pathsLackingOwnProduct: (taskRef, candidatePaths) => this.pathsLackingOwnProduct(taskRef, candidatePaths),
|
|
648
|
+
});
|
|
649
|
+
if (this.agents !== undefined) {
|
|
650
|
+
/*
|
|
651
|
+
* A completed run only REQUESTS the sweep, which reviews any completed website run with no review — this one
|
|
652
|
+
* included — and any whose copy another task's run has since rewritten. Enqueueing the run's own review beside it
|
|
653
|
+
* judged a run twice in a wave: a sweep queued by an earlier completion reached the new run before its own review
|
|
654
|
+
* did (#2593 re-review M1).
|
|
655
|
+
*/
|
|
656
|
+
this.dispatch.registerRunCompletedListener(() => {
|
|
657
|
+
void this.requestWebsiteCopySweep();
|
|
658
|
+
});
|
|
659
|
+
}
|
|
660
|
+
}
|
|
661
|
+
/**
|
|
662
|
+
* Every copy review runs through this one queue (#2593): two reviews running at once cannot see each other's record
|
|
663
|
+
* before it is written, so they would judge the same run twice, each paying a judge call.
|
|
664
|
+
*/
|
|
665
|
+
websiteCopyReviews;
|
|
666
|
+
enqueueWebsiteCopyReview(work) {
|
|
667
|
+
const next = (this.websiteCopyReviews ?? Promise.resolve()).then(work, work);
|
|
668
|
+
this.websiteCopyReviews = next.catch(() => undefined);
|
|
669
|
+
return next;
|
|
670
|
+
}
|
|
671
|
+
/** The sweep already queued and not yet started, which a further request joins rather than queueing another. */
|
|
672
|
+
queuedWebsiteCopySweep;
|
|
673
|
+
/**
|
|
674
|
+
* Review every website run whose copy has no review, or changed since its review (#2593 review M3, M4). A run's
|
|
675
|
+
* review is started when it completes and is lost when the companion restarts during the judge call, and copy one
|
|
676
|
+
* task wrote can be rewritten by another task's run; the sweep is what catches both. Requested after every completed
|
|
677
|
+
* run (coalesced: a wave's completions share one sweep) and once at startup. A NOT_REVIEWED review is retried only
|
|
678
|
+
* when asked (`retryNotReviewed`, the startup sweep): retrying a provider that refuses on every completion would pay
|
|
679
|
+
* for a refusal each time. Never throws.
|
|
680
|
+
*/
|
|
681
|
+
requestWebsiteCopySweep(options = {}) {
|
|
682
|
+
const retryNotReviewed = options.retryNotReviewed === true;
|
|
683
|
+
const queued = this.queuedWebsiteCopySweep;
|
|
684
|
+
if (queued !== undefined && (queued.retryNotReviewed || !retryNotReviewed))
|
|
685
|
+
return queued.done;
|
|
686
|
+
const done = this.enqueueWebsiteCopyReview(async () => {
|
|
687
|
+
if (this.queuedWebsiteCopySweep?.done === done)
|
|
688
|
+
this.queuedWebsiteCopySweep = undefined;
|
|
689
|
+
await this.sweepWebsiteCopy(retryNotReviewed);
|
|
690
|
+
});
|
|
691
|
+
this.queuedWebsiteCopySweep = { retryNotReviewed, done };
|
|
692
|
+
return done;
|
|
693
|
+
}
|
|
694
|
+
/**
|
|
695
|
+
* Runs whose review could not be RECORDED (the record door refused them: not found among the completed runs it lists),
|
|
696
|
+
* skipped for the life of the process (#2593 re-review L1). Without this, every later sweep would find the run still
|
|
697
|
+
* unreviewed and pay another judge call for a verdict that again cannot be written.
|
|
698
|
+
*/
|
|
699
|
+
unrecordableWebsiteCopyRuns = new Set();
|
|
700
|
+
async sweepWebsiteCopy(retryNotReviewed) {
|
|
701
|
+
if (this.agents === undefined)
|
|
702
|
+
return;
|
|
703
|
+
try {
|
|
704
|
+
// Before build-decompose there is no plan and nothing to review: quietly, not as a failed sweep.
|
|
705
|
+
if (!(await this.hasAuthoredBuildPlan()))
|
|
706
|
+
return;
|
|
707
|
+
const plan = await this.readBuildPlan();
|
|
708
|
+
const websiteTasks = plan.tasks.filter((task) => task.target.kind === BuildPlanTaskTargetKind.WEBSITE);
|
|
709
|
+
if (websiteTasks.length === 0)
|
|
710
|
+
return;
|
|
711
|
+
const companionExports = await loadSpecificationsCompanionExports(this.companionContext);
|
|
712
|
+
const { latest } = await this.fetchLatestCompletedCodingRuns();
|
|
713
|
+
const worktree = this.createWorktreeReader();
|
|
714
|
+
for (const task of websiteTasks) {
|
|
715
|
+
const run = latest.get(task.taskRef);
|
|
716
|
+
if (run === undefined || this.unrecordableWebsiteCopyRuns.has(run.runTaskId))
|
|
717
|
+
continue;
|
|
718
|
+
const review = run.websiteCopyReview;
|
|
719
|
+
if (review?.outcome === WebsiteCopyReviewOutcome.NOT_REVIEWED && !retryNotReviewed)
|
|
720
|
+
continue;
|
|
721
|
+
if (review?.outcome === WebsiteCopyReviewOutcome.REVIEWED && review.locale !== undefined) {
|
|
722
|
+
const scope = websiteCopyReviewScope(task, plan.tasks, companionExports, latest);
|
|
723
|
+
const pack = await readWebsiteLabelPack(worktree, review.locale);
|
|
724
|
+
const current = pack === undefined ? {} : currentWebsiteCopy([...scope.own, ...scope.alsoReviewed.flatMap((entry) => entry.subjects)], pack);
|
|
725
|
+
if (sameWebsiteCopy(current, review.reviewedCopy ?? {}))
|
|
726
|
+
continue;
|
|
727
|
+
}
|
|
728
|
+
await this.reviewWebsiteCopyOfRun(task.taskRef, run.runTaskId);
|
|
729
|
+
}
|
|
730
|
+
}
|
|
731
|
+
catch (error) {
|
|
732
|
+
this.logger.warn('Could not sweep the website copy for runs whose review is missing or out of date', { error: describeCaughtError(error) });
|
|
733
|
+
}
|
|
734
|
+
}
|
|
735
|
+
/**
|
|
736
|
+
* Review the copy a COMPLETED website run wrote, and record the review on that run (#2593). Reached through the
|
|
737
|
+
* sweep, which every completed run requests whichever door ran it (a wave, `wildo build run`, a lane), and left to
|
|
738
|
+
* finish on its own: it is advisory, so nothing waits for it and nothing it finds changes whether the task lands.
|
|
739
|
+
* Call it only from inside the review queue; a direct call races the sweep.
|
|
740
|
+
*
|
|
741
|
+
* Reads the WORKING tree, not HEAD: the run's own writes are what is reviewed, and under a posture that keeps
|
|
742
|
+
* acceptance with a person they are not committed yet. The standings are derived NOW, by the function that wrote the
|
|
743
|
+
* task's brief, and recorded beside the findings, because a standing moves: a requirement IN_PROGRESS today may be
|
|
744
|
+
* DELIVERED tomorrow, and a finding is read against the standing it was found under.
|
|
745
|
+
*
|
|
746
|
+
* Never throws. A review that cannot run is recorded as NOT_REVIEWED with its reason; a task that is not a website
|
|
747
|
+
* task, or a plan that cannot be read, records nothing, because there is no copy to speak of.
|
|
748
|
+
*/
|
|
749
|
+
async reviewWebsiteCopyOfRun(taskRef, runTaskId, session) {
|
|
750
|
+
const agents = this.agents;
|
|
751
|
+
if (agents === undefined)
|
|
752
|
+
return undefined;
|
|
753
|
+
try {
|
|
754
|
+
const plan = await this.readBuildPlan();
|
|
755
|
+
const task = plan.tasks.find((candidate) => candidate.taskRef === taskRef);
|
|
756
|
+
if (task === undefined || task.target.kind !== BuildPlanTaskTargetKind.WEBSITE)
|
|
757
|
+
return undefined;
|
|
758
|
+
const companionExports = await loadSpecificationsCompanionExports(this.companionContext);
|
|
759
|
+
const deliveryOf = await this.resolveWebsiteClaimDelivery(companionExports);
|
|
760
|
+
const { latest } = await this.fetchLatestCompletedCodingRuns();
|
|
761
|
+
const scope = websiteCopyReviewScope(task, plan.tasks, companionExports, latest, deliveryOf);
|
|
762
|
+
if (scope.own.length === 0 && describeWebsiteTaskCopySubjects(task, companionExports) === undefined)
|
|
763
|
+
return undefined;
|
|
764
|
+
const saasRoot = this.companionContext.saasRoot;
|
|
765
|
+
const worktree = this.createWorktreeReader();
|
|
766
|
+
const locales = WEBSITE_LABEL_PACK_PATHS.map((path) => path.slice(path.lastIndexOf('/') + 1, -'.json'.length));
|
|
767
|
+
// Read fresh, once per review: a build task may have just declared the retention schedule, a provider choice, or the site.
|
|
768
|
+
const freshSaasConfig = loadSaasConfig(join(saasRoot, 'wildo.saas.config.ts'), { freshModuleCache: true })
|
|
769
|
+
.then((config) => config ?? this.companionContext.saasConfig, () => this.companionContext.saasConfig);
|
|
770
|
+
const review = await reviewWebsiteTaskCopy(scope.own, {
|
|
771
|
+
defaultLocale: async () => {
|
|
772
|
+
try {
|
|
773
|
+
// Not `loadWebsiteConfig`, which memoizes per path for the life of the process: a long-lived reader reads it now.
|
|
774
|
+
const [, service] = resolveStaticWebsiteServiceEntry(await freshSaasConfig);
|
|
775
|
+
const config = await loadConfig(join(saasRoot, service.path, PER_SERVICE_WEBSITE_CONFIG_FILE_NAME), { freshModuleCache: true });
|
|
776
|
+
return typeof config.defaultLocale === 'string' ? { locale: config.defaultLocale } : { unreadable: 'its config declares no defaultLocale' };
|
|
777
|
+
}
|
|
778
|
+
catch (error) {
|
|
779
|
+
return { unreadable: describeCaughtError(error) };
|
|
780
|
+
}
|
|
781
|
+
},
|
|
782
|
+
availableLocales: async () => locales,
|
|
783
|
+
readLabelPack: (locale) => readWebsiteLabelPack(worktree, locale),
|
|
784
|
+
readFile: (relativePath) => worktree.readText(relativePath),
|
|
785
|
+
declarations: async () => {
|
|
786
|
+
let productionInfraConfig;
|
|
787
|
+
let productionInfraUnreadable;
|
|
788
|
+
try {
|
|
789
|
+
// Environment ids are open slugs; `production` is the conventional one, and no other declares itself production.
|
|
790
|
+
productionInfraConfig = (await loadInfraEnvConfig(saasRoot, WildoEnvironment.PRODUCTION, { freshModuleCache: true }))?.config;
|
|
791
|
+
}
|
|
792
|
+
catch (error) {
|
|
793
|
+
productionInfraUnreadable = describeCaughtError(error);
|
|
794
|
+
}
|
|
795
|
+
return collectWebsiteCopyDeclarations({ saasConfig: await freshSaasConfig, productionInfraConfig, ...(productionInfraUnreadable !== undefined ? { productionInfraUnreadable } : {}) });
|
|
796
|
+
},
|
|
797
|
+
judge: async (prompt) => {
|
|
798
|
+
const invocation = {
|
|
799
|
+
agentRef: WEBSITE_COPY_REVIEW_JUDGE_AGENT_REF,
|
|
800
|
+
initiator: {},
|
|
801
|
+
invocationContext: [],
|
|
802
|
+
input: { prompt, schema: WebsiteCopyReviewVerdictOutputSchema },
|
|
803
|
+
output: { object: {} },
|
|
804
|
+
executionContext: {},
|
|
805
|
+
artifactBindings: [],
|
|
806
|
+
};
|
|
807
|
+
const response = await agents.invokeAgent(invocation);
|
|
808
|
+
const parsed = WebsiteCopyReviewVerdictOutputSchema.safeParse(response.output?.object);
|
|
809
|
+
if (!parsed.success)
|
|
810
|
+
throw new Error(`the judge's answer did not match its schema: ${parsed.error.issues.map((issue) => issue.message).join('; ')}`);
|
|
811
|
+
return { findings: parsed.data.findings };
|
|
812
|
+
},
|
|
813
|
+
now: () => new Date(),
|
|
814
|
+
}, scope.alsoReviewed);
|
|
815
|
+
try {
|
|
816
|
+
await this.dispatch.recordWebsiteCopyReview(taskRef, runTaskId, review, session);
|
|
817
|
+
}
|
|
818
|
+
catch (error) {
|
|
819
|
+
this.unrecordableWebsiteCopyRuns.add(runTaskId);
|
|
820
|
+
throw error;
|
|
821
|
+
}
|
|
822
|
+
if (review.findings.length > 0) {
|
|
823
|
+
this.logger.warn('The copy a website task wrote claims what its build does not back (advisory; the task still lands)', {
|
|
824
|
+
taskRef, runTaskId, findings: review.findings.map((finding) => `${finding.kind} ${finding.labelKey}`),
|
|
825
|
+
});
|
|
826
|
+
}
|
|
827
|
+
return review;
|
|
828
|
+
}
|
|
829
|
+
catch (error) {
|
|
830
|
+
this.logger.warn('Could not review the copy of a completed website run', { taskRef, runTaskId, error: describeCaughtError(error) });
|
|
831
|
+
return undefined;
|
|
832
|
+
}
|
|
833
|
+
}
|
|
834
|
+
/**
|
|
835
|
+
* Of the paths a concurrent run is about to commit under its task's name, the ones a landing probe of that
|
|
836
|
+
* task names and that do NOT carry the task's declared product (#2209) — read from the tree AS THE COMMIT
|
|
837
|
+
* WOULD LEAVE IT, by the very predicate landing uses ({@link isLandedProbeSatisfied}), so the accept and the
|
|
838
|
+
* landing check cannot disagree about whether the commit holds the product.
|
|
839
|
+
*
|
|
840
|
+
* Only probes naming one of the paths are asked: a probe about another file says nothing about this
|
|
841
|
+
* commit. SHELL probes are not asked here: the shell they read is composed from many files and resolved
|
|
842
|
+
* from the live tree by introspection, so it cannot be read "as this commit leaves it", and a shell-placement
|
|
843
|
+
* run's own files are its configuration rather than a list several runs append to. A task the plan no
|
|
844
|
+
* longer holds declares nothing to check. A plan that cannot be read throws: the accept then commits
|
|
845
|
+
* nothing under the run's name, and the wave reconciliation takes the files as writer unknown.
|
|
846
|
+
*/
|
|
847
|
+
async pathsLackingOwnProduct(taskRef, candidatePaths) {
|
|
848
|
+
const graph = await this.readBuildPlan();
|
|
849
|
+
const task = graph.tasks.find((candidate) => candidate.taskRef === taskRef);
|
|
850
|
+
if (!task)
|
|
851
|
+
return [];
|
|
852
|
+
const committing = new Set(candidatePaths);
|
|
853
|
+
const prospective = this.createProspectiveCommitReader(committing);
|
|
854
|
+
const lacking = new Set();
|
|
855
|
+
for (const probe of resolveBuildTaskLandedProbes(task)) {
|
|
856
|
+
if (isShellProbe(probe))
|
|
857
|
+
continue;
|
|
858
|
+
const named = landedProbePaths(probe).filter((path) => committing.has(path));
|
|
859
|
+
if (named.length === 0)
|
|
860
|
+
continue;
|
|
861
|
+
if (await this.isLandedProbeSatisfied(probe, prospective))
|
|
862
|
+
continue;
|
|
863
|
+
for (const path of named)
|
|
864
|
+
lacking.add(path);
|
|
865
|
+
}
|
|
866
|
+
return [...lacking].sort();
|
|
416
867
|
}
|
|
417
868
|
/**
|
|
418
869
|
* The application workspace's top-level entries — the raw material of a coding run's mutation
|
|
@@ -461,6 +912,16 @@ let ApplicationBuildDispatchCompanionService = class ApplicationBuildDispatchCom
|
|
|
461
912
|
async describeNextBuildTask() {
|
|
462
913
|
return (await this.prepareNextBuildTask()).plan;
|
|
463
914
|
}
|
|
915
|
+
/**
|
|
916
|
+
* The same read for a caller that is about to RUN the build (#2208): the one a build wave asks before it
|
|
917
|
+
* is submitted. It refuses exactly as the one-task door refuses — including an exhausted plan's assembly
|
|
918
|
+
* verdict (#2222), which {@link describeNextBuildTask} leaves out because a dry run has nothing to check.
|
|
919
|
+
* Without it, `wildo build run` at a parallelism above one answered "every task landed" with no word on
|
|
920
|
+
* whether the application builds, which is the claim #2222 exists to qualify.
|
|
921
|
+
*/
|
|
922
|
+
async describeNextBuildTaskBeforeRunning() {
|
|
923
|
+
return (await this.prepareNextBuildTaskOrQualifyExhaustion()).plan;
|
|
924
|
+
}
|
|
464
925
|
/**
|
|
465
926
|
* The same read, for a caller that must be able to render "there is nothing left".
|
|
466
927
|
*
|
|
@@ -471,13 +932,42 @@ let ApplicationBuildDispatchCompanionService = class ApplicationBuildDispatchCom
|
|
|
471
932
|
* read can tell.
|
|
472
933
|
*/
|
|
473
934
|
async describeNextBuildTaskOrExhaustion() {
|
|
935
|
+
// The landed refs come back WITH the answer, never parked on the instance: two reads interleave at every await
|
|
936
|
+
// (see `LandedTaskResolution`), and one would qualify its answer with the other's set.
|
|
937
|
+
const { description, landedTaskRefs } = await this.describeNextBuildTaskOrExhaustionUnqualified();
|
|
938
|
+
if (landedTaskRefs.length === 0)
|
|
939
|
+
return description;
|
|
940
|
+
const { started, truncated } = await this.listBuildTaskRefsWithAStartedRun();
|
|
941
|
+
// A truncated history cannot say a task NEVER ran: the claim is withheld rather than made on a partial page.
|
|
942
|
+
if (truncated)
|
|
943
|
+
return description;
|
|
944
|
+
return { ...description, landedBeforeAnyRunTaskRefs: landedTaskRefs.filter((taskRef) => !started.has(taskRef)) };
|
|
945
|
+
}
|
|
946
|
+
/**
|
|
947
|
+
* Every build task with at least one run that STARTED — the population a landing can be "its own" against. A
|
|
948
|
+
* dispatch refused before it started is not one (#1581). Read from the same actor rows and the same page cap as
|
|
949
|
+
* the build record, so the two surfaces cannot disagree about which tasks ran.
|
|
950
|
+
*/
|
|
951
|
+
async listBuildTaskRefsWithAStartedRun() {
|
|
952
|
+
const listed = await Promise.all([APPLICATION_CODING_SYSTEM_REF, APPLICATION_BUILD_SYSTEM_REF].map((systemRef) => this.executions.listActorExecutions(CompanionExecutionsListQuerySchema.parse({ systemRef, limit: BUILD_TASK_ATTEMPT_PAGE_CAP }))));
|
|
953
|
+
const started = new Set();
|
|
954
|
+
for (const projected of listed.flat().map(projectBuildTaskAttempt)) {
|
|
955
|
+
if (projected !== null && isCountedBuildTaskAttempt(projected.attempt))
|
|
956
|
+
started.add(projected.taskRef);
|
|
957
|
+
}
|
|
958
|
+
return { started, truncated: listed.some((page) => page.length >= BUILD_TASK_ATTEMPT_PAGE_CAP) };
|
|
959
|
+
}
|
|
960
|
+
async describeNextBuildTaskOrExhaustionUnqualified() {
|
|
474
961
|
try {
|
|
475
962
|
const prepared = await this.prepareNextBuildTask();
|
|
476
|
-
return { plan: prepared.plan, stuckTasks: prepared.stuckTasks };
|
|
963
|
+
return { description: { plan: prepared.plan, stuckTasks: prepared.stuckTasks }, landedTaskRefs: prepared.plan.landedTaskRefs };
|
|
477
964
|
}
|
|
478
965
|
catch (error) {
|
|
479
966
|
if (error instanceof ApplicationBuildPlanExhaustedError) {
|
|
480
|
-
return {
|
|
967
|
+
return {
|
|
968
|
+
description: { plan: null, exhausted: { taskCount: error.taskCount, landedCount: error.landedCount }, stuckTasks: [] },
|
|
969
|
+
landedTaskRefs: error.landedTaskRefs,
|
|
970
|
+
};
|
|
481
971
|
}
|
|
482
972
|
/*
|
|
483
973
|
* Every ready task is stuck — an ANSWER, for the same reason exhaustion is (#1451). It used to
|
|
@@ -486,7 +976,7 @@ let ApplicationBuildDispatchCompanionService = class ApplicationBuildDispatchCom
|
|
|
486
976
|
* still throw it: there, the caller asked to run something and nothing can run.
|
|
487
977
|
*/
|
|
488
978
|
if (error instanceof ApplicationBuildTaskCompletedButUnlandedError) {
|
|
489
|
-
return { plan: null, stuckQueue: error.queue, stuckTasks: error.stuckTasks };
|
|
979
|
+
return { description: { plan: null, stuckQueue: error.queue, stuckTasks: error.stuckTasks }, landedTaskRefs: error.queue.landedTaskRefs };
|
|
490
980
|
}
|
|
491
981
|
throw error;
|
|
492
982
|
}
|
|
@@ -548,9 +1038,11 @@ let ApplicationBuildDispatchCompanionService = class ApplicationBuildDispatchCom
|
|
|
548
1038
|
* {@link dispatchBuildTask} refuses it.
|
|
549
1039
|
*/
|
|
550
1040
|
selection) {
|
|
551
|
-
return this.
|
|
552
|
-
|
|
553
|
-
|
|
1041
|
+
return this.prepareNextBuildTaskOrQualifyExhaustion(selection).then(async (prepared) => {
|
|
1042
|
+
// The override rides the run's row only when it was exercised, so a run's record never claims one it did not use.
|
|
1043
|
+
const origin = prepared.landedOverride ? { landedOverride: prepared.landedOverride } : undefined;
|
|
1044
|
+
const opened = await this.openPreparedBuildTask(prepared, session, origin);
|
|
1045
|
+
void this.executePreparedBuildTask(prepared, session, origin, CodingRunConcurrency.SINGLE_FLIGHT, opened).catch((error) => {
|
|
554
1046
|
// The failure is ON THE ACTOR PLANE already, with this message: a coding dispatch refused
|
|
555
1047
|
// before admission settled ABORTED (FAILED when its own contract was invalid, #1581), a
|
|
556
1048
|
// generation step that threw settled FAILED. Logged because a detached run has no caller.
|
|
@@ -568,7 +1060,197 @@ let ApplicationBuildDispatchCompanionService = class ApplicationBuildDispatchCom
|
|
|
568
1060
|
* the same rows, because the record is a property of a DISPATCH and not of the door that asked.
|
|
569
1061
|
*/
|
|
570
1062
|
async dispatchNextBuildTask(session) {
|
|
571
|
-
return this.executePreparedBuildTask(await this.
|
|
1063
|
+
return this.executePreparedBuildTask(await this.prepareNextBuildTaskOrQualifyExhaustion(), session);
|
|
1064
|
+
}
|
|
1065
|
+
/**
|
|
1066
|
+
* {@link prepareNextBuildTask} for a DISPATCH door (#2222): when nothing is left to run, the refusal says whether
|
|
1067
|
+
* the application those tasks built assembles. The dispatch doors are where "the build is finished" is claimed —
|
|
1068
|
+
* `wildo build run` with nothing ready, the loop's next step — so that is where the claim is checked. The read
|
|
1069
|
+
* door (`describeNextBuildTaskOrExhaustion`) stays a read: it runs on every board poll and never spawns a compiler.
|
|
1070
|
+
*
|
|
1071
|
+
* And when it does NOT assemble, the next work is a REPAIR of the first failing check (#2283), within the bounds
|
|
1072
|
+
* {@link selectAssemblyRepair} keeps, rather than a refusal a person has to act on. Only for the NEXT-task door: a
|
|
1073
|
+
* caller that named a task asked about that task, and is refused with the verdict as before. While a repair runs,
|
|
1074
|
+
* the door refuses rather than asking the checks again under it: the repair is writing the tree they read.
|
|
1075
|
+
*/
|
|
1076
|
+
async prepareNextBuildTaskOrQualifyExhaustion(selection) {
|
|
1077
|
+
const prepared = await this.prepareNextBuildTaskOrRepair(selection);
|
|
1078
|
+
/*
|
|
1079
|
+
* The boot gate, for the single-task doors (#2405 review F1): `wildo build run --single`, the workbench and a
|
|
1080
|
+
* playbook's single dispatch all reach this method, and none of them may start the NEXT ordinary task into an
|
|
1081
|
+
* application that cannot start. A NAMED task passes (re-running the task that broke it is the repair), and so does
|
|
1082
|
+
* an assembly repair (it exists to make a failing check, the running backend among them, pass). The wave reads the
|
|
1083
|
+
* same records before every slot.
|
|
1084
|
+
*/
|
|
1085
|
+
if (selection === undefined && !isAssemblyRepairTaskRef(prepared.plan.taskRef)) {
|
|
1086
|
+
const notBooting = await this.readCurrentBootFailures();
|
|
1087
|
+
if (notBooting.length > 0)
|
|
1088
|
+
throw new ApplicationDoesNotBootError(notBooting);
|
|
1089
|
+
}
|
|
1090
|
+
return prepared;
|
|
1091
|
+
}
|
|
1092
|
+
async prepareNextBuildTaskOrRepair(selection) {
|
|
1093
|
+
try {
|
|
1094
|
+
return await this.prepareNextBuildTask(selection);
|
|
1095
|
+
}
|
|
1096
|
+
catch (error) {
|
|
1097
|
+
if (!(error instanceof ApplicationBuildPlanExhaustedError) || error.assembly !== undefined)
|
|
1098
|
+
throw error;
|
|
1099
|
+
// Either door: a check asked while a repair writes the tree reports on a tree in mid-edit.
|
|
1100
|
+
const liveRepair = await this.findLiveAssemblyRepair();
|
|
1101
|
+
if (liveRepair !== undefined) {
|
|
1102
|
+
throw new ApplicationBuildPlanExhaustedError(`${error.message} The assembly repair ${liveRepair} is running; ask again once it settles.`, error.taskCount, error.landedCount, error.landedTaskRefs);
|
|
1103
|
+
}
|
|
1104
|
+
if (selection !== undefined)
|
|
1105
|
+
throw await this.qualifyExhaustion(error);
|
|
1106
|
+
const assessed = await this.assessAssembly();
|
|
1107
|
+
const repair = await this.prepareAssemblyRepair(assessed, error);
|
|
1108
|
+
if (repair.prepared !== undefined)
|
|
1109
|
+
return repair.prepared;
|
|
1110
|
+
throw this.exhaustedWithAssembly(error, assessed, repair.withheld);
|
|
1111
|
+
}
|
|
1112
|
+
}
|
|
1113
|
+
async qualifyExhaustion(error) {
|
|
1114
|
+
return this.exhaustedWithAssembly(error, await this.assessAssembly(), []);
|
|
1115
|
+
}
|
|
1116
|
+
/**
|
|
1117
|
+
* Ask every assembly check (#2222). `failed[].detail` is the longer tail a repair is given (#2283); the verdict
|
|
1118
|
+
* keeps the five-line excerpt it always showed.
|
|
1119
|
+
*/
|
|
1120
|
+
async assessAssembly() {
|
|
1121
|
+
const checkRefs = resolveApplicationAssemblyCheckRefs(this.companionContext.saasRoot);
|
|
1122
|
+
const { verification, infrastructureError, unrunCheckRefs } = await this.dispatch.runApplicationVerificationChecks(checkRefs);
|
|
1123
|
+
// A check that never RAN is not a verdict about the application (#2222 review): it is kept out of `failed`.
|
|
1124
|
+
const unrun = new Set(unrunCheckRefs ?? []);
|
|
1125
|
+
const failed = verification
|
|
1126
|
+
.filter(({ checkRef, outcome }) => !outcome.success && !unrun.has(checkRef))
|
|
1127
|
+
.map(({ checkRef, outcome }) => {
|
|
1128
|
+
// tsc prints its diagnostics to stdout, so stdout first; stderr when a crash left nothing there.
|
|
1129
|
+
const tail = [outcome.stdoutTail, outcome.stderrTail].map((entry) => entry.trim()).find((entry) => entry.length > 0) ?? '';
|
|
1130
|
+
return { checkRef, output: tail.split('\n').slice(0, 5).join('\n') || outcome.message, detail: tail || outcome.message };
|
|
1131
|
+
});
|
|
1132
|
+
const couldNotRun = unrun.size > 0 || infrastructureError
|
|
1133
|
+
? `${[...unrun].join(', ') || 'a check'}: ${infrastructureError ? describeCaughtError(infrastructureError) : 'did not run'}`
|
|
1134
|
+
: undefined;
|
|
1135
|
+
return { checkRefs, failed, ...(couldNotRun !== undefined ? { couldNotRun } : {}) };
|
|
1136
|
+
}
|
|
1137
|
+
exhaustedWithAssembly(error, assessed, withheld) {
|
|
1138
|
+
const { checkRefs, couldNotRun } = assessed;
|
|
1139
|
+
const assembly = this.toAssemblyVerdict(assessed, withheld);
|
|
1140
|
+
const { failed } = assembly;
|
|
1141
|
+
const unanswered = couldNotRun !== undefined ? `\nNot answered (the check could not run, which says nothing about the application): ${couldNotRun}` : '';
|
|
1142
|
+
const verdict = assembly.passed
|
|
1143
|
+
? ` The application assembles: ${checkRefs.length} check(s) passed.`
|
|
1144
|
+
: failed.length > 0
|
|
1145
|
+
? ` But the application does NOT assemble — the plan's tasks landed and the program they make does not build: `
|
|
1146
|
+
+ failed.map((entry) => `${entry.checkRef}:\n${entry.output}`).join('\n')
|
|
1147
|
+
+ '\nFix the failing package (or re-run the task that owns it), then ask again.' + describeWithheldAssemblyRepairs(withheld) + unanswered
|
|
1148
|
+
: ` Whether the application assembles could not be checked: ${couldNotRun}`;
|
|
1149
|
+
return new ApplicationBuildPlanExhaustedError(`${error.message}${verdict}`, error.taskCount, error.landedCount, error.landedTaskRefs, assembly);
|
|
1150
|
+
}
|
|
1151
|
+
toAssemblyVerdict(assessed, withheld) {
|
|
1152
|
+
const failed = assessed.failed.map(({ checkRef, output }) => ({ checkRef, output }));
|
|
1153
|
+
return {
|
|
1154
|
+
passed: failed.length === 0 && assessed.couldNotRun === undefined,
|
|
1155
|
+
checkRefs: assessed.checkRefs,
|
|
1156
|
+
failed,
|
|
1157
|
+
...(assessed.couldNotRun !== undefined ? { couldNotRun: assessed.couldNotRun } : {}),
|
|
1158
|
+
...(withheld.length > 0 ? { repairsWithheld: withheld } : {}),
|
|
1159
|
+
};
|
|
1160
|
+
}
|
|
1161
|
+
/** The taskRef of a live assembly repair, or `undefined`. A plane that cannot be read answers `undefined`: the admission still refuses a second run. */
|
|
1162
|
+
async findLiveAssemblyRepair() {
|
|
1163
|
+
try {
|
|
1164
|
+
return (await this.dispatch.listInFlightCodingRuns()).map((run) => run.taskRef).find((taskRef) => taskRef !== null && isAssemblyRepairTaskRef(taskRef));
|
|
1165
|
+
}
|
|
1166
|
+
catch (error) {
|
|
1167
|
+
this.logDebug('Could not list the live coding runs before asking the assembly checks', { error: describeCaughtError(error) });
|
|
1168
|
+
return undefined;
|
|
1169
|
+
}
|
|
1170
|
+
}
|
|
1171
|
+
/**
|
|
1172
|
+
* The repair the failing checks are owed now, prepared exactly as a coding task is (#2283), or the checks it is
|
|
1173
|
+
* withheld from. See `application-assembly-repair.companion.utils.ts` for the bounds, and
|
|
1174
|
+
* `composeAssemblyRepairCodingContract` for why a repair is not a build-plan task.
|
|
1175
|
+
*
|
|
1176
|
+
* The run history that bounds it is the build's own execution rows, where each repair records the check and the
|
|
1177
|
+
* failure it was given (`assemblyRepair` on the row input). If they cannot be read, nothing is repaired: a bound that
|
|
1178
|
+
* cannot be measured is not spent on a guess, and the refusal still names the failing checks.
|
|
1179
|
+
*
|
|
1180
|
+
* A repair's context is the failure and its previous failed attempt, nothing else. It gets no skill and no live-query
|
|
1181
|
+
* menu, unlike a build task: a build task's skills come from what it builds, and a repair builds nothing new, it
|
|
1182
|
+
* makes a named check pass, and the check's own output is the most specific brief there is. Revisit if repairs are
|
|
1183
|
+
* measured failing for want of knowledge they would have had.
|
|
1184
|
+
*/
|
|
1185
|
+
async prepareAssemblyRepair(assessed, exhausted) {
|
|
1186
|
+
if (assessed.failed.length === 0)
|
|
1187
|
+
return { withheld: [] };
|
|
1188
|
+
let runs;
|
|
1189
|
+
try {
|
|
1190
|
+
runs = await this.listBuildDispatchRuns();
|
|
1191
|
+
}
|
|
1192
|
+
catch (error) {
|
|
1193
|
+
this.logger.warn('Could not read the build\'s runs; no assembly repair is dispatched', { error: describeCaughtError(error) });
|
|
1194
|
+
return { withheld: [] };
|
|
1195
|
+
}
|
|
1196
|
+
const workspaceEntries = this.readApplicationWorkspaceEntries();
|
|
1197
|
+
const decision = selectAssemblyRepair(assessed.failed, assemblyRepairAttemptsThisRound(runs), (checkRef) => resolveAssemblyRepairCodingPolicy(checkRef, workspaceEntries).requiredCheckRefs);
|
|
1198
|
+
if (decision.repair === undefined)
|
|
1199
|
+
return { withheld: decision.withheld };
|
|
1200
|
+
const failure = assessed.failed.find((entry) => entry.checkRef === decision.repair.checkRef);
|
|
1201
|
+
const content = {
|
|
1202
|
+
checkRef: failure.checkRef,
|
|
1203
|
+
output: failure.output,
|
|
1204
|
+
...(failure.detail !== failure.output ? { detail: failure.detail } : {}),
|
|
1205
|
+
guidance: ASSEMBLY_REPAIR_GUIDANCE,
|
|
1206
|
+
};
|
|
1207
|
+
const contextSources = [{ sourceRef: ASSEMBLY_FAILURE_CONTEXT_SOURCE_REF, originRef: 'application-creation:origin/dev-companion', content }];
|
|
1208
|
+
const boundary = resolveAssemblyRepairCodingPolicy(failure.checkRef, workspaceEntries);
|
|
1209
|
+
const taskRef = assemblyRepairTaskRef(failure.checkRef);
|
|
1210
|
+
// The previous repair of this check that FAILED, as a retry of a build task is shown its (#1536). Best-effort.
|
|
1211
|
+
try {
|
|
1212
|
+
const [latest] = await this.dispatch.listAttributableFailedRunsForBuildTask(taskRef, undefined, { includeRearmed: true });
|
|
1213
|
+
if (latest !== undefined)
|
|
1214
|
+
contextSources.push(previousAttemptContextSource(latest));
|
|
1215
|
+
}
|
|
1216
|
+
catch (error) {
|
|
1217
|
+
this.logDebug('Previous-repair source omitted from the repair context', { taskRef, error: describeCaughtError(error) });
|
|
1218
|
+
}
|
|
1219
|
+
const contract = composeAssemblyRepairCodingContract({
|
|
1220
|
+
checkRef: failure.checkRef,
|
|
1221
|
+
boundary,
|
|
1222
|
+
contextSources,
|
|
1223
|
+
objectiveRef: 'application-creation:objective/build-plan',
|
|
1224
|
+
});
|
|
1225
|
+
// Owed, not yet dispatched: the read before a wave asks this too, and dispatches nothing.
|
|
1226
|
+
this.logger.warn('The finished build plan does not assemble; a repair of the first failing check is owed', {
|
|
1227
|
+
checkRef: failure.checkRef, taskRef, withheld: decision.withheld, maximumRepairsPerCheck: MAXIMUM_ASSEMBLY_REPAIRS_PER_CHECK,
|
|
1228
|
+
});
|
|
1229
|
+
const plan = {
|
|
1230
|
+
taskRef,
|
|
1231
|
+
// The failure's first line rides the objective, so the advisory judge grades the repair against what it was given.
|
|
1232
|
+
objective: `Every build-plan task landed and ${failure.checkRef} fails: repair the application so that it passes. `
|
|
1233
|
+
+ `It printed: ${failure.output.split('\n')[0] ?? ''}`,
|
|
1234
|
+
targetKind: ASSEMBLY_REPAIR_TARGET_KIND,
|
|
1235
|
+
produces: [],
|
|
1236
|
+
allowedPathPrefixes: contract.mutationScope.allowedPathPrefixes,
|
|
1237
|
+
prohibitedPathPrefixes: contract.mutationScope.prohibitedPathPrefixes,
|
|
1238
|
+
requiredChecks: contract.verificationIntent.requiredChecks,
|
|
1239
|
+
installedSkillRefs: contract.installedSkillRefs,
|
|
1240
|
+
readyTaskRefs: [],
|
|
1241
|
+
landedTaskRefs: exhausted.landedTaskRefs,
|
|
1242
|
+
unverifiableLandedTaskRefs: [],
|
|
1243
|
+
};
|
|
1244
|
+
return { prepared: { kind: 'CODING', plan, contract, stuckTasks: [] }, withheld: decision.withheld };
|
|
1245
|
+
}
|
|
1246
|
+
/** The build's dispatch rows, coding runs and generation steps, as {@link assemblyRepairAttemptsThisRound} reads them. */
|
|
1247
|
+
async listBuildDispatchRuns() {
|
|
1248
|
+
const listed = await Promise.all([APPLICATION_CODING_SYSTEM_REF, APPLICATION_BUILD_SYSTEM_REF].map((systemRef) => this.executions.listActorExecutions(CompanionExecutionsListQuerySchema.parse({ systemRef, limit: BUILD_TASK_ATTEMPT_PAGE_CAP }))));
|
|
1249
|
+
return listed.flat().flatMap((execution) => {
|
|
1250
|
+
const task = execution.standaloneTasks[0];
|
|
1251
|
+
const taskRef = task?.input?.taskRef;
|
|
1252
|
+
return typeof taskRef === 'string' ? [{ taskRef, startedAt: execution.createdAt, status: execution.status, input: task.input }] : [];
|
|
1253
|
+
});
|
|
572
1254
|
}
|
|
573
1255
|
/**
|
|
574
1256
|
* Run THIS task (#1454, Step 7). Admitted only when it is READY: the same selection as
|
|
@@ -627,6 +1309,7 @@ let ApplicationBuildDispatchCompanionService = class ApplicationBuildDispatchCom
|
|
|
627
1309
|
taskRef: prepared.plan.taskRef,
|
|
628
1310
|
generationStepRef: prepared.plan.generationStepRef ?? null,
|
|
629
1311
|
...(origin?.conversationId ? { conversationId: origin.conversationId } : {}),
|
|
1312
|
+
...(origin?.landedOverride ? { landedOverride: origin.landedOverride } : {}),
|
|
630
1313
|
},
|
|
631
1314
|
// The same cross-plane join a coding task carries, so the board matches either kind of
|
|
632
1315
|
// dispatch to its build-plan row by one key.
|
|
@@ -673,13 +1356,21 @@ let ApplicationBuildDispatchCompanionService = class ApplicationBuildDispatchCom
|
|
|
673
1356
|
taskRef: prepared.plan.taskRef,
|
|
674
1357
|
taskId: opened.taskId,
|
|
675
1358
|
execute: () => this.generationSteps.executeGenerationStep(prepared.task, session),
|
|
1359
|
+
// Its claims when a concurrent wave shares the tree (#2240): the roots derived from its evidence paths.
|
|
1360
|
+
ownedPathPrefixes: prepared.plan.allowedPathPrefixes,
|
|
676
1361
|
...(session ? { sessionContext: session } : {}),
|
|
677
1362
|
}), session, {
|
|
678
1363
|
// The step's PRODUCT is files on disk; the row names them so a reader need not re-derive where to look.
|
|
1364
|
+
// And what its model calls spent (#2232): the build's cost is incomplete without its generation steps.
|
|
679
1365
|
concludeAs: (result) => ({
|
|
680
1366
|
status: FlowsActors_Status.COMPLETED,
|
|
681
|
-
taskOutput: { generationStepRef: result.generationStepRef, evidencePaths: result.evidencePaths },
|
|
1367
|
+
taskOutput: { generationStepRef: result.generationStepRef, evidencePaths: result.evidencePaths, spend: result.spend },
|
|
682
1368
|
}),
|
|
1369
|
+
// A failed run spent money too — also when the step itself succeeded and what followed it threw.
|
|
1370
|
+
recordBesideFailure: () => {
|
|
1371
|
+
const spend = this.generationSteps.spentByGenerationStep(prepared.task);
|
|
1372
|
+
return spend ? { spend } : null;
|
|
1373
|
+
},
|
|
683
1374
|
}).finally(() => this.dispatch.announceRunStateChanged());
|
|
684
1375
|
return { plan: prepared.plan, generationStep };
|
|
685
1376
|
}
|
|
@@ -752,6 +1443,13 @@ let ApplicationBuildDispatchCompanionService = class ApplicationBuildDispatchCom
|
|
|
752
1443
|
throw error;
|
|
753
1444
|
}
|
|
754
1445
|
}
|
|
1446
|
+
/**
|
|
1447
|
+
* The coding agent's usage limit holding the build now (#2388), or undefined. The CODING_AGENT tier asks it to
|
|
1448
|
+
* send a single-flight build through the wave while a limit holds, so one path pauses and resumes both.
|
|
1449
|
+
*/
|
|
1450
|
+
readCodingAgentUsageLimitHold() {
|
|
1451
|
+
return this.dispatch.readCodingAgentUsageLimitHold();
|
|
1452
|
+
}
|
|
755
1453
|
/**
|
|
756
1454
|
* Run the build with up to {@link readBuildParallelism} coding runs at once in the ONE worktree
|
|
757
1455
|
* (#1528) — a rolling pool rather than fixed batches: when a run settles its slot is refilled with
|
|
@@ -761,18 +1459,39 @@ let ApplicationBuildDispatchCompanionService = class ApplicationBuildDispatchCom
|
|
|
761
1459
|
* parallel Claude Code sessions do every day. What is prevented is only a task being built twice at
|
|
762
1460
|
* once (the per-task subject and the IN_FLIGHT skip). What is REPAIRED is at the end: once every run
|
|
763
1461
|
* has settled, {@link CodingAgentDispatchCompanionService.reconcileWaveAcceptance} commits what the
|
|
764
|
-
* runs' own accepts left, as one change naming every run whose writes it may carry (#1805)
|
|
765
|
-
*
|
|
766
|
-
* (`concurrency`, `interferenceSuspected
|
|
1462
|
+
* runs' own accepts left, as one change naming every run whose writes it may carry (#1805); then
|
|
1463
|
+
* {@link repairInterferedTasks} re-runs, ALONE, each task whose completed run lost its product to a
|
|
1464
|
+
* sibling (#2210). What is OBSERVED is on each run's row (`concurrency`, `interferenceSuspected`, and the
|
|
1465
|
+
* `interference` memory entry).
|
|
767
1466
|
*
|
|
768
1467
|
* Bounded per call: at most {@link WAVE_DISPATCHES_PER_DEGREE} dispatches per slot, and a generation
|
|
769
1468
|
* step at most once — a step whose landing stays unmet would otherwise be re-selected forever. The
|
|
770
|
-
*
|
|
1469
|
+
* interference re-runs are outside that cap, bounded per task by `MAXIMUM_INTERFERENCE_REARMS` and at most
|
|
1470
|
+
* one per completed run of this wave. The next call continues from wherever the build stands.
|
|
771
1471
|
*
|
|
772
1472
|
* With a degree of 1 this is one single-flight dispatch awaited to its outcome: exactly the lane as
|
|
773
1473
|
* it was.
|
|
774
1474
|
*/
|
|
775
1475
|
async dispatchBuildWave(session) {
|
|
1476
|
+
this.assertNoBuildWaveInFlight();
|
|
1477
|
+
this.liveWaveStartedAt = new Date().toISOString();
|
|
1478
|
+
try {
|
|
1479
|
+
return await this.runBuildWave(session);
|
|
1480
|
+
}
|
|
1481
|
+
finally {
|
|
1482
|
+
this.liveWaveStartedAt = undefined;
|
|
1483
|
+
}
|
|
1484
|
+
}
|
|
1485
|
+
/**
|
|
1486
|
+
* Refuse while a build wave runs in this companion (#2208 review M1) — the check a caller makes BEFORE it
|
|
1487
|
+
* submits a detached wave, so the refusal reaches it now rather than as a failed run in the feed. The marker
|
|
1488
|
+
* spans the whole wave, including its end-of-wave commit and repair, when no coding run may be live.
|
|
1489
|
+
*/
|
|
1490
|
+
assertNoBuildWaveInFlight() {
|
|
1491
|
+
if (this.liveWaveStartedAt !== undefined)
|
|
1492
|
+
throw new ApplicationBuildWaveInFlightError(this.liveWaveStartedAt);
|
|
1493
|
+
}
|
|
1494
|
+
async runBuildWave(session) {
|
|
776
1495
|
const degree = readBuildParallelism(this.companionContext.saasRoot);
|
|
777
1496
|
const mode = degree > 1 ? CodingRunConcurrency.CONCURRENT : CodingRunConcurrency.SINGLE_FLIGHT;
|
|
778
1497
|
const maximumDispatches = degree * WAVE_DISPATCHES_PER_DEGREE;
|
|
@@ -782,12 +1501,33 @@ let ApplicationBuildDispatchCompanionService = class ApplicationBuildDispatchCom
|
|
|
782
1501
|
let stoppedFillingBecause;
|
|
783
1502
|
// When the wave began: a concurrent run that recorded writes since then shared its tree (#1805).
|
|
784
1503
|
const startedAt = new Date().toISOString();
|
|
1504
|
+
let usageLimit;
|
|
1505
|
+
let bootFailures;
|
|
785
1506
|
const fill = async () => {
|
|
786
1507
|
while (stoppedFillingBecause === undefined && inFlight.size < degree) {
|
|
787
1508
|
if (dispatched.length >= maximumDispatches) {
|
|
788
1509
|
stoppedFillingBecause = ApplicationBuildWaveStop.DISPATCH_CAP;
|
|
789
1510
|
return;
|
|
790
1511
|
}
|
|
1512
|
+
/*
|
|
1513
|
+
* And before every slot, whether the application still STARTS (#2405). On app-creation-test-005 one task broke
|
|
1514
|
+
* the backend's start and about 45 more landed on top over four hours, each verified by typechecks that could
|
|
1515
|
+
* not see it. The live runs drain; nothing new starts into an application that cannot run.
|
|
1516
|
+
*/
|
|
1517
|
+
const notBooting = await this.readCurrentBootFailures();
|
|
1518
|
+
if (notBooting.length > 0) {
|
|
1519
|
+
bootFailures = notBooting;
|
|
1520
|
+
/*
|
|
1521
|
+
* While runs are live this PAUSES the filling rather than ending it (#2405 review F2): a sibling half-way
|
|
1522
|
+
* through writing a configuration can make one restart fail, and its own completion may repair it. The next
|
|
1523
|
+
* settle asks again. With nothing live there is nothing left to wait for, and the wave stops.
|
|
1524
|
+
*/
|
|
1525
|
+
if (inFlight.size > 0)
|
|
1526
|
+
return;
|
|
1527
|
+
stoppedFillingBecause = ApplicationBuildWaveStop.APPLICATION_DOES_NOT_BOOT;
|
|
1528
|
+
return;
|
|
1529
|
+
}
|
|
1530
|
+
bootFailures = undefined;
|
|
791
1531
|
let prepared;
|
|
792
1532
|
try {
|
|
793
1533
|
prepared = await this.prepareNextBuildTask();
|
|
@@ -810,6 +1550,20 @@ let ApplicationBuildDispatchCompanionService = class ApplicationBuildDispatchCom
|
|
|
810
1550
|
dispatched.push(await this.executePreparedBuildTask(prepared, session));
|
|
811
1551
|
continue;
|
|
812
1552
|
}
|
|
1553
|
+
/*
|
|
1554
|
+
* Before every CODING slot, including the refill after a run settles (#2388): a sibling that just met the
|
|
1555
|
+
* account's usage limit makes every coding turn started before its reset certain to fail the same way. On
|
|
1556
|
+
* app-creation-test-005 the refill went on regardless, and four tasks spent three or four attempts each in
|
|
1557
|
+
* five minutes. The live runs still drain; nothing new starts. Asked after the selection, which only reads,
|
|
1558
|
+
* so a generation step — run on the configured model providers, not on the coding agent's account — still
|
|
1559
|
+
* runs (#2388 review F8d).
|
|
1560
|
+
*/
|
|
1561
|
+
const held = this.dispatch.readCodingAgentUsageLimitHold();
|
|
1562
|
+
if (held) {
|
|
1563
|
+
stoppedFillingBecause = ApplicationBuildWaveStop.CODING_AGENT_USAGE_LIMITED;
|
|
1564
|
+
usageLimit = held;
|
|
1565
|
+
return;
|
|
1566
|
+
}
|
|
813
1567
|
try {
|
|
814
1568
|
const result = await this.executePreparedBuildTask(prepared, session, undefined, mode);
|
|
815
1569
|
dispatched.push(result);
|
|
@@ -834,6 +1588,9 @@ let ApplicationBuildDispatchCompanionService = class ApplicationBuildDispatchCom
|
|
|
834
1588
|
settledTaskIds.push(settled.taskId);
|
|
835
1589
|
await fill();
|
|
836
1590
|
}
|
|
1591
|
+
// A pause on a failing start that the drained runs did not clear ends the wave on it, not on "nothing ready".
|
|
1592
|
+
if (stoppedFillingBecause === undefined && bootFailures !== undefined)
|
|
1593
|
+
stoppedFillingBecause = ApplicationBuildWaveStop.APPLICATION_DOES_NOT_BOOT;
|
|
837
1594
|
stoppedFillingBecause ??= ApplicationBuildWaveStop.NOTHING_READY;
|
|
838
1595
|
/*
|
|
839
1596
|
* REPAIR, now that nothing is writing: what the runs' own accepts left in the tree is committed as ONE
|
|
@@ -844,7 +1601,233 @@ let ApplicationBuildDispatchCompanionService = class ApplicationBuildDispatchCom
|
|
|
844
1601
|
const reconciliation = mode === CodingRunConcurrency.CONCURRENT && settledTaskIds.length > 0
|
|
845
1602
|
? await this.dispatch.reconcileWaveAcceptance({ startedAt, taskIds: settledTaskIds })
|
|
846
1603
|
: [];
|
|
847
|
-
|
|
1604
|
+
/*
|
|
1605
|
+
* And the repair reconciliation cannot make (#2210): a run that COMPLETED but whose product a sibling
|
|
1606
|
+
* overwrote. Its file is now committed, holding the siblings' work and not its own, so no commit can
|
|
1607
|
+
* bring it back; only running the task again can. Asked after the reconciliation, so landing reads the
|
|
1608
|
+
* tree every run's work has reached.
|
|
1609
|
+
*/
|
|
1610
|
+
const interferenceRepairs = mode === CodingRunConcurrency.CONCURRENT
|
|
1611
|
+
? await this.repairInterferedTasks(outcomes, session)
|
|
1612
|
+
: [];
|
|
1613
|
+
/*
|
|
1614
|
+
* #2222: a wave that ran out of ready work may have FINISHED the plan. Asked after the reconciliation and the
|
|
1615
|
+
* repairs, so it reads the tree every run's work reached — and only on NOTHING_READY, the one stop that can mean
|
|
1616
|
+
* "done" (a cap, a refusal or a repeated step leaves work behind).
|
|
1617
|
+
*/
|
|
1618
|
+
const { assembly, repairs: assemblyRepairs } = stoppedFillingBecause === ApplicationBuildWaveStop.NOTHING_READY
|
|
1619
|
+
? await this.assemblyIfPlanExhausted(session)
|
|
1620
|
+
: { assembly: undefined, repairs: [] };
|
|
1621
|
+
/*
|
|
1622
|
+
* A hold that began after the filling stopped — a draining run, an interference re-run or an assembly repair
|
|
1623
|
+
* meeting the limit — is reported too, so the lane resumes the build after the reset whatever stopped it.
|
|
1624
|
+
*/
|
|
1625
|
+
usageLimit ??= this.dispatch.readCodingAgentUsageLimitHold();
|
|
1626
|
+
const landedThisWave = outcomes.filter((outcome) => outcome?.succeeded === true && outcome.taskRef !== null).map((outcome) => outcome.taskRef);
|
|
1627
|
+
return {
|
|
1628
|
+
degree, mode, dispatched, outcomes, reconciliation, interferenceRepairs, stoppedFillingBecause,
|
|
1629
|
+
...(bootFailures ? { bootFailures: bootFailures.map((failure) => ({ ...failure, landedThisWave })) } : {}),
|
|
1630
|
+
...(usageLimit ? { usageLimit } : {}),
|
|
1631
|
+
...(assembly ? { assembly } : {}),
|
|
1632
|
+
...(assemblyRepairs.length > 0 ? { assemblyRepairs } : {}),
|
|
1633
|
+
};
|
|
1634
|
+
}
|
|
1635
|
+
/**
|
|
1636
|
+
* The application backends whose last start failed and still describe the tree (#2405), read from the backends' own
|
|
1637
|
+
* start records. Empty when there is none, or when no local dev loop runs (nothing to ask): only an observed failure
|
|
1638
|
+
* stops a wave, never an absence of evidence. The newest commit is what `readApplicationBootFailures` weighs a failure
|
|
1639
|
+
* against, so a restart still pending on a fresh commit is not mistaken for a failure of that commit.
|
|
1640
|
+
*/
|
|
1641
|
+
async readCurrentBootFailures() {
|
|
1642
|
+
try {
|
|
1643
|
+
const newestCommitUnixTime = await this.git.lastCommitUnixTime('.');
|
|
1644
|
+
return await readApplicationBootFailures(this.companionContext.saasRoot, {
|
|
1645
|
+
newestCommitAtMs: newestCommitUnixTime === undefined ? undefined : newestCommitUnixTime * 1000,
|
|
1646
|
+
}) ?? [];
|
|
1647
|
+
}
|
|
1648
|
+
catch (error) {
|
|
1649
|
+
this.logDebug('Could not read the backend start records; the wave does not gate on them', { error: describeCaughtError(error) });
|
|
1650
|
+
return [];
|
|
1651
|
+
}
|
|
1652
|
+
}
|
|
1653
|
+
/**
|
|
1654
|
+
* The assembly verdict when no task is ready because every one landed; absent when work remains or is stuck.
|
|
1655
|
+
*
|
|
1656
|
+
* When the finished plan does not assemble, the wave REPAIRS it here (#2283): it asks the next-task door, which
|
|
1657
|
+
* answers with a repair of the first failing check while one is owed, runs that repair ALONE, waits for it, and
|
|
1658
|
+
* asks again, until the door answers with a verdict. The door's per-check bounds end the loop; the ceiling below
|
|
1659
|
+
* only guards against a repair that never counts, one the host keeps refusing before it starts.
|
|
1660
|
+
*/
|
|
1661
|
+
async assemblyIfPlanExhausted(session) {
|
|
1662
|
+
const repairs = [];
|
|
1663
|
+
const ceiling = MAXIMUM_ASSEMBLY_REPAIRS_PER_CHECK * resolveApplicationAssemblyCheckRefs(this.companionContext.saasRoot).length;
|
|
1664
|
+
for (;;) {
|
|
1665
|
+
// A repair is a coding turn too: none starts into the account's usage limit, and the resumed wave asks again (#2388).
|
|
1666
|
+
if (this.dispatch.readCodingAgentUsageLimitHold())
|
|
1667
|
+
return { repairs };
|
|
1668
|
+
let prepared;
|
|
1669
|
+
try {
|
|
1670
|
+
prepared = await this.prepareNextBuildTaskOrQualifyExhaustion();
|
|
1671
|
+
}
|
|
1672
|
+
catch (error) {
|
|
1673
|
+
return { ...(error instanceof ApplicationBuildPlanExhaustedError && error.assembly ? { assembly: error.assembly } : {}), repairs };
|
|
1674
|
+
}
|
|
1675
|
+
// A ready task means the plan is not finished after all, so there is no verdict to give.
|
|
1676
|
+
if (!isAssemblyRepairTaskRef(prepared.plan.taskRef))
|
|
1677
|
+
return { repairs };
|
|
1678
|
+
// Past the ceiling the repair is not run, and the wave still says whether the application assembles (#2283 review F2).
|
|
1679
|
+
if (repairs.length >= ceiling)
|
|
1680
|
+
return { assembly: this.toAssemblyVerdict(await this.assessAssembly(), []), repairs };
|
|
1681
|
+
const checkRef = prepared.kind === 'CODING' ? readGivenAssemblyFailure(prepared.contract)?.checkRef ?? prepared.plan.taskRef : prepared.plan.taskRef;
|
|
1682
|
+
try {
|
|
1683
|
+
const dispatched = await this.executePreparedBuildTask(prepared, session);
|
|
1684
|
+
const outcome = dispatched.admission ? await this.awaitCodingRunOutcome(dispatched.admission.taskId, session) : null;
|
|
1685
|
+
repairs.push({ checkRef, taskRef: prepared.plan.taskRef, outcome });
|
|
1686
|
+
}
|
|
1687
|
+
catch (error) {
|
|
1688
|
+
// The repair could not run (a held worktree, a refused admission); the plan is still finished, so the wave still answers.
|
|
1689
|
+
this.logger.warn('An assembly repair could not be run at the end of the wave', { checkRef, error: describeCaughtError(error) });
|
|
1690
|
+
return { assembly: this.toAssemblyVerdict(await this.assessAssembly(), []), repairs };
|
|
1691
|
+
}
|
|
1692
|
+
}
|
|
1693
|
+
}
|
|
1694
|
+
/**
|
|
1695
|
+
* DETECT and REPAIR a product a sibling overwrote (#2210) — the half of the parallel wave's
|
|
1696
|
+
* detect-and-repair decision (Paul, 2026-09-24, recorded in `concurrent-coding-runs.models.ts`) that only
|
|
1697
|
+
* covered FAILED runs until then. A run that succeeded and then lost its write was reported
|
|
1698
|
+
* `completed_unlanded` ("fix what it declares, or the work") and waited for a person, although nothing in
|
|
1699
|
+
* the task was wrong. Measured on `app-creation-test-004` (2026-10-01, degree 5): two of five chapters were
|
|
1700
|
+
* lost from one chapters index, and both landed only when a person re-ran each task alone.
|
|
1701
|
+
*
|
|
1702
|
+
* A completed run counts as interfered when, all three:
|
|
1703
|
+
* - its task has not landed, and its declared product is missing from the WORKING tree too (present there
|
|
1704
|
+
* it was merely left uncommitted, which re-running would not fix);
|
|
1705
|
+
* - another run of the wave overlapped it in time (`describeCodingRunOverlap`, computed now that every
|
|
1706
|
+
* window is closed);
|
|
1707
|
+
* - one of the files read by the task's UNMET probes (the missing product's files, never a satisfied
|
|
1708
|
+
* product's) was changed by that overlapping run too.
|
|
1709
|
+
* Suspected, never proven, like `interferenceSuspected` on a failed run: the wave sees that a sibling wrote
|
|
1710
|
+
* the product's file during the run, not which line it replaced.
|
|
1711
|
+
*
|
|
1712
|
+
* The repair re-arms the task with `INTERFERED_BY_CONCURRENT_RUN` and runs it again SINGLE-FLIGHT, at once:
|
|
1713
|
+
* the concurrent runs have all settled, so the re-run edits the file as it now stands and nothing can
|
|
1714
|
+
* overwrite it. It is not prevention — the wave still runs every task concurrently, as decided — it is the
|
|
1715
|
+
* repair, made where the evidence is. Bounded by {@link MAXIMUM_INTERFERENCE_REARMS} per task. Sequential,
|
|
1716
|
+
* because the re-runs are single-flight.
|
|
1717
|
+
*/
|
|
1718
|
+
async repairInterferedTasks(outcomes, session) {
|
|
1719
|
+
const completed = outcomes.filter((outcome) => outcome?.succeeded === true && outcome.taskRef !== null);
|
|
1720
|
+
if (completed.length === 0)
|
|
1721
|
+
return [];
|
|
1722
|
+
/*
|
|
1723
|
+
* Best-effort, like every repair here: the wave's runs are settled and reconciled already, and a detection
|
|
1724
|
+
* that cannot read the plan must not turn that result into a thrown wave. Logged, so a silent miss is not
|
|
1725
|
+
* the outcome; the task then reads `completed_unlanded`, as it did before #2210.
|
|
1726
|
+
*/
|
|
1727
|
+
let graph;
|
|
1728
|
+
try {
|
|
1729
|
+
graph = await this.readBuildPlan();
|
|
1730
|
+
}
|
|
1731
|
+
catch (error) {
|
|
1732
|
+
this.logger.warn('Could not look for completed runs a sibling interfered with at the end of the wave', { error: describeCaughtError(error) });
|
|
1733
|
+
return [];
|
|
1734
|
+
}
|
|
1735
|
+
const repairs = [];
|
|
1736
|
+
for (const run of completed) {
|
|
1737
|
+
try {
|
|
1738
|
+
/*
|
|
1739
|
+
* Landing and the working tree are read again for EACH run: a previous run's single-flight re-run has
|
|
1740
|
+
* rewritten the shared file since, and a reading taken before it would judge this run on stale text.
|
|
1741
|
+
*/
|
|
1742
|
+
const landed = (await this.resolveLandedTaskRefs(graph.tasks)).landed;
|
|
1743
|
+
const repair = await this.repairIfInterfered(run, graph, landed, this.createWorktreeReader(), session);
|
|
1744
|
+
if (repair)
|
|
1745
|
+
repairs.push(repair);
|
|
1746
|
+
}
|
|
1747
|
+
catch (error) {
|
|
1748
|
+
this.logger.warn('Could not repair a completed run a sibling may have interfered with', { taskRef: run.taskRef, runTaskId: run.taskId, error: describeCaughtError(error) });
|
|
1749
|
+
}
|
|
1750
|
+
}
|
|
1751
|
+
return repairs;
|
|
1752
|
+
}
|
|
1753
|
+
/** One run of {@link repairInterferedTasks}: `undefined` when it was not interfered with. */
|
|
1754
|
+
async repairIfInterfered(run, graph, landed, worktree, session) {
|
|
1755
|
+
if (landed.has(run.taskRef))
|
|
1756
|
+
return undefined;
|
|
1757
|
+
const task = graph.tasks.find((candidate) => candidate.taskRef === run.taskRef);
|
|
1758
|
+
if (!task)
|
|
1759
|
+
return undefined;
|
|
1760
|
+
const probes = resolveBuildTaskLandedProbes(task).filter((probe) => !isShellProbe(probe));
|
|
1761
|
+
if (probes.length === 0)
|
|
1762
|
+
return undefined;
|
|
1763
|
+
const presentInWorktree = await Promise.all(probes.map((probe) => this.isLandedProbeSatisfied(probe, worktree)));
|
|
1764
|
+
if (presentInWorktree.every(Boolean))
|
|
1765
|
+
return undefined;
|
|
1766
|
+
const overlap = this.dispatch.describeCodingRunOverlap(run.taskId);
|
|
1767
|
+
if (!overlap)
|
|
1768
|
+
return undefined;
|
|
1769
|
+
// Only the MISSING product's files: a satisfied probe on a file a sibling also touched says nothing about why
|
|
1770
|
+
// another probe of the task is unmet, and counting it would blame a sibling for the task's own omission.
|
|
1771
|
+
const productPaths = new Set(probes.filter((_, index) => !presentInWorktree[index]).flatMap(landedProbePaths));
|
|
1772
|
+
const contendedProductPaths = overlap.contendedPaths.filter((path) => productPaths.has(path));
|
|
1773
|
+
if (contendedProductPaths.length === 0)
|
|
1774
|
+
return undefined;
|
|
1775
|
+
const previousRequeues = (await this.dispatch.listCompletedRunsForBuildTask(run.taskRef, session))
|
|
1776
|
+
.filter((candidate) => candidate.taskId !== run.taskId && candidate.interference?.requeued === true).length;
|
|
1777
|
+
const detected = { overlappingTaskRefs: overlap.overlappingTaskRefs, contendedProductPaths, detectedAt: new Date().toISOString() };
|
|
1778
|
+
if (previousRequeues >= MAXIMUM_INTERFERENCE_REARMS) {
|
|
1779
|
+
const interference = { ...detected, requeued: false };
|
|
1780
|
+
await this.dispatch.recordBuildTaskInterference(run.taskRef, run.taskId, interference, session);
|
|
1781
|
+
this.logger.warn('A completed run lost its product to a concurrent sibling again, and the interference re-runs are spent; the task waits for a person', {
|
|
1782
|
+
taskRef: run.taskRef, runTaskId: run.taskId, previousRequeues, ...interference,
|
|
1783
|
+
});
|
|
1784
|
+
return { taskRef: run.taskRef, runTaskId: run.taskId, interference };
|
|
1785
|
+
}
|
|
1786
|
+
/*
|
|
1787
|
+
* Re-armed FIRST, recorded after, so `requeued` states what happened: a re-arm that throws leaves a record
|
|
1788
|
+
* saying the task was NOT requeued, which neither spends the bound nor tells `why` the wave re-ran it.
|
|
1789
|
+
*/
|
|
1790
|
+
let requeued = true;
|
|
1791
|
+
let rearmError;
|
|
1792
|
+
try {
|
|
1793
|
+
await this.dispatch.rearmBuildTask(run.taskRef, {
|
|
1794
|
+
reason: BuildTaskRearmReason.INTERFERED_BY_CONCURRENT_RUN,
|
|
1795
|
+
note: `Concurrent run(s) ${detected.overlappingTaskRefs.join(', ')} changed ${contendedProductPaths.join(', ')} during this run, and the product this task declares is missing from it (suspected interference); the build wave re-runs it alone.`,
|
|
1796
|
+
}, session);
|
|
1797
|
+
}
|
|
1798
|
+
catch (error) {
|
|
1799
|
+
requeued = false;
|
|
1800
|
+
rearmError = describeCaughtError(error);
|
|
1801
|
+
}
|
|
1802
|
+
const interference = { ...detected, requeued };
|
|
1803
|
+
await this.dispatch.recordBuildTaskInterference(run.taskRef, run.taskId, interference, session);
|
|
1804
|
+
if (!requeued) {
|
|
1805
|
+
this.logger.warn('A completed run lost its product to a concurrent sibling, and its task could not be re-armed; it waits for a person', {
|
|
1806
|
+
taskRef: run.taskRef, runTaskId: run.taskId, error: rearmError, ...interference,
|
|
1807
|
+
});
|
|
1808
|
+
return { taskRef: run.taskRef, runTaskId: run.taskId, interference, rerun: { error: rearmError } };
|
|
1809
|
+
}
|
|
1810
|
+
this.logger.warn('A completed run lost its product to a concurrent sibling; re-running its task alone', {
|
|
1811
|
+
taskRef: run.taskRef, runTaskId: run.taskId, ...interference,
|
|
1812
|
+
});
|
|
1813
|
+
/*
|
|
1814
|
+
* Not into the account's usage limit (#2388): the re-run would fail like every other turn before the reset.
|
|
1815
|
+
* The task is re-armed already, so the wave that resumes after the reset offers it.
|
|
1816
|
+
*/
|
|
1817
|
+
const held = this.dispatch.readCodingAgentUsageLimitHold();
|
|
1818
|
+
if (held) {
|
|
1819
|
+
return { taskRef: run.taskRef, runTaskId: run.taskId, interference, rerun: { error: `not re-run: the coding agent's usage limit holds the build until ${held.resumesAt}; the next wave runs it` } };
|
|
1820
|
+
}
|
|
1821
|
+
let rerun;
|
|
1822
|
+
try {
|
|
1823
|
+
const dispatched = await this.dispatchBuildTask(run.taskRef, session);
|
|
1824
|
+
const rerunTaskId = dispatched.admission?.taskId;
|
|
1825
|
+
rerun = { dispatch: dispatched, outcome: rerunTaskId ? await this.awaitCodingRunOutcome(rerunTaskId, session) : null };
|
|
1826
|
+
}
|
|
1827
|
+
catch (error) {
|
|
1828
|
+
rerun = { error: describeCaughtError(error) };
|
|
1829
|
+
}
|
|
1830
|
+
return { taskRef: run.taskRef, runTaskId: run.taskId, interference, rerun };
|
|
848
1831
|
}
|
|
849
1832
|
/**
|
|
850
1833
|
* Wait for one admitted coding run to SETTLE, then report what it actually did.
|
|
@@ -1032,19 +2015,33 @@ let ApplicationBuildDispatchCompanionService = class ApplicationBuildDispatchCom
|
|
|
1032
2015
|
const resolution = await this.resolveLandedTaskRefs(graph.tasks);
|
|
1033
2016
|
const landedTaskRefs = resolution.landed;
|
|
1034
2017
|
const ready = selectReadyBuildPlanTasks(graph, landedTaskRefs);
|
|
2018
|
+
/*
|
|
2019
|
+
* A task the probe calls LANDED, run anyway because the operator says the landing is wrong (#2217). Only a
|
|
2020
|
+
* landed task whose prerequisites have all landed: the override answers "this landing is false", never "skip
|
|
2021
|
+
* the graph". Readiness is otherwise unchanged, and the override is exercised only when it is needed — a
|
|
2022
|
+
* `despiteLanded` on a task that is simply ready runs it as an ordinary dispatch and records nothing.
|
|
2023
|
+
*/
|
|
2024
|
+
let forced;
|
|
1035
2025
|
if (selection !== undefined && !ready.some((candidate) => candidate.taskRef === selection.taskRef)) {
|
|
1036
2026
|
const named = graph.tasks.find((candidate) => candidate.taskRef === selection.taskRef);
|
|
1037
2027
|
const standing = named === undefined ? ApplicationBuildTaskStanding.UNKNOWN
|
|
1038
2028
|
: landedTaskRefs.has(named.taskRef) ? ApplicationBuildTaskStanding.LANDED
|
|
1039
2029
|
: ApplicationBuildTaskStanding.BLOCKED;
|
|
1040
2030
|
const unmet = named === undefined ? [] : named.prerequisiteTaskRefs.filter((prerequisite) => !landedTaskRefs.has(prerequisite));
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
2031
|
+
if (standing === ApplicationBuildTaskStanding.LANDED && selection.despiteLanded !== undefined && unmet.length === 0) {
|
|
2032
|
+
forced = named;
|
|
2033
|
+
}
|
|
2034
|
+
else {
|
|
2035
|
+
throw new ApplicationBuildTaskNotReadyError(standing === ApplicationBuildTaskStanding.UNKNOWN ? `The build plan holds no task "${selection.taskRef}".`
|
|
2036
|
+
: standing === ApplicationBuildTaskStanding.LANDED
|
|
2037
|
+
? `Task ${selection.taskRef} has already landed: its landing probe finds its product committed. If that landing is wrong, `
|
|
2038
|
+
+ `run it anyway, saying why: wildo build run ${selection.taskRef} --despite-landed --reason <${OPERATOR_BUILD_TASK_REARM_REASONS.join('|')}> --note "<why>".`
|
|
2039
|
+
: `Task ${selection.taskRef} is not ready: it waits on ${unmet.join(', ')}.`, selection.taskRef, standing, unmet);
|
|
2040
|
+
}
|
|
1044
2041
|
}
|
|
1045
|
-
if (ready.length === 0) {
|
|
2042
|
+
if (ready.length === 0 && forced === undefined) {
|
|
1046
2043
|
throw new ApplicationBuildPlanExhaustedError(`Every task in the build plan has landed, or none is ready: ${graph.tasks.length} task(s), `
|
|
1047
|
-
+ `${landedTaskRefs.size} landed.`, graph.tasks.length, landedTaskRefs.size);
|
|
2044
|
+
+ `${landedTaskRefs.size} landed.`, graph.tasks.length, landedTaskRefs.size, [...landedTaskRefs].sort());
|
|
1048
2045
|
}
|
|
1049
2046
|
/*
|
|
1050
2047
|
* The FIRST ready task, in graph order — routed by its own `target.kind`, never reordered.
|
|
@@ -1074,7 +2071,8 @@ let ApplicationBuildDispatchCompanionService = class ApplicationBuildDispatchCom
|
|
|
1074
2071
|
const stuck = [];
|
|
1075
2072
|
let selected;
|
|
1076
2073
|
let unanswerableGenerationStep;
|
|
1077
|
-
const candidates =
|
|
2074
|
+
const candidates = forced !== undefined ? [forced]
|
|
2075
|
+
: selection === undefined ? ready : ready.filter((candidate) => candidate.taskRef === selection.taskRef);
|
|
1078
2076
|
// Read ONCE per selection: a wave selects repeatedly over a wide ready set (#1528).
|
|
1079
2077
|
const inFlightTaskRefs = new Set((await this.dispatch.listInFlightCodingRuns()).flatMap((run) => (run.taskRef ? [run.taskRef] : [])));
|
|
1080
2078
|
for (const candidate of candidates) {
|
|
@@ -1099,7 +2097,12 @@ let ApplicationBuildDispatchCompanionService = class ApplicationBuildDispatchCom
|
|
|
1099
2097
|
break;
|
|
1100
2098
|
}
|
|
1101
2099
|
const stuckEntry = await this.classifyStuckBuildTask(candidate, inFlightTaskRefs);
|
|
1102
|
-
|
|
2100
|
+
/*
|
|
2101
|
+
* A forced task's earlier COMPLETED run is the very landing the operator overrides, so it does not hold the
|
|
2102
|
+
* task. A live run, a parked session or an undraftable document still does: forcing past those would start
|
|
2103
|
+
* a second agent, abandon a persisted conversation, or spend a turn on a product no run can make.
|
|
2104
|
+
*/
|
|
2105
|
+
if (stuckEntry !== null && !(candidate === forced && LANDED_OVERRIDE_RELEASES.has(stuckEntry.reason))) {
|
|
1103
2106
|
stuck.push(stuckEntry);
|
|
1104
2107
|
continue;
|
|
1105
2108
|
}
|
|
@@ -1140,7 +2143,16 @@ let ApplicationBuildDispatchCompanionService = class ApplicationBuildDispatchCom
|
|
|
1140
2143
|
const task = selected;
|
|
1141
2144
|
if (task.target?.kind === BuildPlanTaskTargetKind.COMPANION_GENERATION_STEP) {
|
|
1142
2145
|
const evidencePaths = await this.generationSteps.resolveGenerationStepEvidencePaths(task);
|
|
1143
|
-
|
|
2146
|
+
/*
|
|
2147
|
+
* The step's write scope: its evidence directories, or exactly its evidence files when others write the directories
|
|
2148
|
+
* around them (#2505 review F2, see GENERATION_STEP_WRITE_SCOPE). A file at the application root is always its own
|
|
2149
|
+
* root: its directory would be the whole tree (#2497). An unknown step ref keeps the narrower answer.
|
|
2150
|
+
*/
|
|
2151
|
+
const writesFilesOnly = GENERATION_STEP_WRITE_SCOPE[task.target.generationStepRef] !== GenerationStepWriteScope.EVIDENCE_DIRECTORIES;
|
|
2152
|
+
const evidenceRoots = [...new Set(evidencePaths.map((evidencePath) => {
|
|
2153
|
+
const directory = evidencePath.split('/').slice(0, -1).join('/');
|
|
2154
|
+
return writesFilesOnly || directory === '' ? evidencePath : `${directory}/`;
|
|
2155
|
+
}))].sort();
|
|
1144
2156
|
const plan = {
|
|
1145
2157
|
taskRef: task.taskRef,
|
|
1146
2158
|
objective: task.objective,
|
|
@@ -1156,10 +2168,11 @@ let ApplicationBuildDispatchCompanionService = class ApplicationBuildDispatchCom
|
|
|
1156
2168
|
landedTaskRefs: [...landedTaskRefs].sort(),
|
|
1157
2169
|
unverifiableLandedTaskRefs: resolution.unverifiableLandedTaskRefs,
|
|
1158
2170
|
};
|
|
1159
|
-
return { kind: 'GENERATION_STEP', plan, task, stuckTasks: stuck };
|
|
2171
|
+
return { kind: 'GENERATION_STEP', plan, task, stuckTasks: stuck, ...(task === forced && selection?.despiteLanded ? { landedOverride: selection.despiteLanded } : {}) };
|
|
1160
2172
|
}
|
|
1161
2173
|
const boundary = resolveBuildPlanTaskCodingPolicy(task, this.readApplicationWorkspaceEntries());
|
|
1162
|
-
const
|
|
2174
|
+
const landedOverride = task === forced ? selection?.despiteLanded : undefined;
|
|
2175
|
+
const contract = await this.composeTaskCodingContract(task, boundary, graph.tasks.length, landedOverride);
|
|
1163
2176
|
const plan = {
|
|
1164
2177
|
taskRef: task.taskRef,
|
|
1165
2178
|
objective: task.objective,
|
|
@@ -1173,7 +2186,7 @@ let ApplicationBuildDispatchCompanionService = class ApplicationBuildDispatchCom
|
|
|
1173
2186
|
landedTaskRefs: [...landedTaskRefs].sort(),
|
|
1174
2187
|
unverifiableLandedTaskRefs: resolution.unverifiableLandedTaskRefs,
|
|
1175
2188
|
};
|
|
1176
|
-
return { kind: 'CODING', plan, contract, stuckTasks: stuck };
|
|
2189
|
+
return { kind: 'CODING', plan, contract, stuckTasks: stuck, ...(landedOverride ? { landedOverride } : {}) };
|
|
1177
2190
|
}
|
|
1178
2191
|
/**
|
|
1179
2192
|
* Which tasks have landed, read from GIT.
|
|
@@ -1299,6 +2312,35 @@ let ApplicationBuildDispatchCompanionService = class ApplicationBuildDispatchCom
|
|
|
1299
2312
|
}
|
|
1300
2313
|
return this.dispatch.rearmBuildTask(taskRef, request, session);
|
|
1301
2314
|
}
|
|
2315
|
+
/**
|
|
2316
|
+
* Where a task's landing was found: its probes' paths, or a generation step's evidence paths. Empty for a probe
|
|
2317
|
+
* that names no fixed file (a shell surface, a schema-plan state) — the record then says "found" without a place
|
|
2318
|
+
* rather than inventing one.
|
|
2319
|
+
*/
|
|
2320
|
+
async resolveLandedEvidencePaths(task) {
|
|
2321
|
+
if (task.target?.kind === BuildPlanTaskTargetKind.COMPANION_GENERATION_STEP) {
|
|
2322
|
+
const condition = await this.generationSteps.resolveGenerationStepLandedCondition(task);
|
|
2323
|
+
if (condition.kind === ApplicationBuildGenerationStepLandedKind.ACCEPTED_BRAND_MARK)
|
|
2324
|
+
return [condition.modulePath];
|
|
2325
|
+
if (condition.kind === ApplicationBuildGenerationStepLandedKind.ENGINE_CAPABILITIES_ENABLED)
|
|
2326
|
+
return [condition.configPath];
|
|
2327
|
+
if (condition.kind === ApplicationBuildGenerationStepLandedKind.LABEL_PLAN_INCOMPLETE)
|
|
2328
|
+
return [];
|
|
2329
|
+
if (condition.kind === ApplicationBuildGenerationStepLandedKind.LANDED_PROBES) {
|
|
2330
|
+
const candidates = [...new Set(condition.probes.flatMap(landedProbePaths))];
|
|
2331
|
+
const committed = await this.git.selectCommittedPaths(candidates);
|
|
2332
|
+
return candidates.filter((path) => committed.has(path));
|
|
2333
|
+
}
|
|
2334
|
+
if (condition.kind === ApplicationBuildGenerationStepLandedKind.DISPLAY_NAME_APPLIED)
|
|
2335
|
+
return [condition.configPath];
|
|
2336
|
+
return condition.kind === ApplicationBuildGenerationStepLandedKind.COMMITTED_PATHS ? [...condition.paths] : [];
|
|
2337
|
+
}
|
|
2338
|
+
// Only the paths that ARE committed: a label probe reads one candidate per language, and naming the dozens
|
|
2339
|
+
// that do not exist would say the product was found in files that are not there.
|
|
2340
|
+
const candidates = [...new Set(resolveBuildTaskLandedProbes(task).flatMap(landedProbePaths))];
|
|
2341
|
+
const committed = await this.git.selectCommittedPaths(candidates);
|
|
2342
|
+
return candidates.filter((path) => committed.has(path));
|
|
2343
|
+
}
|
|
1302
2344
|
async describeBuildTaskRecords(session) {
|
|
1303
2345
|
if (!(await this.hasAuthoredBuildPlan()))
|
|
1304
2346
|
return undefined;
|
|
@@ -1332,12 +2374,74 @@ let ApplicationBuildDispatchCompanionService = class ApplicationBuildDispatchCom
|
|
|
1332
2374
|
? await this.classifyStuckBuildTask(task) : null;
|
|
1333
2375
|
let unmetProbes;
|
|
1334
2376
|
let schemaPlanSyncState;
|
|
2377
|
+
let landingBlockedBy;
|
|
2378
|
+
// The condition the landing pass already resolved; resolved again only for a step it did not see.
|
|
2379
|
+
const generationStepCondition = !landed && isGenerationStep
|
|
2380
|
+
? resolution.generationStepConditions.get(task.taskRef) ?? await this.generationSteps.resolveGenerationStepLandedCondition(task)
|
|
2381
|
+
: undefined;
|
|
2382
|
+
// Named whether or not the step has run (#2504): a labels plan that hides owed units blocks it before its first attempt.
|
|
2383
|
+
if (generationStepCondition?.kind === ApplicationBuildGenerationStepLandedKind.LABEL_PLAN_INCOMPLETE)
|
|
2384
|
+
landingBlockedBy = generationStepCondition.detail;
|
|
1335
2385
|
if (!landed && attempts.some(isCountedBuildTaskAttempt)) {
|
|
1336
|
-
if (isGenerationStep) {
|
|
1337
|
-
const condition =
|
|
2386
|
+
if (isGenerationStep && generationStepCondition !== undefined) {
|
|
2387
|
+
const condition = generationStepCondition;
|
|
1338
2388
|
if (condition.kind === ApplicationBuildGenerationStepLandedKind.SCHEMA_PLAN_IN_SYNC) {
|
|
1339
2389
|
schemaPlanSyncState = await this.generationSteps.readSchemaPlanSyncState();
|
|
1340
2390
|
}
|
|
2391
|
+
else if (condition.kind === ApplicationBuildGenerationStepLandedKind.NOT_OWED) {
|
|
2392
|
+
// Unreachable while NOT_OWED always lands, and stated rather than read as "no unmet probe".
|
|
2393
|
+
unmetProbes = [];
|
|
2394
|
+
}
|
|
2395
|
+
else if (condition.kind === ApplicationBuildGenerationStepLandedKind.ACCEPTED_BRAND_MARK) {
|
|
2396
|
+
// What is missing is a MASTER asset in the module, not the module (the scaffold commits it): say that (#2410).
|
|
2397
|
+
unmetProbes = [{
|
|
2398
|
+
probe: {
|
|
2399
|
+
kind: BuildPlanTaskLandedProbeKind.COMMITTED_FILE_DECLARES,
|
|
2400
|
+
path: condition.modulePath,
|
|
2401
|
+
declarations: [`BrandAssetPurpose.${BrandAssetPurpose.MASTER}`],
|
|
2402
|
+
site: { relation: ProductDeclarationRelation.SET },
|
|
2403
|
+
},
|
|
2404
|
+
satisfiedInWorkingTree: await this.readsAcceptedBrandMark(condition.modulePath, worktree),
|
|
2405
|
+
}];
|
|
2406
|
+
}
|
|
2407
|
+
else if (condition.kind === ApplicationBuildGenerationStepLandedKind.DISPLAY_NAME_APPLIED) {
|
|
2408
|
+
unmetProbes = [{
|
|
2409
|
+
probe: {
|
|
2410
|
+
kind: BuildPlanTaskLandedProbeKind.COMMITTED_FILE_DECLARES,
|
|
2411
|
+
path: condition.configPath,
|
|
2412
|
+
declarations: [`displayName: ${JSON.stringify(condition.displayName)}`],
|
|
2413
|
+
site: { relation: ProductDeclarationRelation.SET },
|
|
2414
|
+
},
|
|
2415
|
+
satisfiedInWorkingTree: await this.displayNameApplied(condition, worktree).catch(() => false),
|
|
2416
|
+
}];
|
|
2417
|
+
}
|
|
2418
|
+
else if (condition.kind === ApplicationBuildGenerationStepLandedKind.LABEL_PLAN_INCOMPLETE) {
|
|
2419
|
+
// Nothing a file can satisfy: the plan itself is partial (#2504). Its cause rides on the record.
|
|
2420
|
+
unmetProbes = [];
|
|
2421
|
+
}
|
|
2422
|
+
else if (condition.kind === ApplicationBuildGenerationStepLandedKind.LANDED_PROBES) {
|
|
2423
|
+
unmetProbes = [];
|
|
2424
|
+
for (const probe of condition.probes) {
|
|
2425
|
+
if (await this.isLandedProbeSatisfied(probe, committedTree))
|
|
2426
|
+
continue;
|
|
2427
|
+
unmetProbes.push({ probe, satisfiedInWorkingTree: await this.isLandedProbeSatisfied(probe, worktree) });
|
|
2428
|
+
}
|
|
2429
|
+
}
|
|
2430
|
+
else if (condition.kind === ApplicationBuildGenerationStepLandedKind.ENGINE_CAPABILITIES_ENABLED) {
|
|
2431
|
+
// One unmet probe per capability the committed configuration does not enable (#2497). The working tree is
|
|
2432
|
+
// read best-effort: a configuration mid-edit that does not parse must not fail the whole records read.
|
|
2433
|
+
const notInWorktree = new Set(await this.capabilitiesNotEnabledIn(condition, worktree).catch(() => condition.capabilities));
|
|
2434
|
+
unmetProbes = (await this.capabilitiesNotEnabledIn(condition, committedTree)).map((capability) => ({
|
|
2435
|
+
probe: {
|
|
2436
|
+
kind: BuildPlanTaskLandedProbeKind.COMMITTED_FILE_DECLARES,
|
|
2437
|
+
path: condition.configPath,
|
|
2438
|
+
// The condition is ENABLED, not declared: the scaffold declares most capabilities as `enabled: false`.
|
|
2439
|
+
declarations: [`[EngineCapability.${capability}]: { enabled: true }`],
|
|
2440
|
+
site: { relation: ProductDeclarationRelation.SET },
|
|
2441
|
+
},
|
|
2442
|
+
satisfiedInWorkingTree: !notInWorktree.has(capability),
|
|
2443
|
+
}));
|
|
2444
|
+
}
|
|
1341
2445
|
else {
|
|
1342
2446
|
unmetProbes = [];
|
|
1343
2447
|
for (const path of condition.paths) {
|
|
@@ -1363,16 +2467,30 @@ let ApplicationBuildDispatchCompanionService = class ApplicationBuildDispatchCom
|
|
|
1363
2467
|
}
|
|
1364
2468
|
const waitingOn = status === WorkbenchBuildPlanTaskStatus.BLOCKED
|
|
1365
2469
|
? task.prerequisiteTaskRefs.filter((prerequisite) => !resolution.landed.has(prerequisite)) : undefined;
|
|
2470
|
+
// A refused dispatch started nothing, so it does not make the landing the task's own (#1581). Never asserted
|
|
2471
|
+
// on a TRUNCATED listing: an early task's runs may be the ones the page cap dropped, and "never run" would be
|
|
2472
|
+
// false — and an invitation to pay for a re-run (#2217 review).
|
|
2473
|
+
const progress = isGenerationStep ? this.generationSteps.readGenerationStepProgress(task.taskRef) : undefined;
|
|
2474
|
+
const landedBeforeAnyRun = landed && !attemptsTruncated && !attempts.some(isCountedBuildTaskAttempt)
|
|
2475
|
+
? { probedPaths: await this.resolveLandedEvidencePaths(task) } : undefined;
|
|
2476
|
+
const followUpTaskRefs = plan.tasks
|
|
2477
|
+
.filter((candidate) => candidate.taskRef.startsWith(HOST_DERIVED_FOLLOW_UP_TASK_REF_PREFIX) && candidate.prerequisiteTaskRefs[0] === task.taskRef)
|
|
2478
|
+
.map((candidate) => candidate.taskRef);
|
|
1366
2479
|
records.push({
|
|
1367
2480
|
taskRef: task.taskRef,
|
|
1368
2481
|
targetKind: String(task.target?.kind ?? ''),
|
|
1369
2482
|
status,
|
|
2483
|
+
...(followUpTaskRefs.length > 0 ? { followUpTaskRefs } : {}),
|
|
2484
|
+
...(task.taskRef.startsWith(HOST_DERIVED_FOLLOW_UP_TASK_REF_PREFIX) && task.prerequisiteTaskRefs[0] !== undefined ? { followUpOf: task.prerequisiteTaskRefs[0] } : {}),
|
|
1370
2485
|
attempts,
|
|
1371
2486
|
...(stuck !== null ? { stuck } : {}),
|
|
1372
2487
|
...(unmetProbes !== undefined ? { unmetProbes } : {}),
|
|
1373
2488
|
...(schemaPlanSyncState !== undefined ? { schemaPlanSyncState } : {}),
|
|
2489
|
+
...(landingBlockedBy !== undefined ? { landingBlockedBy } : {}),
|
|
1374
2490
|
...(waitingOn !== undefined ? { waitingOn } : {}),
|
|
1375
2491
|
...(landed && unverifiable.has(task.taskRef) ? { unverifiable: true } : {}),
|
|
2492
|
+
...(landedBeforeAnyRun !== undefined ? { landedBeforeAnyRun } : {}),
|
|
2493
|
+
...(progress !== undefined ? { progress } : {}),
|
|
1376
2494
|
});
|
|
1377
2495
|
}
|
|
1378
2496
|
const stuckByReason = Object.fromEntries(Object.values(Workbench_BuildTaskStuckReason).map((reason) => [reason, records.filter((record) => record.stuck?.reason === reason).length]));
|
|
@@ -1380,11 +2498,25 @@ let ApplicationBuildDispatchCompanionService = class ApplicationBuildDispatchCom
|
|
|
1380
2498
|
// A dispatch refused before it started is shown in its task's history and counted by no figure below (#1581).
|
|
1381
2499
|
const started = (record) => record.attempts.filter(isCountedBuildTaskAttempt);
|
|
1382
2500
|
const unavailableRuntimes = await readUnavailableApplicationRuntimes(this.companionContext.saasRoot);
|
|
2501
|
+
/*
|
|
2502
|
+
* The candidates for a break, from every attempt the records hold (#2405 review F3), not only one wave's: a run that
|
|
2503
|
+
* settled at the end of one wave breaks the start the NEXT wave meets.
|
|
2504
|
+
*/
|
|
2505
|
+
const bootFailures = (await this.readCurrentBootFailures()).map((failure) => ({
|
|
2506
|
+
...failure,
|
|
2507
|
+
candidateTaskRefs: failure.lastStartedAt === null ? [] : records
|
|
2508
|
+
.filter((record) => record.attempts.some((attempt) => attempt.status === FlowsActors_Status.COMPLETED
|
|
2509
|
+
// No upper bound (#2405 re-review R1): the watcher restarts the backend on working-tree writes, so the start
|
|
2510
|
+
// usually fails while the breaking run is still running its checks, and that run settles AFTER the failure.
|
|
2511
|
+
&& attempt.settledAt !== undefined && attempt.settledAt > failure.lastStartedAt))
|
|
2512
|
+
.map((record) => record.taskRef),
|
|
2513
|
+
}));
|
|
1383
2514
|
return {
|
|
1384
2515
|
tasks: records,
|
|
1385
2516
|
summary: {
|
|
1386
2517
|
taskCount: records.length,
|
|
1387
2518
|
landed: records.length - notLanded.length,
|
|
2519
|
+
landedBeforeAnyRun: records.filter((record) => record.landedBeforeAnyRun !== undefined).length,
|
|
1388
2520
|
blocked: records.filter((record) => record.status === WorkbenchBuildPlanTaskStatus.BLOCKED).length,
|
|
1389
2521
|
readyNeverAttempted: records.filter((record) => record.status === WorkbenchBuildPlanTaskStatus.READY && started(record).length === 0).length,
|
|
1390
2522
|
readyToRetry: records.filter((record) => record.status === WorkbenchBuildPlanTaskStatus.READY && started(record).length > 0 && !record.stuck).length,
|
|
@@ -1397,11 +2529,13 @@ let ApplicationBuildDispatchCompanionService = class ApplicationBuildDispatchCom
|
|
|
1397
2529
|
degree: readBuildParallelism(this.companionContext.saasRoot),
|
|
1398
2530
|
overlappingAttempts: records.reduce((total, record) => total + record.attempts.filter((attempt) => attempt.concurrency !== undefined).length, 0),
|
|
1399
2531
|
interferenceSuspectedAttempts: records.reduce((total, record) => total + record.attempts.filter((attempt) => attempt.interferenceSuspected === true).length, 0),
|
|
2532
|
+
interferedCompletedAttempts: records.reduce((total, record) => total + record.attempts.filter((attempt) => attempt.interference !== undefined).length, 0),
|
|
1400
2533
|
contendedPaths: [...new Set(records.flatMap((record) => record.attempts.flatMap((attempt) => attempt.concurrency?.contendedPaths ?? [])))].sort(),
|
|
1401
2534
|
},
|
|
1402
2535
|
},
|
|
1403
2536
|
attemptsTruncated,
|
|
1404
2537
|
...(unavailableRuntimes === undefined ? {} : { unavailableRuntimes }),
|
|
2538
|
+
...(bootFailures.length > 0 ? { bootFailures } : {}),
|
|
1405
2539
|
repairsOwed: deriveRepairsOwed(attemptsByTask),
|
|
1406
2540
|
};
|
|
1407
2541
|
}
|
|
@@ -1468,7 +2602,7 @@ let ApplicationBuildDispatchCompanionService = class ApplicationBuildDispatchCom
|
|
|
1468
2602
|
*
|
|
1469
2603
|
* Generation-step conditions ARE gathered, by resolving them once into a map the loop then reads.
|
|
1470
2604
|
* "They are few, and they still resolve per path" was true of the TASKS and wrong about the
|
|
1471
|
-
* PATHS: the i18n
|
|
2605
|
+
* PATHS: the i18n steps' evidence is `planner units x their locales`, so three generation-step
|
|
1472
2606
|
* tasks expanded to seventeen `status --porcelain` spawns per resolution — measured at the spawn
|
|
1473
2607
|
* site 2026-09-22, where they were the largest source left after the probe paths were batched.
|
|
1474
2608
|
* Resolving the condition here rather than inside the loop is what lets them join the same batch
|
|
@@ -1485,6 +2619,9 @@ let ApplicationBuildDispatchCompanionService = class ApplicationBuildDispatchCom
|
|
|
1485
2619
|
.filter((probe) => probe.kind === BuildPlanTaskLandedProbeKind.COMMITTED_FILE)
|
|
1486
2620
|
.flatMap(landedProbePaths)),
|
|
1487
2621
|
...[...generationStepConditions.values()].flatMap((condition) => (condition.kind === ApplicationBuildGenerationStepLandedKind.COMMITTED_PATHS ? condition.paths : [])),
|
|
2622
|
+
...[...generationStepConditions.values()].flatMap((condition) => (condition.kind === ApplicationBuildGenerationStepLandedKind.LANDED_PROBES
|
|
2623
|
+
? condition.probes.filter((probe) => probe.kind === BuildPlanTaskLandedProbeKind.COMMITTED_FILE).flatMap(landedProbePaths)
|
|
2624
|
+
: [])),
|
|
1488
2625
|
]);
|
|
1489
2626
|
/*
|
|
1490
2627
|
* And ONE `cat-file --batch` for every path whose committed TEXT a DECLARES probe will read,
|
|
@@ -1496,9 +2633,17 @@ let ApplicationBuildDispatchCompanionService = class ApplicationBuildDispatchCom
|
|
|
1496
2633
|
* the bytes are the same bytes. What it buys is that the count no longer depends on which
|
|
1497
2634
|
* candidate happened to satisfy the probe first.
|
|
1498
2635
|
*/
|
|
1499
|
-
await committedTree.primeTexts(
|
|
1500
|
-
.
|
|
1501
|
-
|
|
2636
|
+
await committedTree.primeTexts([
|
|
2637
|
+
...tasks.flatMap((task) => resolveBuildTaskLandedProbes(task)
|
|
2638
|
+
.filter((probe) => probe.kind !== BuildPlanTaskLandedProbeKind.COMMITTED_FILE)
|
|
2639
|
+
.flatMap(landedProbePaths)),
|
|
2640
|
+
// The engine-capabilities step reads the committed configuration's text (#2497): one batch, not its own spawn.
|
|
2641
|
+
...[...generationStepConditions.values()].flatMap((condition) => (condition.kind === ApplicationBuildGenerationStepLandedKind.LANDED_PROBES
|
|
2642
|
+
? condition.probes.filter((probe) => probe.kind !== BuildPlanTaskLandedProbeKind.COMMITTED_FILE).flatMap(landedProbePaths)
|
|
2643
|
+
: [])),
|
|
2644
|
+
...[...generationStepConditions.values()].flatMap((condition) => (condition.kind === ApplicationBuildGenerationStepLandedKind.ENGINE_CAPABILITIES_ENABLED
|
|
2645
|
+
|| condition.kind === ApplicationBuildGenerationStepLandedKind.DISPLAY_NAME_APPLIED ? [condition.configPath] : [])),
|
|
2646
|
+
]);
|
|
1502
2647
|
for (const task of tasks) {
|
|
1503
2648
|
if (task.target?.kind === BuildPlanTaskTargetKind.COMPANION_GENERATION_STEP) {
|
|
1504
2649
|
/*
|
|
@@ -1524,6 +2669,41 @@ let ApplicationBuildDispatchCompanionService = class ApplicationBuildDispatchCom
|
|
|
1524
2669
|
unanswerable.add(task.taskRef);
|
|
1525
2670
|
continue;
|
|
1526
2671
|
}
|
|
2672
|
+
// The application owes this step nothing (a translation step on a one-locale app): landed, or it
|
|
2673
|
+
// would sit at the head of the queue forever on an evidence list that is empty by construction.
|
|
2674
|
+
if (condition.kind === ApplicationBuildGenerationStepLandedKind.NOT_OWED) {
|
|
2675
|
+
landed.add(task.taskRef);
|
|
2676
|
+
continue;
|
|
2677
|
+
}
|
|
2678
|
+
// The logo step: landed on a committed MASTER asset the committed module lists, never on the module's
|
|
2679
|
+
// presence — the scaffold commits the module empty (#2410).
|
|
2680
|
+
if (condition.kind === ApplicationBuildGenerationStepLandedKind.ACCEPTED_BRAND_MARK) {
|
|
2681
|
+
if (await this.readsAcceptedBrandMark(condition.modulePath, committedTree))
|
|
2682
|
+
landed.add(task.taskRef);
|
|
2683
|
+
continue;
|
|
2684
|
+
}
|
|
2685
|
+
// A labels plan that hides owed units never lands (#2504).
|
|
2686
|
+
if (condition.kind === ApplicationBuildGenerationStepLandedKind.LABEL_PLAN_INCOMPLETE)
|
|
2687
|
+
continue;
|
|
2688
|
+
// The labels step (#2504): every unit file committed and every frontend root id declared.
|
|
2689
|
+
if (condition.kind === ApplicationBuildGenerationStepLandedKind.LANDED_PROBES) {
|
|
2690
|
+
const satisfied = await Promise.all(condition.probes.map((probe) => this.isLandedProbeSatisfied(probe, committedTree)));
|
|
2691
|
+
if (satisfied.every(Boolean))
|
|
2692
|
+
landed.add(task.taskRef);
|
|
2693
|
+
continue;
|
|
2694
|
+
}
|
|
2695
|
+
// The display-name step: landed when the committed configuration carries the brand's name (#2505).
|
|
2696
|
+
if (condition.kind === ApplicationBuildGenerationStepLandedKind.DISPLAY_NAME_APPLIED) {
|
|
2697
|
+
if (await this.displayNameApplied(condition, committedTree))
|
|
2698
|
+
landed.add(task.taskRef);
|
|
2699
|
+
continue;
|
|
2700
|
+
}
|
|
2701
|
+
// The engine-capabilities step: landed when the committed configuration enables every capability it owes (#2497).
|
|
2702
|
+
if (condition.kind === ApplicationBuildGenerationStepLandedKind.ENGINE_CAPABILITIES_ENABLED) {
|
|
2703
|
+
if ((await this.capabilitiesNotEnabledIn(condition, committedTree)).length === 0)
|
|
2704
|
+
landed.add(task.taskRef);
|
|
2705
|
+
continue;
|
|
2706
|
+
}
|
|
1527
2707
|
if (condition.paths.length === 0)
|
|
1528
2708
|
continue;
|
|
1529
2709
|
const committedPaths = await Promise.all(condition.paths.map((path) => committedTree.isCommitted(path)));
|
|
@@ -1554,6 +2734,14 @@ let ApplicationBuildDispatchCompanionService = class ApplicationBuildDispatchCom
|
|
|
1554
2734
|
* nobody has run has not landed by any reading, and admitting it would let the whole plan
|
|
1555
2735
|
* report itself finished having done nothing.
|
|
1556
2736
|
*/
|
|
2737
|
+
/*
|
|
2738
|
+
* A FOLLOW-UP (#2496) lands here too, even when its own run still reports a gap: it declares no product, so it
|
|
2739
|
+
* lands RAN-not-PROVEN, and the gap stays on its run's record, where the build record shows it under "reported a
|
|
2740
|
+
* requirement still unmet". Holding it unlanded was tried (review F7) and is the defect
|
|
2741
|
+
* `application-creation-directive.md` names: the only remedy was a person's decision, and meanwhile the whole
|
|
2742
|
+
* plan read as stuck. To have the gap worked again, a person runs the follow-up once more, saying why:
|
|
2743
|
+
* `wildo build run <ref> --despite-landed --reason operator-judgement --note "<why>"`.
|
|
2744
|
+
*/
|
|
1557
2745
|
const priorRun = await this.dispatch.findCompletedRunForBuildTask(task.taskRef);
|
|
1558
2746
|
if (priorRun !== null) {
|
|
1559
2747
|
landed.add(task.taskRef);
|
|
@@ -1565,7 +2753,7 @@ let ApplicationBuildDispatchCompanionService = class ApplicationBuildDispatchCom
|
|
|
1565
2753
|
if (answered.every(Boolean))
|
|
1566
2754
|
landed.add(task.taskRef);
|
|
1567
2755
|
}
|
|
1568
|
-
return { landed, unverifiableLandedTaskRefs: [...unverifiable].sort(), unanswerableSchemaPlanTaskRefs: unanswerable };
|
|
2756
|
+
return { landed, unverifiableLandedTaskRefs: [...unverifiable].sort(), unanswerableSchemaPlanTaskRefs: unanswerable, generationStepConditions };
|
|
1569
2757
|
}
|
|
1570
2758
|
/**
|
|
1571
2759
|
* Which of a stuck task's probed paths hold its product in the WORKING TREE while failing at HEAD —
|
|
@@ -1592,6 +2780,13 @@ let ApplicationBuildDispatchCompanionService = class ApplicationBuildDispatchCom
|
|
|
1592
2780
|
.flatMap((explanation) => explanation.uncommittedPaths);
|
|
1593
2781
|
return [...new Set([...paths.filter((_, index) => !committed[index]), ...shellUncommitted])].sort();
|
|
1594
2782
|
}
|
|
2783
|
+
/**
|
|
2784
|
+
* Does the resolved-assets module, as `tree` holds it, record an accepted brand mark (#2410)? The same predicate the
|
|
2785
|
+
* logo step's skip check uses, so the step and its landing cannot disagree about what "accepted" means.
|
|
2786
|
+
*/
|
|
2787
|
+
async readsAcceptedBrandMark(modulePath, tree) {
|
|
2788
|
+
return hasAcceptedBrandMark(await tree.readText(modulePath), (path) => tree.isCommitted(path));
|
|
2789
|
+
}
|
|
1595
2790
|
/** The working tree behind the same reader shape: a path "is committed" here when it exists on disk. Never throws. */
|
|
1596
2791
|
createWorktreeReader() {
|
|
1597
2792
|
const texts = new Map();
|
|
@@ -1605,6 +2800,22 @@ let ApplicationBuildDispatchCompanionService = class ApplicationBuildDispatchCom
|
|
|
1605
2800
|
shellWitness: this.memoizedShellWitness(),
|
|
1606
2801
|
};
|
|
1607
2802
|
}
|
|
2803
|
+
/**
|
|
2804
|
+
* The tree as a pathspec commit of `committing` would leave it (#2209): those paths as they stand on disk
|
|
2805
|
+
* (`commitPaths` takes each whole working file), every other path as HEAD has it. Behind the reader shape
|
|
2806
|
+
* landing asks, so the accept asks exactly landing's question of the commit it is about to make.
|
|
2807
|
+
*/
|
|
2808
|
+
createProspectiveCommitReader(committing) {
|
|
2809
|
+
const worktree = this.createWorktreeReader();
|
|
2810
|
+
const committed = this.createCommittedTreeReader();
|
|
2811
|
+
return {
|
|
2812
|
+
isCommitted: (path) => (committing.has(path) ? worktree.isCommitted(path) : committed.isCommitted(path)),
|
|
2813
|
+
readText: (path) => (committing.has(path) ? worktree.readText(path) : committed.readText(path)),
|
|
2814
|
+
primeCommitted: (paths) => committed.primeCommitted(paths.filter((path) => !committing.has(path))),
|
|
2815
|
+
primeTexts: (paths) => committed.primeTexts(paths.filter((path) => !committing.has(path))),
|
|
2816
|
+
shellWitness: committed.shellWitness,
|
|
2817
|
+
};
|
|
2818
|
+
}
|
|
1608
2819
|
/** A fresh {@link CommittedTreeReader} for one landing resolution; never shared across resolutions. */
|
|
1609
2820
|
createCommittedTreeReader() {
|
|
1610
2821
|
const committed = new Map();
|
|
@@ -1652,11 +2863,13 @@ let ApplicationBuildDispatchCompanionService = class ApplicationBuildDispatchCom
|
|
|
1652
2863
|
*
|
|
1653
2864
|
* A declaration is matched as a WHOLE WORD, not as a substring. `deal.schemas.ts` carries prose
|
|
1654
2865
|
* naming its own build tasks, so a bare `includes` would find `pipelineStageId` inside a comment
|
|
1655
|
-
* that merely mentions it and report a task landed on its own documentation.
|
|
1656
|
-
*
|
|
1657
|
-
*
|
|
1658
|
-
*
|
|
1659
|
-
*
|
|
2866
|
+
* that merely mentions it and report a task landed on its own documentation. A TypeScript or
|
|
2867
|
+
* JavaScript file is read with its comments blanked first (#2216), because whole-word matching alone
|
|
2868
|
+
* counted a mention in a comment: a page task wrote every section ref of its plan into its sections
|
|
2869
|
+
* file's header, and 18 section tasks of `app-creation-test-004` read landed with no section written.
|
|
2870
|
+
* A STRING mention still counts — an AST question is the sound version and needs the introspection
|
|
2871
|
+
* subprocess — so this errs toward LANDED only for a file that names the symbol in code without
|
|
2872
|
+
* declaring it, and never for the scaffold shapes that produced #597, where the symbol is absent.
|
|
1660
2873
|
*/
|
|
1661
2874
|
/** A once-per-reader memo of {@link resolveShellWitness}, so a landing resolution introspects at most once. */
|
|
1662
2875
|
memoizedShellWitness() {
|
|
@@ -1698,14 +2911,23 @@ let ApplicationBuildDispatchCompanionService = class ApplicationBuildDispatchCom
|
|
|
1698
2911
|
return { answered: false, reason: `The shell could not be read: ${describeCaughtError(error)}` };
|
|
1699
2912
|
}
|
|
1700
2913
|
const carried = new Map();
|
|
2914
|
+
const carriedAudiences = new Map();
|
|
1701
2915
|
const contributingPaths = new Map();
|
|
1702
2916
|
for (const row of shell.surfaces) {
|
|
1703
2917
|
const identities = new Set();
|
|
2918
|
+
const audiences = new Map();
|
|
1704
2919
|
for (const launcher of row.launchers) {
|
|
1705
2920
|
const identity = launcherShellIdentity(launcher);
|
|
1706
|
-
if (identity
|
|
1707
|
-
|
|
2921
|
+
if (identity === undefined)
|
|
2922
|
+
continue;
|
|
2923
|
+
identities.add(identity);
|
|
2924
|
+
const layers = {
|
|
2925
|
+
...(launcher.visibleToRoles === undefined ? {} : { item: launcher.visibleToRoles }),
|
|
2926
|
+
...(launcher.sectionVisibleToRoles === undefined ? {} : { section: launcher.sectionVisibleToRoles }),
|
|
2927
|
+
};
|
|
2928
|
+
audiences.set(identity, [...(audiences.get(identity) ?? []), layers]);
|
|
1708
2929
|
}
|
|
2930
|
+
carriedAudiences.set(row.surface, audiences);
|
|
1709
2931
|
for (const destinationRef of row.destinationRefs)
|
|
1710
2932
|
identities.add(settingsDestinationShellIdentity(destinationRef));
|
|
1711
2933
|
carried.set(row.surface, identities);
|
|
@@ -1713,8 +2935,11 @@ let ApplicationBuildDispatchCompanionService = class ApplicationBuildDispatchCom
|
|
|
1713
2935
|
}
|
|
1714
2936
|
const expectations = derivePlacementPlanShellExpectations(plan.data);
|
|
1715
2937
|
const placed = new Map([...expectations.placed].map(([surface, entries]) => [surface, entries.map((entry) => entry.shellIdentity)]));
|
|
2938
|
+
const placedAudiences = new Map([...expectations.placed].map(([surface, entries]) => [
|
|
2939
|
+
surface, new Map(entries.map((entry) => [entry.shellIdentity, entry.audience])),
|
|
2940
|
+
]));
|
|
1716
2941
|
const declined = expectations.declined.map((entry) => entry.shellIdentity);
|
|
1717
|
-
return { answered: true, carried, contributingPaths, placed, declined };
|
|
2942
|
+
return { answered: true, carried, contributingPaths, placed, declined, carriedAudiences, placedAudiences };
|
|
1718
2943
|
}
|
|
1719
2944
|
/**
|
|
1720
2945
|
* Why a shell probe is or is not satisfied (#1538) — the answer landing uses, and the detail the build
|
|
@@ -1723,7 +2948,7 @@ let ApplicationBuildDispatchCompanionService = class ApplicationBuildDispatchCom
|
|
|
1723
2948
|
async explainShellProbe(probe, tree) {
|
|
1724
2949
|
const witness = await tree.shellWitness();
|
|
1725
2950
|
if (!witness.answered) {
|
|
1726
|
-
return { satisfied: false, unanswerable: witness.reason, missing: [], declinedButPresent: [], uncommittedPaths: [] };
|
|
2951
|
+
return { satisfied: false, unanswerable: witness.reason, missing: [], declinedButPresent: [], audienceMismatches: [], uncommittedPaths: [] };
|
|
1727
2952
|
}
|
|
1728
2953
|
const uncommittedOf = async (surface) => {
|
|
1729
2954
|
const paths = witness.contributingPaths.get(surface) ?? [];
|
|
@@ -1734,11 +2959,19 @@ let ApplicationBuildDispatchCompanionService = class ApplicationBuildDispatchCom
|
|
|
1734
2959
|
const carried = witness.carried.get(probe.surface) ?? new Set();
|
|
1735
2960
|
const missing = (witness.placed.get(probe.surface) ?? []).filter((identity) => !carried.has(identity));
|
|
1736
2961
|
const declinedButPresent = witness.declined.filter((identity) => carried.has(identity));
|
|
2962
|
+
// Every entry carrying a placed identity must show it to the audience the plan decided.
|
|
2963
|
+
const carriedAudiences = witness.carriedAudiences.get(probe.surface) ?? new Map();
|
|
2964
|
+
const audienceMismatches = [...(witness.placedAudiences.get(probe.surface) ?? new Map())].flatMap(([identity, expected]) => {
|
|
2965
|
+
const shown = carriedAudiences.get(identity) ?? [];
|
|
2966
|
+
const wrong = shown.filter((audience) => !samePlacementAudienceLayers(expected, audience));
|
|
2967
|
+
return wrong.length === 0 ? [] : [`${identity}: plan ${describePlacementAudience(expected)}, shell ${wrong.map(describePlacementAudience).join(' and ')}`];
|
|
2968
|
+
});
|
|
1737
2969
|
const uncommittedPaths = await uncommittedOf(probe.surface);
|
|
1738
2970
|
return {
|
|
1739
|
-
satisfied: missing.length === 0 && declinedButPresent.length === 0 && uncommittedPaths.length === 0,
|
|
2971
|
+
satisfied: missing.length === 0 && declinedButPresent.length === 0 && audienceMismatches.length === 0 && uncommittedPaths.length === 0,
|
|
1740
2972
|
missing,
|
|
1741
2973
|
declinedButPresent,
|
|
2974
|
+
audienceMismatches,
|
|
1742
2975
|
uncommittedPaths,
|
|
1743
2976
|
};
|
|
1744
2977
|
}
|
|
@@ -1750,13 +2983,14 @@ let ApplicationBuildDispatchCompanionService = class ApplicationBuildDispatchCom
|
|
|
1750
2983
|
continue;
|
|
1751
2984
|
const uncommittedPaths = await uncommittedOf(surface);
|
|
1752
2985
|
if (uncommittedPaths.length === 0)
|
|
1753
|
-
return { satisfied: true, missing: [], declinedButPresent: [], uncommittedPaths: [] };
|
|
2986
|
+
return { satisfied: true, missing: [], declinedButPresent: [], audienceMismatches: [], uncommittedPaths: [] };
|
|
1754
2987
|
allUncommitted.push(...uncommittedPaths);
|
|
1755
2988
|
}
|
|
1756
2989
|
return {
|
|
1757
2990
|
satisfied: false,
|
|
1758
2991
|
missing: allUncommitted.length > 0 ? [] : [...witness.placed.values()].flat(),
|
|
1759
2992
|
declinedButPresent: [],
|
|
2993
|
+
audienceMismatches: [],
|
|
1760
2994
|
uncommittedPaths: [...new Set(allUncommitted)],
|
|
1761
2995
|
};
|
|
1762
2996
|
}
|
|
@@ -1766,19 +3000,27 @@ let ApplicationBuildDispatchCompanionService = class ApplicationBuildDispatchCom
|
|
|
1766
3000
|
return tree.isCommitted(probe.path);
|
|
1767
3001
|
case BuildPlanTaskLandedProbeKind.COMMITTED_FILE_DECLARES: {
|
|
1768
3002
|
const text = await tree.readText(probe.path);
|
|
1769
|
-
if (text
|
|
3003
|
+
if (typeof text !== 'string')
|
|
1770
3004
|
return false;
|
|
1771
3005
|
/*
|
|
1772
3006
|
* The probe's SITE says whether the declarations are a set or a relation, and where a relation
|
|
1773
3007
|
* must sit (#1539). A relation read as a set reports a missing edge as landed (#1273 — six of
|
|
1774
3008
|
* eleven relationship tasks).
|
|
1775
3009
|
*/
|
|
1776
|
-
|
|
3010
|
+
// The PATH rides along so a script source is read with its comments blanked (#2216): prose naming a
|
|
3011
|
+
// product is not the product.
|
|
3012
|
+
return declarationsAppearAt(text, probe.declarations, probe.site, probe.path);
|
|
1777
3013
|
}
|
|
1778
3014
|
case BuildPlanTaskLandedProbeKind.ANY_COMMITTED_FILE_DECLARES: {
|
|
1779
3015
|
const texts = await Promise.all(probe.paths.map((path) => tree.readText(path)));
|
|
1780
|
-
return texts.some((text) => text
|
|
3016
|
+
return texts.some((text, index) => typeof text === 'string' && declarationsAppearAt(text, probe.declarations, probe.site, probe.paths[index]));
|
|
1781
3017
|
}
|
|
3018
|
+
// #2216: a section's words, in every committed locale pack.
|
|
3019
|
+
case BuildPlanTaskLandedProbeKind.COMMITTED_LABEL_PACKS_DECLARE:
|
|
3020
|
+
return labelPacksDeclareKeyPrefix(await Promise.all(probe.paths.map((path) => tree.readText(path))), probe.keyPrefix);
|
|
3021
|
+
// #2504: a labelling unit's planned keys, each exactly, in its committed primary-locale file.
|
|
3022
|
+
case BuildPlanTaskLandedProbeKind.COMMITTED_LABEL_FILE_DECLARES_KEYS:
|
|
3023
|
+
return labelFileDeclaresKeys(await tree.readText(probe.path), probe.keys);
|
|
1782
3024
|
case BuildPlanTaskLandedProbeKind.SHELL_SURFACE_CARRIES_PLAN:
|
|
1783
3025
|
case BuildPlanTaskLandedProbeKind.SHELL_CARRIES_A_PLACEMENT:
|
|
1784
3026
|
return (await this.explainShellProbe(probe, tree)).satisfied;
|
|
@@ -1831,7 +3073,61 @@ let ApplicationBuildDispatchCompanionService = class ApplicationBuildDispatchCom
|
|
|
1831
3073
|
if (blocking.length > 0) {
|
|
1832
3074
|
throw new ApplicationBuildPlanUnavailableError(`The application's build plan fails semantic validation: ${blocking.slice(0, 3).map((finding) => finding.message).join('; ')}`);
|
|
1833
3075
|
}
|
|
1834
|
-
return this.withHostDerivedDocumentationPublicationStep(await this.withHostDerivedMigrationStep(parsed.data));
|
|
3076
|
+
return this.withHostDerivedWebsiteClaimPrerequisites(this.withHostDerivedTranslationStep(this.withHostDerivedDocumentationPublicationStep(await this.withHostDerivedMigrationStep(await this.withHostDerivedEngineCapabilitiesStep(await this.withHostDerivedDisplayNameStep(await this.withHostDerivedFollowUpTasks(parsed.data)))))), exports);
|
|
3077
|
+
}
|
|
3078
|
+
/**
|
|
3079
|
+
* A website task waits for the tasks that BUILD what its copy describes (#2507 re-review N1).
|
|
3080
|
+
*
|
|
3081
|
+
* Its copy is written once, from each cited requirement's standing at dispatch. The decomposer orders a section only
|
|
3082
|
+
* after its page, so website tasks ran beside the module tasks serving their requirements, read IN_PROGRESS, and wrote
|
|
3083
|
+
* "coming soon" for features that shipped an hour later, with nothing ever rewriting them. So each website task gains
|
|
3084
|
+
* a prerequisite on every task delivering a requirement it cites (website and documentation tasks excluded), follow-ups
|
|
3085
|
+
* included, as they are appended before this step.
|
|
3086
|
+
*
|
|
3087
|
+
* A page waits on everything its sections cite, since its title and description summarize them, so one feature task
|
|
3088
|
+
* that stays stuck holds back the whole page and its sections (re-review R4). That is the plan-stuck path, by design.
|
|
3089
|
+
*
|
|
3090
|
+
* A delivering task that itself waits on a website task would close a cycle with the added edges. Each website task's
|
|
3091
|
+
* edges are kept or dropped TOGETHER, re-checked against the schema and the semantic floors (PREREQUISITE_CYCLE among
|
|
3092
|
+
* them), so one cycle costs only the tasks it involves (re-review R2), and each is named in a warning: an ordering
|
|
3093
|
+
* preference is never the reason the plan cannot be read.
|
|
3094
|
+
*/
|
|
3095
|
+
withHostDerivedWebsiteClaimPrerequisites(graph, companionExports) {
|
|
3096
|
+
const citedByTask = citedRequirementRefsByWebsiteTask(graph.tasks, companionExports);
|
|
3097
|
+
const additions = new Map();
|
|
3098
|
+
for (const task of graph.tasks) {
|
|
3099
|
+
const cited = citedByTask.get(task.taskRef) ?? [];
|
|
3100
|
+
const delivering = cited.flatMap((requirementRef) => deliveringTasksFor(requirementRef, graph.tasks)).map((entry) => entry.taskRef);
|
|
3101
|
+
const added = [...new Set(delivering)].filter((taskRef) => taskRef !== task.taskRef && !task.prerequisiteTaskRefs.includes(taskRef));
|
|
3102
|
+
if (added.length > 0)
|
|
3103
|
+
additions.set(task.taskRef, added);
|
|
3104
|
+
}
|
|
3105
|
+
if (additions.size === 0)
|
|
3106
|
+
return graph;
|
|
3107
|
+
const withEdges = (current, edges) => BuildPlanTaskGraphSchema.safeParse({
|
|
3108
|
+
...current,
|
|
3109
|
+
tasks: current.tasks.map((task) => {
|
|
3110
|
+
const added = edges.get(task.taskRef);
|
|
3111
|
+
return added === undefined ? task : { ...task, prerequisiteTaskRefs: [...task.prerequisiteTaskRefs, ...added] };
|
|
3112
|
+
}),
|
|
3113
|
+
});
|
|
3114
|
+
const isValid = (candidate) => candidate.success
|
|
3115
|
+
&& !validateBuildPlanTaskGraph(candidate.data).some((finding) => BUILD_PLAN_TASK_GRAPH_HARD_FLOOR_CODES.includes(finding.code));
|
|
3116
|
+
const all = withEdges(graph, additions);
|
|
3117
|
+
if (isValid(all))
|
|
3118
|
+
return all.data;
|
|
3119
|
+
// Some task's edges close a cycle: add them task by task, keeping each set that leaves the plan valid.
|
|
3120
|
+
let current = graph;
|
|
3121
|
+
for (const [taskRef, added] of additions) {
|
|
3122
|
+
const candidate = withEdges(current, new Map([[taskRef, added]]));
|
|
3123
|
+
if (isValid(candidate)) {
|
|
3124
|
+
current = candidate.data;
|
|
3125
|
+
}
|
|
3126
|
+
else {
|
|
3127
|
+
this.logger.warn?.(`Website task "${taskRef}" keeps its authored prerequisites: waiting on the tasks its claims cite would make the plan invalid`, { wouldWaitOn: added });
|
|
3128
|
+
}
|
|
3129
|
+
}
|
|
3130
|
+
return current;
|
|
1835
3131
|
}
|
|
1836
3132
|
/**
|
|
1837
3133
|
* The build plan as the DISPATCH HOST reads it: the authored graph, plus the `database-migrations`
|
|
@@ -1883,6 +3179,65 @@ let ApplicationBuildDispatchCompanionService = class ApplicationBuildDispatchCom
|
|
|
1883
3179
|
* clean plan generates nothing" — true of a clean plan, false of an unanswerable one, where offering
|
|
1884
3180
|
* it first made every dispatch fail and stopped the whole plan (review, 2026-09-13).
|
|
1885
3181
|
*/
|
|
3182
|
+
/**
|
|
3183
|
+
* A plan that generates labels, for an application that enables more than one locale, owes a step
|
|
3184
|
+
* that TRANSLATES them (#2204).
|
|
3185
|
+
*
|
|
3186
|
+
* Translation used to be the second half of `i18n-labels`, so the graph had no node for "the labels
|
|
3187
|
+
* exist" separate from "every locale is translated", and every step that needed only the first
|
|
3188
|
+
* waited for the second. Measured on app-creation-test-004 (2026-10-01): the primary-locale labels
|
|
3189
|
+
* existed within minutes, translation into four locales ran for hours, and the documentation portal
|
|
3190
|
+
* — which reads primary-locale labels only — stayed dark the whole time.
|
|
3191
|
+
*
|
|
3192
|
+
* Derived rather than authored, for the reason {@link withHostDerivedMigrationStep} is: the
|
|
3193
|
+
* obligation follows from what the application declares (a second enabled locale) and from the plan
|
|
3194
|
+
* carrying a labels step, not from a decision the plan makes. A plan that authors its own
|
|
3195
|
+
* `i18n-translations` step gets none derived.
|
|
3196
|
+
*
|
|
3197
|
+
* - **Its only prerequisite is the labels step**, since translation reads the primary-locale files.
|
|
3198
|
+
* - **Nothing is made to depend on it.** The website and the application read their label files at
|
|
3199
|
+
* run time, so a translation landing needs no republish, and the portal is single-locale (#1993).
|
|
3200
|
+
* - **A one-locale application gets nothing**: the step would have no evidence paths, and an empty
|
|
3201
|
+
* list never lands, so it would sit at the head of the queue forever.
|
|
3202
|
+
*/
|
|
3203
|
+
withHostDerivedTranslationStep(graph) {
|
|
3204
|
+
const isGenerationStep = (task, step) => task.target?.kind === BuildPlanTaskTargetKind.COMPANION_GENERATION_STEP && task.target.generationStepRef === step;
|
|
3205
|
+
if (graph.tasks.some((task) => isGenerationStep(task, ApplicationBuildGenerationStep.I18N_TRANSLATIONS)))
|
|
3206
|
+
return graph;
|
|
3207
|
+
const labelStepRefs = graph.tasks
|
|
3208
|
+
.filter((task) => isGenerationStep(task, ApplicationBuildGenerationStep.I18N_LABELS))
|
|
3209
|
+
.map((task) => task.taskRef);
|
|
3210
|
+
if (labelStepRefs.length === 0)
|
|
3211
|
+
return graph;
|
|
3212
|
+
if (this.generationSteps.resolveTranslationTargetLocales().length === 0)
|
|
3213
|
+
return graph;
|
|
3214
|
+
if (graph.tasks.some((task) => task.taskRef === HOST_DERIVED_I18N_TRANSLATIONS_TASK_REF)) {
|
|
3215
|
+
// Same refusal as the other derived steps: a duplicate ref is rejected by the graph schema.
|
|
3216
|
+
this.logger.warn?.(`The build plan owes an i18n-translations step, but "${HOST_DERIVED_I18N_TRANSLATIONS_TASK_REF}" already names another task; not deriving it.`);
|
|
3217
|
+
return graph;
|
|
3218
|
+
}
|
|
3219
|
+
return BuildPlanTaskGraphSchema.parse({
|
|
3220
|
+
...graph,
|
|
3221
|
+
tasks: [
|
|
3222
|
+
...graph.tasks,
|
|
3223
|
+
{
|
|
3224
|
+
taskRef: HOST_DERIVED_I18N_TRANSLATIONS_TASK_REF,
|
|
3225
|
+
objective: 'Translate the application\'s labels into every enabled locale other than the primary one. '
|
|
3226
|
+
+ 'Derived by the dispatch host because the build plan generates primary-locale labels and the application '
|
|
3227
|
+
+ 'enables further locales.',
|
|
3228
|
+
target: {
|
|
3229
|
+
kind: BuildPlanTaskTargetKind.COMPANION_GENERATION_STEP,
|
|
3230
|
+
generationStepRef: ApplicationBuildGenerationStep.I18N_TRANSLATIONS,
|
|
3231
|
+
},
|
|
3232
|
+
produces: [],
|
|
3233
|
+
functionalTopic: MetaWorkflow_FunctionalTopic.ASSEMBLE_VERIFY_AND_ITERATE,
|
|
3234
|
+
skillRefs: ['i18n-translation-rerun'],
|
|
3235
|
+
prerequisiteTaskRefs: labelStepRefs,
|
|
3236
|
+
servesRefs: [],
|
|
3237
|
+
},
|
|
3238
|
+
],
|
|
3239
|
+
});
|
|
3240
|
+
}
|
|
1886
3241
|
/**
|
|
1887
3242
|
* A plan that authors documentation CHAPTERS owes a step that PUBLISHES them.
|
|
1888
3243
|
*
|
|
@@ -1911,6 +3266,11 @@ let ApplicationBuildDispatchCompanionService = class ApplicationBuildDispatchCom
|
|
|
1911
3266
|
*
|
|
1912
3267
|
* Both are read off the graph, so a plan with no labels step simply contributes no such edge
|
|
1913
3268
|
* rather than acquiring a dangling one.
|
|
3269
|
+
*
|
|
3270
|
+
* `i18n-labels` means the PRIMARY locale only. Translation is the separate `i18n-translations` step
|
|
3271
|
+
* ({@link withHostDerivedTranslationStep}), and publication deliberately has no edge to it: the
|
|
3272
|
+
* portal reads primary-locale labels and nothing else, so waiting on translation only kept it dark
|
|
3273
|
+
* for hours (#2204).
|
|
1914
3274
|
*/
|
|
1915
3275
|
withHostDerivedDocumentationPublicationStep(graph) {
|
|
1916
3276
|
const authorsPublicationStep = graph.tasks.some((task) => task.target?.kind === BuildPlanTaskTargetKind.COMPANION_GENERATION_STEP
|
|
@@ -1954,6 +3314,280 @@ let ApplicationBuildDispatchCompanionService = class ApplicationBuildDispatchCom
|
|
|
1954
3314
|
],
|
|
1955
3315
|
});
|
|
1956
3316
|
}
|
|
3317
|
+
/**
|
|
3318
|
+
* The build plan with an `engine-capabilities` step at its head whenever the application's decisions imply a
|
|
3319
|
+
* capability its COMMITTED configuration does not enable (#2497).
|
|
3320
|
+
*
|
|
3321
|
+
* The foundation step is where those capabilities were turned on, and a build can be planned without it:
|
|
3322
|
+
* app-creation-test-005's capability composition was blocked (#2416), its modules came from ensure-module
|
|
3323
|
+
* tasks, and it shipped `ORGANIZATIONS: false` and no transactional email under an organization-tenancy plan.
|
|
3324
|
+
* Derived for the reason {@link withHostDerivedMigrationStep} is: the obligation follows from what the
|
|
3325
|
+
* application declares, not from a decision the plan makes, and the decomposer was never given the fact.
|
|
3326
|
+
*
|
|
3327
|
+
* - **Committed, not the working tree**, so derivation and landing ask the same question: a capability enabled
|
|
3328
|
+
* and not yet committed keeps the step unlanded until it is, as every other step's files do.
|
|
3329
|
+
* - **At the head, with no edges.** Composed resources assume their primary scope's capability, so it runs
|
|
3330
|
+
* first; and nothing names it as a prerequisite, because once it has landed the host derives it no longer
|
|
3331
|
+
* and an edge to it would dangle.
|
|
3332
|
+
* - **Only what a step can satisfy.** A capability only a commercial provider serves (BILLING, SMS) is left
|
|
3333
|
+
* out by the derivation, or the step could never land and would hold the build.
|
|
3334
|
+
* - **Best effort.** A derivation that cannot be read derives nothing: the foundation's own run is still the
|
|
3335
|
+
* primary door, and refusing the whole plan over this read would trade a missing capability for a stopped build.
|
|
3336
|
+
*/
|
|
3337
|
+
async withHostDerivedEngineCapabilitiesStep(graph) {
|
|
3338
|
+
const authorsStep = graph.tasks.some((task) => task.target?.kind === BuildPlanTaskTargetKind.COMPANION_GENERATION_STEP
|
|
3339
|
+
&& task.target.generationStepRef === ApplicationBuildGenerationStep.ENGINE_CAPABILITIES);
|
|
3340
|
+
if (authorsStep)
|
|
3341
|
+
return graph;
|
|
3342
|
+
let unmet;
|
|
3343
|
+
try {
|
|
3344
|
+
const condition = await this.generationSteps.resolveGenerationStepLandedCondition({
|
|
3345
|
+
taskRef: HOST_DERIVED_ENGINE_CAPABILITIES_TASK_REF,
|
|
3346
|
+
target: { kind: BuildPlanTaskTargetKind.COMPANION_GENERATION_STEP, generationStepRef: ApplicationBuildGenerationStep.ENGINE_CAPABILITIES },
|
|
3347
|
+
});
|
|
3348
|
+
if (condition.kind !== ApplicationBuildGenerationStepLandedKind.ENGINE_CAPABILITIES_ENABLED)
|
|
3349
|
+
return graph;
|
|
3350
|
+
unmet = await this.capabilitiesNotEnabledIn(condition, this.createCommittedTreeReader());
|
|
3351
|
+
}
|
|
3352
|
+
catch (error) {
|
|
3353
|
+
this.logger.warn?.('Could not derive the engine capabilities this application\'s decisions imply; deriving no step for them', {
|
|
3354
|
+
error: describeCaughtError(error),
|
|
3355
|
+
});
|
|
3356
|
+
return graph;
|
|
3357
|
+
}
|
|
3358
|
+
if (unmet.length === 0)
|
|
3359
|
+
return graph;
|
|
3360
|
+
if (graph.tasks.some((task) => task.taskRef === HOST_DERIVED_ENGINE_CAPABILITIES_TASK_REF)) {
|
|
3361
|
+
this.logger.warn?.(`The build plan owes an engine-capabilities step, but "${HOST_DERIVED_ENGINE_CAPABILITIES_TASK_REF}" already names another task; not deriving it.`);
|
|
3362
|
+
return graph;
|
|
3363
|
+
}
|
|
3364
|
+
return BuildPlanTaskGraphSchema.parse({
|
|
3365
|
+
...graph,
|
|
3366
|
+
tasks: [
|
|
3367
|
+
{
|
|
3368
|
+
taskRef: HOST_DERIVED_ENGINE_CAPABILITIES_TASK_REF,
|
|
3369
|
+
objective: `Turn on the engine capabilities this application's decisions imply and its configuration does not enable: ${unmet.join(', ')}. `
|
|
3370
|
+
+ 'Derived by the dispatch host, the same derivation the foundation step applies.',
|
|
3371
|
+
target: {
|
|
3372
|
+
kind: BuildPlanTaskTargetKind.COMPANION_GENERATION_STEP,
|
|
3373
|
+
generationStepRef: ApplicationBuildGenerationStep.ENGINE_CAPABILITIES,
|
|
3374
|
+
},
|
|
3375
|
+
produces: [],
|
|
3376
|
+
functionalTopic: MetaWorkflow_FunctionalTopic.CONFIGURE_APPLICATION_FOUNDATION,
|
|
3377
|
+
skillRefs: ['config-saas'],
|
|
3378
|
+
prerequisiteTaskRefs: [],
|
|
3379
|
+
servesRefs: [],
|
|
3380
|
+
},
|
|
3381
|
+
...graph.tasks,
|
|
3382
|
+
],
|
|
3383
|
+
});
|
|
3384
|
+
}
|
|
3385
|
+
/**
|
|
3386
|
+
* Where each requirement stands in the build, for the website copy that cites it (#2507 review F1, F5): the tasks
|
|
3387
|
+
* serving it, whether each landed, what a run serving it reported still unmet, and the roadmap phase delivering it.
|
|
3388
|
+
* A requirement is DELIVERED only when it is served, every serving task landed, no serving run reported it unmet,
|
|
3389
|
+
* and no phase AFTER the current one is the only one delivering it.
|
|
3390
|
+
*
|
|
3391
|
+
* Website tasks are left out of the serving set: a page does not deliver the capability it describes. Best effort:
|
|
3392
|
+
* `undefined` when the plan or its landings cannot be read, and the brief then describes nothing as available.
|
|
3393
|
+
*/
|
|
3394
|
+
async resolveWebsiteClaimDelivery(companionExports) {
|
|
3395
|
+
try {
|
|
3396
|
+
const plan = await this.readBuildPlan();
|
|
3397
|
+
const { landed } = await this.resolveLandedTaskRefs(plan.tasks);
|
|
3398
|
+
const runs = await this.readLatestCompletedCodingRuns().catch(() => undefined);
|
|
3399
|
+
const roadmap = RoadmapSnapshotSchema.safeParse(decidedFamilyValuesFromCompanionExports(companionExports)[ApplicationSpecificationFamily.ROADMAP]);
|
|
3400
|
+
const phases = roadmap.success ? roadmap.data.phases : [];
|
|
3401
|
+
return (requirementRef) => deriveWebsiteClaimDelivery(requirementRef, {
|
|
3402
|
+
tasks: plan.tasks,
|
|
3403
|
+
landedTaskRefs: landed,
|
|
3404
|
+
reportedMissing: (taskRef, ref) => runs?.latest.get(taskRef)?.unmetRequirements?.find((entry) => entry.requirementRef === ref)?.missing,
|
|
3405
|
+
// The follow-up `withHostDerivedFollowUpTasks` derives for THIS report, by the same function (re-review R1).
|
|
3406
|
+
followUpTaskRefFor: (originTaskRef, ref) => {
|
|
3407
|
+
const reportingRun = runs?.latest.get(originTaskRef);
|
|
3408
|
+
return reportingRun === undefined ? undefined : deriveFollowUpTaskRef(originTaskRef, ref, reportingRun.runTaskId);
|
|
3409
|
+
},
|
|
3410
|
+
phases,
|
|
3411
|
+
});
|
|
3412
|
+
}
|
|
3413
|
+
catch (error) {
|
|
3414
|
+
this.logger.warn?.('Website claim delivery could not be read; the brief will describe nothing as available', { error: describeCaughtError(error) });
|
|
3415
|
+
return undefined;
|
|
3416
|
+
}
|
|
3417
|
+
}
|
|
3418
|
+
/**
|
|
3419
|
+
* The latest COMPLETED coding run of each build task (#2496), read by the follow-up derivation and cached for two
|
|
3420
|
+
* seconds: `readBuildPlan` runs on every board poll and dispatch, and one listing per burst is enough. Nothing that
|
|
3421
|
+
* decides LANDING reads it, so a listing up to two seconds old can only delay a follow-up by one poll. `truncated` says the listing hit its page cap, so an old origin's report may be missing from it.
|
|
3422
|
+
*/
|
|
3423
|
+
readLatestCompletedCodingRuns() {
|
|
3424
|
+
const now = Date.now();
|
|
3425
|
+
if (this.latestCompletedCodingRuns !== undefined && now - this.latestCompletedCodingRuns.at < LATEST_COMPLETED_CODING_RUNS_TTL_MS) {
|
|
3426
|
+
return this.latestCompletedCodingRuns.value;
|
|
3427
|
+
}
|
|
3428
|
+
const value = this.fetchLatestCompletedCodingRuns();
|
|
3429
|
+
this.latestCompletedCodingRuns = { at: now, value };
|
|
3430
|
+
value.catch(() => { this.latestCompletedCodingRuns = undefined; });
|
|
3431
|
+
return value;
|
|
3432
|
+
}
|
|
3433
|
+
/** {@link readLatestCompletedCodingRuns} without its cache: for a reader that must see a record it just wrote (#2593). */
|
|
3434
|
+
async fetchLatestCompletedCodingRuns() {
|
|
3435
|
+
const rows = await this.executions.listActorExecutions(CompanionExecutionsListQuerySchema.parse({ systemRef: APPLICATION_CODING_SYSTEM_REF, status: FlowsActors_Status.COMPLETED, limit: BUILD_TASK_ATTEMPT_PAGE_CAP }));
|
|
3436
|
+
const latest = new Map();
|
|
3437
|
+
for (const projected of rows.map(projectBuildTaskAttempt)) {
|
|
3438
|
+
if (projected === null || projected.attempt.status !== FlowsActors_Status.COMPLETED)
|
|
3439
|
+
continue;
|
|
3440
|
+
const previous = latest.get(projected.taskRef);
|
|
3441
|
+
if (previous === undefined || previous.startedAt < projected.attempt.startedAt)
|
|
3442
|
+
latest.set(projected.taskRef, projected.attempt);
|
|
3443
|
+
}
|
|
3444
|
+
return { latest, truncated: rows.length >= BUILD_TASK_ATTEMPT_PAGE_CAP };
|
|
3445
|
+
}
|
|
3446
|
+
/**
|
|
3447
|
+
* A follow-up task for every requirement a COMPLETED coding run reported still unmet (#2496).
|
|
3448
|
+
*
|
|
3449
|
+
* 005's workers wrote "office/field access is only partly met" and "the roles do nothing yet … it still needs its own
|
|
3450
|
+
* work" into closing reports that every run was accepted on, and no later task, coherence entry or judge picked any of
|
|
3451
|
+
* it up. A run now states such a gap in a typed block; this derives the task that answers it, so the gap re-enters the
|
|
3452
|
+
* build loop instead of ending in prose. Under the YOLO posture it marks and proceeds: the reporting run still lands.
|
|
3453
|
+
*
|
|
3454
|
+
* - Read off each task's LATEST COMPLETED run, so a re-run that no longer reports the gap drops its follow-up, and a
|
|
3455
|
+
* re-run reporting it again derives a new one (its ref carries the reporting run's token).
|
|
3456
|
+
* - The follow-up keeps the origin's target and skills and waits on the ORIGIN only: waiting on every task serving the
|
|
3457
|
+
* requirement would hold it behind any of them that never lands. Its objective names those tasks, and its scope is
|
|
3458
|
+
* the origin's, so it cannot redo their work.
|
|
3459
|
+
* - Only for a target that lands by a completed run: a follow-up on a shell placement would read as landed through the
|
|
3460
|
+
* origin's probe without ever running, which is the silence this exists to remove, and a generation step is run by
|
|
3461
|
+
* the companion, never by a coding run, so a follow-up there would never run at all. Both are excluded by name.
|
|
3462
|
+
* - A follow-up's own report derives nothing further, which keeps the chain one step long. The follow-up still lands
|
|
3463
|
+
* (RAN-not-PROVEN, see `resolveLandedTaskRefs`), and its record keeps the gap it still reports, for a person to read.
|
|
3464
|
+
* - One bad entry is skipped and named, never the reason the plan cannot be read.
|
|
3465
|
+
*/
|
|
3466
|
+
async withHostDerivedFollowUpTasks(graph) {
|
|
3467
|
+
let runs;
|
|
3468
|
+
try {
|
|
3469
|
+
runs = await this.readLatestCompletedCodingRuns();
|
|
3470
|
+
}
|
|
3471
|
+
catch (error) {
|
|
3472
|
+
this.logger.warn?.('Could not read the coding runs; deriving no follow-up tasks', { error: describeCaughtError(error) });
|
|
3473
|
+
return graph;
|
|
3474
|
+
}
|
|
3475
|
+
const taskRefs = new Set(graph.tasks.map((task) => task.taskRef));
|
|
3476
|
+
let current = graph;
|
|
3477
|
+
for (const origin of graph.tasks) {
|
|
3478
|
+
if (origin.taskRef.startsWith(HOST_DERIVED_FOLLOW_UP_TASK_REF_PREFIX))
|
|
3479
|
+
continue;
|
|
3480
|
+
const latest = runs.latest.get(origin.taskRef);
|
|
3481
|
+
for (const unmet of latest?.unmetRequirements ?? []) {
|
|
3482
|
+
const taskRef = deriveFollowUpTaskRef(origin.taskRef, unmet.requirementRef, latest.runTaskId);
|
|
3483
|
+
if (taskRefs.has(taskRef)) {
|
|
3484
|
+
this.logger.warn?.(`A reported gap derives "${taskRef}", which already names another task; not deriving it`, { origin: origin.taskRef, requirementRef: unmet.requirementRef });
|
|
3485
|
+
continue;
|
|
3486
|
+
}
|
|
3487
|
+
const servingTasks = graph.tasks
|
|
3488
|
+
.filter((task) => task.taskRef !== origin.taskRef && task.servesRefs.includes(unmet.requirementRef))
|
|
3489
|
+
.map((task) => task.taskRef);
|
|
3490
|
+
const followUp = {
|
|
3491
|
+
taskRef,
|
|
3492
|
+
objective: `Meet ${unmet.requirementRef}, which ${origin.taskRef} reported still unmet: ${unmet.missing} `
|
|
3493
|
+
+ 'Read what is already built first: if a task that ran since has met it, change nothing and say so. '
|
|
3494
|
+
+ (servingTasks.length > 0 ? `Other tasks serving it: ${servingTasks.join(', ')}; their work is theirs. ` : '')
|
|
3495
|
+
+ 'Derived by the dispatch host from that run\'s closing report.',
|
|
3496
|
+
target: origin.target,
|
|
3497
|
+
produces: [],
|
|
3498
|
+
functionalTopic: origin.functionalTopic,
|
|
3499
|
+
skillRefs: origin.skillRefs,
|
|
3500
|
+
prerequisiteTaskRefs: [origin.taskRef],
|
|
3501
|
+
// Only a ref the origin serves: a free-text ref would be a dangling citation in the plan.
|
|
3502
|
+
servesRefs: origin.servesRefs.includes(unmet.requirementRef) ? [unmet.requirementRef] : [],
|
|
3503
|
+
};
|
|
3504
|
+
if (origin.target.kind === BuildPlanTaskTargetKind.COMPANION_GENERATION_STEP || resolveBuildTaskLandedProbes(followUp).length > 0) {
|
|
3505
|
+
this.logger.warn?.(`A reported gap on ${origin.taskRef} (${origin.target.kind}) derives no follow-up: that target does not land by a coding run, so a follow-up would read as landed without running. The gap stays on the run's record.`, { requirementRef: unmet.requirementRef });
|
|
3506
|
+
continue;
|
|
3507
|
+
}
|
|
3508
|
+
const extended = BuildPlanTaskGraphSchema.safeParse({ ...current, tasks: [...current.tasks, followUp] });
|
|
3509
|
+
if (!extended.success) {
|
|
3510
|
+
this.logger.warn?.(`A reported gap on ${origin.taskRef} could not become a follow-up task; it stays on the run's record`, { requirementRef: unmet.requirementRef, issues: extended.error.issues.map((issue) => issue.message) });
|
|
3511
|
+
continue;
|
|
3512
|
+
}
|
|
3513
|
+
current = extended.data;
|
|
3514
|
+
taskRefs.add(taskRef);
|
|
3515
|
+
}
|
|
3516
|
+
}
|
|
3517
|
+
/*
|
|
3518
|
+
* Whenever the cap is hit, derived or not (#2496 review N1): the gap the cap hides is exactly the case that derives
|
|
3519
|
+
* nothing. Once per process, since the plan is read on every board poll and the answer does not change between them.
|
|
3520
|
+
*/
|
|
3521
|
+
if (runs.truncated && !this.followUpListingTruncationWarned) {
|
|
3522
|
+
this.followUpListingTruncationWarned = true;
|
|
3523
|
+
this.logger.warn?.(`The coding-run listing hit its ${BUILD_TASK_ATTEMPT_PAGE_CAP}-run cap: a gap an older run reported may not have derived its follow-up.`);
|
|
3524
|
+
}
|
|
3525
|
+
return current;
|
|
3526
|
+
}
|
|
3527
|
+
/**
|
|
3528
|
+
* The build plan with a `display-name` step at its head whenever the landed brand's name is not the COMMITTED
|
|
3529
|
+
* `displayName` (#2505). Derived for the reason {@link withHostDerivedEngineCapabilitiesStep} is: the brand decided
|
|
3530
|
+
* the name, and applying it is a consequence, not a decision the plan makes. No edges, so it never dangles once it
|
|
3531
|
+
* has landed and is derived no longer. Best effort: an unreadable brand derives nothing.
|
|
3532
|
+
*/
|
|
3533
|
+
async withHostDerivedDisplayNameStep(graph) {
|
|
3534
|
+
const authorsStep = graph.tasks.some((task) => task.target?.kind === BuildPlanTaskTargetKind.COMPANION_GENERATION_STEP
|
|
3535
|
+
&& task.target.generationStepRef === ApplicationBuildGenerationStep.DISPLAY_NAME);
|
|
3536
|
+
if (authorsStep)
|
|
3537
|
+
return graph;
|
|
3538
|
+
let condition;
|
|
3539
|
+
try {
|
|
3540
|
+
condition = await this.generationSteps.resolveGenerationStepLandedCondition({
|
|
3541
|
+
taskRef: HOST_DERIVED_DISPLAY_NAME_TASK_REF,
|
|
3542
|
+
target: { kind: BuildPlanTaskTargetKind.COMPANION_GENERATION_STEP, generationStepRef: ApplicationBuildGenerationStep.DISPLAY_NAME },
|
|
3543
|
+
});
|
|
3544
|
+
}
|
|
3545
|
+
catch (error) {
|
|
3546
|
+
this.logger.warn?.('Could not read the brand\'s name; deriving no display-name step', { error: describeCaughtError(error) });
|
|
3547
|
+
return graph;
|
|
3548
|
+
}
|
|
3549
|
+
if (condition.kind !== ApplicationBuildGenerationStepLandedKind.DISPLAY_NAME_APPLIED)
|
|
3550
|
+
return graph;
|
|
3551
|
+
if (await this.displayNameApplied(condition, this.createCommittedTreeReader()))
|
|
3552
|
+
return graph;
|
|
3553
|
+
if (graph.tasks.some((task) => task.taskRef === HOST_DERIVED_DISPLAY_NAME_TASK_REF)) {
|
|
3554
|
+
this.logger.warn?.(`The build plan owes a display-name step, but "${HOST_DERIVED_DISPLAY_NAME_TASK_REF}" already names another task; not deriving it.`);
|
|
3555
|
+
return graph;
|
|
3556
|
+
}
|
|
3557
|
+
return BuildPlanTaskGraphSchema.parse({
|
|
3558
|
+
...graph,
|
|
3559
|
+
tasks: [
|
|
3560
|
+
{
|
|
3561
|
+
taskRef: HOST_DERIVED_DISPLAY_NAME_TASK_REF,
|
|
3562
|
+
objective: `Name the application "${condition.displayName}", as its brand decided: the SaaS config's displayName and every file the scaffold wrote the provisional name into. `
|
|
3563
|
+
+ 'Derived by the dispatch host because the brand names the application and nothing has applied it.',
|
|
3564
|
+
target: {
|
|
3565
|
+
kind: BuildPlanTaskTargetKind.COMPANION_GENERATION_STEP,
|
|
3566
|
+
generationStepRef: ApplicationBuildGenerationStep.DISPLAY_NAME,
|
|
3567
|
+
},
|
|
3568
|
+
produces: [],
|
|
3569
|
+
functionalTopic: MetaWorkflow_FunctionalTopic.CONFIGURE_APPLICATION_FOUNDATION,
|
|
3570
|
+
skillRefs: ['config-saas'],
|
|
3571
|
+
prerequisiteTaskRefs: [],
|
|
3572
|
+
servesRefs: [],
|
|
3573
|
+
},
|
|
3574
|
+
...graph.tasks,
|
|
3575
|
+
],
|
|
3576
|
+
});
|
|
3577
|
+
}
|
|
3578
|
+
/** Does `tree`'s configuration declare the display name a DISPLAY_NAME_APPLIED condition names (#2505)? */
|
|
3579
|
+
async displayNameApplied(condition, tree) {
|
|
3580
|
+
const content = await tree.readText(condition.configPath);
|
|
3581
|
+
return content !== undefined && content !== null && readApplicationDisplayName(content) === condition.displayName;
|
|
3582
|
+
}
|
|
3583
|
+
/** The capabilities an ENGINE_CAPABILITIES_ENABLED condition names that `tree`'s configuration does not enable (#2497). */
|
|
3584
|
+
async capabilitiesNotEnabledIn(condition, tree) {
|
|
3585
|
+
const content = await tree.readText(condition.configPath);
|
|
3586
|
+
// No committed configuration (or none readable) enables nothing.
|
|
3587
|
+
if (content === undefined || content === null)
|
|
3588
|
+
return [...condition.capabilities];
|
|
3589
|
+
return condition.capabilities.filter((capability) => readEngineCapabilityEnabled({ filePath: condition.configPath, content, capability }) !== true);
|
|
3590
|
+
}
|
|
1957
3591
|
async withHostDerivedMigrationStep(graph) {
|
|
1958
3592
|
const authorsMigrationStep = graph.tasks.some((task) => task.target?.kind === BuildPlanTaskTargetKind.COMPANION_GENERATION_STEP
|
|
1959
3593
|
&& task.target.generationStepRef === ApplicationBuildGenerationStep.DATABASE_MIGRATIONS);
|
|
@@ -2003,8 +3637,15 @@ let ApplicationBuildDispatchCompanionService = class ApplicationBuildDispatchCom
|
|
|
2003
3637
|
* its target's blast radius is the PULL door's job (`wildo context …`, issue #252), which the
|
|
2004
3638
|
* `live-queries` source below points at. Anticipating everything here would be the planner trap
|
|
2005
3639
|
* (#254) re-entering through the push door. Everything is model-safe by construction — the
|
|
2006
|
-
* application's own accepted build plan, its own live registry, its own domain plan
|
|
2007
|
-
* contract's composer re-asserts
|
|
3640
|
+
* application's own accepted build plan, its own live registry, its own domain plan, its installed
|
|
3641
|
+
* skill index and its own configuration (#2495) — and the contract's composer re-asserts
|
|
3642
|
+
* `SAFE_FOR_MODEL` on every source regardless.
|
|
3643
|
+
*
|
|
3644
|
+
* The skill-index source is the one deliberate widening past "the target's blast radius" (#2495):
|
|
3645
|
+
* measured over 005's coding runs, workers never opened the index and read the engine's compiled
|
|
3646
|
+
* code instead, so a door they do not know to open is not a pull door. It carries only the domains
|
|
3647
|
+
* the task's own skills belong to (median ~5 KB over 005's plan; a website task reaches ~26 KB,
|
|
3648
|
+
* the Website domain being the index's largest), plus the names of the others.
|
|
2008
3649
|
*
|
|
2009
3650
|
* ## Failure posture: best-effort on the derived sources, deliberately
|
|
2010
3651
|
*
|
|
@@ -2024,12 +3665,14 @@ let ApplicationBuildDispatchCompanionService = class ApplicationBuildDispatchCom
|
|
|
2024
3665
|
* be a copy that can only ever disagree.
|
|
2025
3666
|
*/
|
|
2026
3667
|
/** The coding contract for one task: its skills resolved once, and carried by both the contract and its self-description. */
|
|
2027
|
-
async composeTaskCodingContract(task, boundary, totalTasks) {
|
|
3668
|
+
async composeTaskCodingContract(task, boundary, totalTasks, landedOverride) {
|
|
2028
3669
|
const skillRefs = await this.resolveTaskSkillRefs(task);
|
|
3670
|
+
const contextSources = await this.buildContextSources(task, totalTasks, skillRefs);
|
|
2029
3671
|
return composeBuildTaskCodingContract({
|
|
2030
3672
|
task,
|
|
2031
3673
|
boundary,
|
|
2032
|
-
|
|
3674
|
+
// An operator ran this task although its probe calls it landed: the run is told why (#2409).
|
|
3675
|
+
contextSources: landedOverride ? [...contextSources, landedOverrideContextSource(landedOverride)] : contextSources,
|
|
2033
3676
|
objectiveRef: 'application-creation:objective/build-plan',
|
|
2034
3677
|
installedSkillRefs: skillRefs,
|
|
2035
3678
|
});
|
|
@@ -2047,10 +3690,29 @@ let ApplicationBuildDispatchCompanionService = class ApplicationBuildDispatchCom
|
|
|
2047
3690
|
*
|
|
2048
3691
|
* Whichever list that is, the skills the task's PRODUCTS require are added to it (#1832): an inbound
|
|
2049
3692
|
* channel handler is authored with `inbound-channels` on every path, including a task that also carries
|
|
2050
|
-
* an experience product and so takes the experience derivation.
|
|
3693
|
+
* an experience product and so takes the experience derivation. So are the skills its TARGET requires
|
|
3694
|
+
* (#2495): a CONFIG task on a resource whose schema declares personal data carries the retention skill.
|
|
2051
3695
|
*/
|
|
2052
3696
|
async resolveTaskSkillRefs(task) {
|
|
2053
|
-
|
|
3697
|
+
const targetDeclaresPersonalData = await this.targetResourceDeclaresPersonalData(task);
|
|
3698
|
+
return [...new Set([...(await this.resolveTargetSkillRefs(task)), ...productDerivedSkillRefs(task), ...targetDerivedSkillRefs(task, { targetDeclaresPersonalData })])];
|
|
3699
|
+
}
|
|
3700
|
+
/**
|
|
3701
|
+
* Whether a resource-stage task's target DECLARES personal data in its schema (#2495), read from the file its SCHEMA
|
|
3702
|
+
* task wrote (every CONFIG task depends on it). A schema that cannot be read is answered `false` and logged: the
|
|
3703
|
+
* retention skill is then not routed, which is the state before #2495, never a guess.
|
|
3704
|
+
*/
|
|
3705
|
+
async targetResourceDeclaresPersonalData(task) {
|
|
3706
|
+
if (task.target.kind !== BuildPlanTaskTargetKind.RESOURCE_STAGE || task.target.stage !== BuildPlanResourceStage.CONFIG)
|
|
3707
|
+
return false;
|
|
3708
|
+
const schemaPath = resourceSchemaFilePath(task.target.moduleRef, task.target.resourceRef);
|
|
3709
|
+
try {
|
|
3710
|
+
return schemaSourceDeclaresPersonalData(await readFile(join(this.companionContext.saasRoot, schemaPath), 'utf8'));
|
|
3711
|
+
}
|
|
3712
|
+
catch (error) {
|
|
3713
|
+
this.logger.warn('Personal-data probe skipped: the target schema could not be read, so the retention skill is not routed', { taskRef: task.taskRef, schemaPath, error: String(error) });
|
|
3714
|
+
return false;
|
|
3715
|
+
}
|
|
2054
3716
|
}
|
|
2055
3717
|
async resolveTargetSkillRefs(task) {
|
|
2056
3718
|
if (task.target.kind === BuildPlanTaskTargetKind.WEBSITE) {
|
|
@@ -2090,6 +3752,21 @@ let ApplicationBuildDispatchCompanionService = class ApplicationBuildDispatchCom
|
|
|
2090
3752
|
catch (error) {
|
|
2091
3753
|
this.logDebug('Previous-attempt source omitted from the dispatch context', { taskRef: task.taskRef, error: String(error) });
|
|
2092
3754
|
}
|
|
3755
|
+
/*
|
|
3756
|
+
* WHAT HAPPENED TO THE LAST COMPLETED ATTEMPT, when a sibling overwrote its product (#2210). The re-run
|
|
3757
|
+
* meets a shared file that now holds other tasks' entries and not its own; told nothing, an agent may
|
|
3758
|
+
* "restore" the file to what it wrote last time and remove theirs. Only the LATEST completed run is
|
|
3759
|
+
* read, so a task that has since completed cleanly is not told about an old collision. Best-effort.
|
|
3760
|
+
*/
|
|
3761
|
+
try {
|
|
3762
|
+
const [latestCompleted] = [...(await this.dispatch.listCompletedRunsForBuildTask(task.taskRef))]
|
|
3763
|
+
.sort((left, right) => (right.completedAt ?? '').localeCompare(left.completedAt ?? ''));
|
|
3764
|
+
if (latestCompleted?.interference !== undefined)
|
|
3765
|
+
sources.push(interferedAttemptContextSource(latestCompleted.taskId, latestCompleted.interference));
|
|
3766
|
+
}
|
|
3767
|
+
catch (error) {
|
|
3768
|
+
this.logDebug('Interfered-attempt source omitted from the dispatch context', { taskRef: task.taskRef, error: String(error) });
|
|
3769
|
+
}
|
|
2093
3770
|
/*
|
|
2094
3771
|
* The DOOR MENU — tier-0 of the pull half: the live-query ids and the two commands that expand
|
|
2095
3772
|
* them. Ids only, not descriptions: `wildo context list` IS the descriptions, one command away,
|
|
@@ -2110,6 +3787,62 @@ let ApplicationBuildDispatchCompanionService = class ApplicationBuildDispatchCom
|
|
|
2110
3787
|
behaviorIds: catalog.behaviors.map((behavior) => behavior.behaviorId),
|
|
2111
3788
|
},
|
|
2112
3789
|
});
|
|
3790
|
+
/*
|
|
3791
|
+
* THE SKILLS BEYOND THE ROUTED ONES (#2495). Measured over ~100 coding runs of app-creation-test-005: the skill
|
|
3792
|
+
* index was opened 0 times, and where the routed skills fell short the workers read the engine's compiled `dist`.
|
|
3793
|
+
* The index is installed in the application; the brief carries the sections of the domains its routed skills
|
|
3794
|
+
* belong to (every sibling skill, with its trigger phrases) and the name of every other domain. Best-effort.
|
|
3795
|
+
*/
|
|
3796
|
+
try {
|
|
3797
|
+
const indexMarkdown = await readFile(join(this.companionContext.saasRoot, INSTALLED_SKILL_INDEX_RELATIVE_PATH), 'utf8');
|
|
3798
|
+
const slice = sliceSkillIndexForTask(indexMarkdown, skillRefs);
|
|
3799
|
+
if (slice !== undefined) {
|
|
3800
|
+
sources.push({
|
|
3801
|
+
sourceRef: 'application-creation:context/skill-index',
|
|
3802
|
+
originRef: 'application-creation:origin/installed-skill-index',
|
|
3803
|
+
content: {
|
|
3804
|
+
guidance: `Your installed skills are listed above; these are the domains they belong to, with every sibling skill. A skill named here is at \`.claude/skills/<id>/SKILL.md\` — read it before reaching for the engine's compiled code. The whole catalogue is \`${INSTALLED_SKILL_INDEX_RELATIVE_PATH}\`.`,
|
|
3805
|
+
routedDomains: slice.routedDomains,
|
|
3806
|
+
otherDomains: slice.otherDomains,
|
|
3807
|
+
},
|
|
3808
|
+
});
|
|
3809
|
+
}
|
|
3810
|
+
}
|
|
3811
|
+
catch (error) {
|
|
3812
|
+
// WARN, as the method's other omissions: a brief silently missing its skill index is the 005 state again.
|
|
3813
|
+
this.logger.warn('Skill-index source omitted from the dispatch context', { taskRef: task.taskRef, error: String(error) });
|
|
3814
|
+
}
|
|
3815
|
+
/*
|
|
3816
|
+
* WHAT THE APPLICATION HAS TURNED ON (#2495). 005 shipped ORGANIZATIONS disabled under an organization-scoped domain
|
|
3817
|
+
* plan, and no worker could see it. Read from the configuration (total over the capability vocabulary) and the
|
|
3818
|
+
* domain plan's tenancy decision; a contradiction between them is stated, never resolved here. Best-effort.
|
|
3819
|
+
*/
|
|
3820
|
+
try {
|
|
3821
|
+
const configContent = await readFile(join(this.companionContext.saasRoot, SAAS_CONFIG_FILE_NAME), 'utf8');
|
|
3822
|
+
let tenancy;
|
|
3823
|
+
try {
|
|
3824
|
+
const exports = await loadSpecificationsCompanionExports(this.companionContext);
|
|
3825
|
+
const declared = exports.domainPlanSpecification?.tenancy;
|
|
3826
|
+
tenancy = Object.values(DomainPlanTenancyModel).find((member) => member === declared);
|
|
3827
|
+
}
|
|
3828
|
+
catch {
|
|
3829
|
+
// No readable domain plan: the capabilities still reach the brief, without the tenancy comparison.
|
|
3830
|
+
}
|
|
3831
|
+
const facts = readApplicationCapabilityFacts({ configContent, configPath: SAAS_CONFIG_FILE_NAME, tenancy });
|
|
3832
|
+
sources.push({
|
|
3833
|
+
sourceRef: 'application-creation:context/application-capabilities',
|
|
3834
|
+
originRef: 'application-creation:origin/application-configuration',
|
|
3835
|
+
content: {
|
|
3836
|
+
...facts,
|
|
3837
|
+
note: 'Engine capabilities as `wildo.saas.config.ts` declares them. Build only on what is enabled: an organization-scoped resource or an '
|
|
3838
|
+
+ 'organization role assumes ORGANIZATIONS, a sent email assumes EMAIL_TRANSACTIONAL. A capability this task needs and the configuration '
|
|
3839
|
+
+ 'does not enable is reported in your result, not enabled by you.',
|
|
3840
|
+
},
|
|
3841
|
+
});
|
|
3842
|
+
}
|
|
3843
|
+
catch (error) {
|
|
3844
|
+
this.logger.warn('Application-capabilities source omitted from the dispatch context', { taskRef: task.taskRef, error: String(error) });
|
|
3845
|
+
}
|
|
2113
3846
|
const moduleRef = task.target && 'moduleRef' in task.target ? task.target.moduleRef : undefined;
|
|
2114
3847
|
const resourceRef = task.target && 'resourceRef' in task.target ? task.target.resourceRef : undefined;
|
|
2115
3848
|
// WORKSPACE TRUTH, sliced to the target: the target module's real resources and present schema
|
|
@@ -2236,6 +3969,15 @@ let ApplicationBuildDispatchCompanionService = class ApplicationBuildDispatchCom
|
|
|
2236
3969
|
...(resourceRef !== undefined ? { targetResourceRef: resourceRef } : {}),
|
|
2237
3970
|
relationshipsTouchingModule: (domainPlan?.relationships ?? []).filter((relationship) => moduleResourceSlugs.has(slugifyRegistryIdentifier(relationship.sourceResourceRef))
|
|
2238
3971
|
|| moduleResourceSlugs.has(slugifyRegistryIdentifier(relationship.targetResourceRef))),
|
|
3972
|
+
/*
|
|
3973
|
+
* The states, transitions and stamped fields of the module's resources (#2491 review F5), and any lifecycle
|
|
3974
|
+
* whose conversion creates one of them. The schema task creates the status enum and the stamped fields
|
|
3975
|
+
* from these, and a transition task needs its starting states; carried only in prose objectives, the
|
|
3976
|
+
* states were whatever the decomposer happened to restate.
|
|
3977
|
+
*/
|
|
3978
|
+
lifecyclesTouchingModule: (domainPlan?.lifecycles ?? []).filter((lifecycle) => moduleResourceSlugs.has(slugifyRegistryIdentifier(lifecycle.resourceRef))
|
|
3979
|
+
|| lifecycle.transitions.some((transition) => transition.createsResourceRef !== undefined
|
|
3980
|
+
&& moduleResourceSlugs.has(slugifyRegistryIdentifier(transition.createsResourceRef)))),
|
|
2239
3981
|
},
|
|
2240
3982
|
});
|
|
2241
3983
|
}
|
|
@@ -2261,7 +4003,8 @@ let ApplicationBuildDispatchCompanionService = class ApplicationBuildDispatchCom
|
|
|
2261
4003
|
// boundary between a page task and its section tasks. See `buildWebsitePlanContextSource`.
|
|
2262
4004
|
if (task.target.kind === BuildPlanTaskTargetKind.WEBSITE) {
|
|
2263
4005
|
try {
|
|
2264
|
-
const
|
|
4006
|
+
const companionExports = await loadSpecificationsCompanionExports(this.companionContext);
|
|
4007
|
+
const websiteSource = buildWebsitePlanContextSource(task, companionExports, await this.resolveWebsiteClaimDelivery(companionExports));
|
|
2265
4008
|
if (websiteSource !== null)
|
|
2266
4009
|
sources.push(websiteSource);
|
|
2267
4010
|
}
|
|
@@ -2292,10 +4035,12 @@ ApplicationBuildDispatchCompanionService = __decorate([
|
|
|
2292
4035
|
__param(5, inject(COMPANION_SERVICE_TYPES.IntrospectionService)),
|
|
2293
4036
|
__param(6, inject(SAAS_SERVICE_TYPES.ActorsSystemBackendService)),
|
|
2294
4037
|
__param(7, inject(COMPANION_SERVICE_TYPES.ExecutionsService)),
|
|
4038
|
+
__param(8, inject(COMPANION_SERVICE_TYPES.AcceptedChangeCommitService)),
|
|
4039
|
+
__param(9, inject(SAAS_SERVICE_TYPES.AgentsBackendService)),
|
|
2295
4040
|
__metadata("design:paramtypes", [Function, Object, CodingAgentDispatchCompanionService,
|
|
2296
4041
|
GitChangeSetCompanionService,
|
|
2297
4042
|
ApplicationBuildGenerationStepCompanionService,
|
|
2298
|
-
CompanionIntrospectionService, Function, CompanionExecutionsCompanionService])
|
|
4043
|
+
CompanionIntrospectionService, Function, CompanionExecutionsCompanionService, Function, Function])
|
|
2299
4044
|
], ApplicationBuildDispatchCompanionService);
|
|
2300
4045
|
export { ApplicationBuildDispatchCompanionService };
|
|
2301
4046
|
/**
|
|
@@ -2316,7 +4061,8 @@ export function previousAttemptContextSource(run) {
|
|
|
2316
4061
|
...(tail(entry.outcome?.stderrTail) ? { stderrTail: tail(entry.outcome?.stderrTail) } : {}),
|
|
2317
4062
|
}));
|
|
2318
4063
|
const rearm = readBuildTaskRearm(run.memory);
|
|
2319
|
-
|
|
4064
|
+
// A coding run records its failure as `error`, a refusal as `failure` — one reader for both (#2390).
|
|
4065
|
+
const failureMessage = readSettledRunFailureMessage(run.output);
|
|
2320
4066
|
/*
|
|
2321
4067
|
* Three different histories, told apart (#1581, second review A5). Telling the agent "repeat the same
|
|
2322
4068
|
* approach and it fails the same way" is right only when the approach WAS judged: a turn the host took
|
|
@@ -2353,6 +4099,26 @@ export function previousAttemptContextSource(run) {
|
|
|
2353
4099
|
},
|
|
2354
4100
|
};
|
|
2355
4101
|
}
|
|
4102
|
+
/**
|
|
4103
|
+
* The previous COMPLETED attempt lost its product to a concurrent run (#2210). Pure, so what the re-run is
|
|
4104
|
+
* told can be pinned without composing a dispatch.
|
|
4105
|
+
*/
|
|
4106
|
+
export function interferedAttemptContextSource(runTaskId, interference) {
|
|
4107
|
+
return {
|
|
4108
|
+
sourceRef: 'application-creation:context/interfered-attempt',
|
|
4109
|
+
originRef: 'application-creation:origin/dev-companion',
|
|
4110
|
+
content: {
|
|
4111
|
+
guidance: 'The previous attempt of this task COMPLETED, but other tasks running at the same time edited the same '
|
|
4112
|
+
+ 'file(s) and its product was overwritten before it was committed. Nothing about the approach was judged. '
|
|
4113
|
+
+ 'The files below are SHARED: open them as they stand now, add this task\'s product beside what the other '
|
|
4114
|
+
+ 'tasks put there, and do not remove or rewrite entries this task did not author.',
|
|
4115
|
+
runTaskId,
|
|
4116
|
+
sharedFiles: interference.contendedProductPaths,
|
|
4117
|
+
concurrentTasks: interference.overlappingTaskRefs,
|
|
4118
|
+
detectedAt: interference.detectedAt,
|
|
4119
|
+
},
|
|
4120
|
+
};
|
|
4121
|
+
}
|
|
2356
4122
|
/**
|
|
2357
4123
|
* The task's own DETERMINISTIC self-description — no introspection, no LLM.
|
|
2358
4124
|
*
|
|
@@ -2393,6 +4159,12 @@ skillRefs = task.skillRefs) {
|
|
|
2393
4159
|
* and the run finished `completed_unlanded`.
|
|
2394
4160
|
*/
|
|
2395
4161
|
landedWhen: resolveBuildTaskLandedProbes(task),
|
|
4162
|
+
/*
|
|
4163
|
+
* THE REQUIREMENTS THIS TASK SERVES (#2496). The agent reports one it could not fully meet against these refs, in
|
|
4164
|
+
* its closing report's `wildo-unmet-requirements` block; without them it could only describe a gap in prose, which
|
|
4165
|
+
* is how 005's workers said "the roles do nothing yet" and nothing ever acted on it.
|
|
4166
|
+
*/
|
|
4167
|
+
servesRefs: task.servesRefs,
|
|
2396
4168
|
functionalTopic: task.functionalTopic,
|
|
2397
4169
|
skillRefs,
|
|
2398
4170
|
prerequisiteTaskRefs: task.prerequisiteTaskRefs,
|
|
@@ -2400,6 +4172,26 @@ skillRefs = task.skillRefs) {
|
|
|
2400
4172
|
},
|
|
2401
4173
|
};
|
|
2402
4174
|
}
|
|
4175
|
+
/** Whether two audiences admit the same roles; `undefined` is everyone. */
|
|
4176
|
+
function samePlacementAudience(left, right) {
|
|
4177
|
+
if (left === undefined || right === undefined)
|
|
4178
|
+
return left === right;
|
|
4179
|
+
const leftSet = new Set(left);
|
|
4180
|
+
return leftSet.size === new Set(right).size && right.every((role) => leftSet.has(role));
|
|
4181
|
+
}
|
|
4182
|
+
/** Whether both layers admit the same roles. */
|
|
4183
|
+
function samePlacementAudienceLayers(left, right) {
|
|
4184
|
+
return samePlacementAudience(left.section, right.section) && samePlacementAudience(left.item, right.item);
|
|
4185
|
+
}
|
|
4186
|
+
/** An audience as a reader sees it in a build record: `everyone`, or each restricted layer. */
|
|
4187
|
+
function describePlacementAudience(audience) {
|
|
4188
|
+
const list = (roles) => `[${[...roles].sort().join(', ')}]`;
|
|
4189
|
+
const layers = [
|
|
4190
|
+
...(audience.section === undefined ? [] : [`section ${list(audience.section)}`]),
|
|
4191
|
+
...(audience.item === undefined ? [] : [`item ${list(audience.item)}`]),
|
|
4192
|
+
];
|
|
4193
|
+
return layers.length === 0 ? 'everyone' : layers.join(' + ');
|
|
4194
|
+
}
|
|
2403
4195
|
/**
|
|
2404
4196
|
* The PLAN half of the shell witness (#1538), as a pure function of the plan.
|
|
2405
4197
|
*
|
|
@@ -2411,13 +4203,22 @@ skillRefs = task.skillRefs) {
|
|
|
2411
4203
|
export function derivePlacementPlanShellExpectations(plan) {
|
|
2412
4204
|
const placed = new Map();
|
|
2413
4205
|
const declined = [];
|
|
4206
|
+
const groupAudience = new Map(plan.groups.map((group) => [`${group.surface}::${group.groupRef}`, group.visibleToRoles]));
|
|
2414
4207
|
for (const decision of plan.decisions) {
|
|
2415
|
-
const
|
|
4208
|
+
const shellIdentity = placementSubjectShellIdentity(decision.subject);
|
|
2416
4209
|
if (decision.disposition === PlacementDisposition.DECLINED) {
|
|
2417
|
-
declined.
|
|
4210
|
+
// A declined subject is shown to nobody, so it has no audience to compare.
|
|
4211
|
+
declined.push({ decision, shellIdentity, audience: {} });
|
|
2418
4212
|
continue;
|
|
2419
4213
|
}
|
|
2420
|
-
|
|
4214
|
+
const address = decision.address;
|
|
4215
|
+
const section = address.surface === PlacementSurface.SIDEBAR ? groupAudience.get(`${address.surface}::${address.groupRef}`) : undefined;
|
|
4216
|
+
const audience = {
|
|
4217
|
+
...(decision.visibleToRoles === undefined ? {} : { item: decision.visibleToRoles }),
|
|
4218
|
+
...(section === undefined ? {} : { section }),
|
|
4219
|
+
};
|
|
4220
|
+
const entry = { decision, shellIdentity, audience };
|
|
4221
|
+
placed.set(address.surface, [...(placed.get(address.surface) ?? []), entry]);
|
|
2421
4222
|
}
|
|
2422
4223
|
return { placed, declined };
|
|
2423
4224
|
}
|
|
@@ -2448,21 +4249,33 @@ export function buildShellPlacementPlanContextSource(surface, companionExports)
|
|
|
2448
4249
|
},
|
|
2449
4250
|
};
|
|
2450
4251
|
}
|
|
2451
|
-
const describe = ({ decision, shellIdentity }) => ({
|
|
4252
|
+
const describe = ({ decision, shellIdentity, audience }) => ({
|
|
2452
4253
|
decisionRef: decision.decisionRef,
|
|
2453
4254
|
subject: decision.subject,
|
|
2454
4255
|
...(decision.disposition === PlacementDisposition.PLACED ? { address: decision.address } : {}),
|
|
2455
4256
|
rationale: decision.rationale,
|
|
2456
4257
|
shellIdentity,
|
|
4258
|
+
// The entry's OWN audience, written on the entry; its section's is on its group in `groupsOnThisSurface`.
|
|
4259
|
+
...(audience.item === undefined ? {} : { visibleToRoles: audience.item }),
|
|
2457
4260
|
});
|
|
2458
4261
|
const expectations = derivePlacementPlanShellExpectations(parsed.data);
|
|
4262
|
+
// The containers this surface is grouped into (sidebar sections, settings categories), with their purpose and audience.
|
|
4263
|
+
const groupsOnThisSurface = parsed.data.groups.filter((group) => group.surface === surface).map((group) => ({
|
|
4264
|
+
groupRef: group.groupRef,
|
|
4265
|
+
purpose: group.purpose,
|
|
4266
|
+
order: group.order,
|
|
4267
|
+
...(group.visibleToRoles === undefined ? {} : { visibleToRoles: group.visibleToRoles }),
|
|
4268
|
+
}));
|
|
2459
4269
|
return {
|
|
2460
4270
|
...base,
|
|
2461
4271
|
content: {
|
|
2462
4272
|
surface,
|
|
2463
4273
|
landingCriterion: `This task lands when the ${surface} surface, as the composed shell resolves it, carries every subject `
|
|
2464
4274
|
+ 'placed on it below and none of the declined subjects, and every file that surface is composed from is committed. '
|
|
2465
|
-
+ 'The declarationRefs in `produces` name these decisions; they are never spelled in the tree, so writing them as text lands nothing.'
|
|
4275
|
+
+ 'The declarationRefs in `produces` name these decisions; they are never spelled in the tree, so writing them as text lands nothing. '
|
|
4276
|
+
+ 'Roles are written per layer, exactly as listed: a group\'s `visibleToRoles` as `runtimeAvailability.visibleToRoles` on its '
|
|
4277
|
+
+ 'sidebar section, and an entry\'s own `visibleToRoles` on the entry. A layer that lists none carries none.',
|
|
4278
|
+
...(groupsOnThisSurface.length === 0 ? {} : { groupsOnThisSurface }),
|
|
2466
4279
|
placedOnThisSurface: (expectations.placed.get(surface) ?? []).map(describe),
|
|
2467
4280
|
declinedEverywhere: expectations.declined.map(describe),
|
|
2468
4281
|
selfCheck: '`wildo context info app-shell-placement-content` reports what each surface carries, in the same identities as '
|