@wildo-ai/dev-companion 1.1.4 → 1.1.6
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/dist/esm/.tsbuildinfo +1 -1
- package/dist/esm/__tests__/asset-noop.d.ts.map +1 -1
- package/dist/esm/__tests__/chdir-dogfood-app.setup.d.ts.map +1 -1
- package/dist/esm/__tests__/internal-test-view.d.ts.map +1 -1
- package/dist/esm/brand/models/logo-creative-brief.schemas.d.ts.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 +0 -1
- 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 +0 -1
- package/dist/esm/brand/models/logo-judge.actors-system.definitions.js.map +1 -1
- package/dist/esm/brand/models/logo-judge.schemas.d.ts.map +1 -1
- package/dist/esm/brand/services/brand-accept.companion.service.d.ts +8 -0
- package/dist/esm/brand/services/brand-accept.companion.service.d.ts.map +1 -1
- package/dist/esm/brand/services/brand-accept.companion.service.js +30 -5
- package/dist/esm/brand/services/brand-accept.companion.service.js.map +1 -1
- package/dist/esm/brand/services/brand-propagation.companion.utils.d.ts +21 -0
- package/dist/esm/brand/services/brand-propagation.companion.utils.d.ts.map +1 -0
- package/dist/esm/brand/services/brand-propagation.companion.utils.js +33 -0
- package/dist/esm/brand/services/brand-propagation.companion.utils.js.map +1 -0
- package/dist/esm/brand/services/logo-deliberation.companion.service.d.ts +7 -0
- package/dist/esm/brand/services/logo-deliberation.companion.service.d.ts.map +1 -1
- package/dist/esm/brand/services/logo-deliberation.companion.service.js +7 -0
- 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 +143 -0
- package/dist/esm/claude-cli/models/application-coding-run-checkpoint.models.d.ts.map +1 -0
- package/dist/esm/claude-cli/models/application-coding-run-checkpoint.models.js +84 -0
- package/dist/esm/claude-cli/models/application-coding-run-checkpoint.models.js.map +1 -0
- package/dist/esm/claude-cli/models/coding-agent-dispatch.models.d.ts +197 -16
- 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 +255 -12
- package/dist/esm/claude-cli/models/coding-agent-dispatch.models.js.map +1 -1
- package/dist/esm/claude-cli/models/coding-session-frame-retention.d.ts +85 -0
- package/dist/esm/claude-cli/models/coding-session-frame-retention.d.ts.map +1 -0
- package/dist/esm/claude-cli/models/coding-session-frame-retention.js +122 -0
- package/dist/esm/claude-cli/models/coding-session-frame-retention.js.map +1 -0
- package/dist/esm/claude-cli/models/concurrent-coding-runs.models.d.ts +102 -0
- package/dist/esm/claude-cli/models/concurrent-coding-runs.models.d.ts.map +1 -0
- package/dist/esm/claude-cli/models/concurrent-coding-runs.models.js +139 -0
- package/dist/esm/claude-cli/models/concurrent-coding-runs.models.js.map +1 -0
- package/dist/esm/claude-cli/models/parked-question-answer.models.d.ts +94 -0
- package/dist/esm/claude-cli/models/parked-question-answer.models.d.ts.map +1 -0
- package/dist/esm/claude-cli/models/parked-question-answer.models.js +137 -0
- package/dist/esm/claude-cli/models/parked-question-answer.models.js.map +1 -0
- package/dist/esm/claude-cli/models/parked-question-answerer.actors-system.definitions.d.ts +16 -0
- package/dist/esm/claude-cli/models/parked-question-answerer.actors-system.definitions.d.ts.map +1 -0
- package/dist/esm/claude-cli/models/parked-question-answerer.actors-system.definitions.js +46 -0
- package/dist/esm/claude-cli/models/parked-question-answerer.actors-system.definitions.js.map +1 -0
- package/dist/esm/claude-cli/services/__tests__/support/in-memory-coding-actor-plane.d.ts +50 -0
- package/dist/esm/claude-cli/services/__tests__/support/in-memory-coding-actor-plane.d.ts.map +1 -0
- package/dist/esm/claude-cli/services/__tests__/support/in-memory-coding-actor-plane.js +157 -0
- package/dist/esm/claude-cli/services/__tests__/support/in-memory-coding-actor-plane.js.map +1 -0
- package/dist/esm/claude-cli/services/accepted-change-commit.companion.service.d.ts +279 -0
- package/dist/esm/claude-cli/services/accepted-change-commit.companion.service.d.ts.map +1 -0
- package/dist/esm/claude-cli/services/accepted-change-commit.companion.service.js +754 -0
- package/dist/esm/claude-cli/services/accepted-change-commit.companion.service.js.map +1 -0
- package/dist/esm/claude-cli/services/coding-agent-dispatch.companion.service.d.ts +957 -83
- 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 +2743 -410
- 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 +115 -0
- package/dist/esm/claude-cli/services/coding-run-write-register.companion.service.d.ts.map +1 -0
- package/dist/esm/claude-cli/services/coding-run-write-register.companion.service.js +192 -0
- package/dist/esm/claude-cli/services/coding-run-write-register.companion.service.js.map +1 -0
- package/dist/esm/claude-cli/services/git-change-set.companion.service.d.ts +215 -7
- 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 +532 -60
- 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 +20 -0
- package/dist/esm/claude-cli/services/in-flight-coding-runs.companion.d.ts.map +1 -0
- package/dist/esm/claude-cli/services/in-flight-coding-runs.companion.js +29 -0
- package/dist/esm/claude-cli/services/in-flight-coding-runs.companion.js.map +1 -0
- package/dist/esm/claude-cli/services/research-agent-dispatch.companion.service.d.ts +38 -6
- 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 +156 -12
- 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 +5 -4
- 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 +13 -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-raw-feature-id-literals.companion.d.ts.map +1 -1
- package/dist/esm/code-compliance-check/check-raw-feature-id-literals.companion.js +8 -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 +408 -140
- package/dist/esm/companion-api/companion-api.schemas.d.ts.map +1 -1
- package/dist/esm/companion-api/companion-api.schemas.js +72 -7
- package/dist/esm/companion-api/companion-api.schemas.js.map +1 -1
- package/dist/esm/companion-api/companion-error-guidance.models.d.ts +25 -0
- package/dist/esm/companion-api/companion-error-guidance.models.d.ts.map +1 -0
- package/dist/esm/companion-api/companion-error-guidance.models.js +26 -0
- package/dist/esm/companion-api/companion-error-guidance.models.js.map +1 -0
- package/dist/esm/companion-api/controllers/companion-file-route-confinement.d.ts +44 -0
- package/dist/esm/companion-api/controllers/companion-file-route-confinement.d.ts.map +1 -0
- package/dist/esm/companion-api/controllers/companion-file-route-confinement.js +111 -0
- package/dist/esm/companion-api/controllers/companion-file-route-confinement.js.map +1 -0
- package/dist/esm/companion-api/controllers/companion-i18n-api-contract.utils.d.ts.map +1 -1
- package/dist/esm/companion-api/controllers/companion-token-floor.policy.d.ts +6 -14
- 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 +20 -17
- 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 +12 -0
- package/dist/esm/companion-api/controllers/companion-trace-exemptions.d.ts.map +1 -0
- package/dist/esm/companion-api/controllers/companion-trace-exemptions.js +20 -0
- package/dist/esm/companion-api/controllers/companion-trace-exemptions.js.map +1 -0
- package/dist/esm/companion-api/controllers/companion.controller.d.ts +268 -21
- package/dist/esm/companion-api/controllers/companion.controller.d.ts.map +1 -1
- package/dist/esm/companion-api/controllers/companion.controller.js +998 -171
- package/dist/esm/companion-api/controllers/companion.controller.js.map +1 -1
- package/dist/esm/core/auth/companion-auth-floor.companion.service.d.ts +39 -4
- 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 +39 -4
- 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.models.d.ts.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-rating-catalog-context.factory.d.ts.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/blog-posting-catalog-context.factory.d.ts.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/faq-page-catalog-context.factory.d.ts.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/organization-catalog-context.factory.d.ts.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/review-catalog-context.factory.d.ts.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/website-catalog-context.factory.d.ts.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 +6 -38
- 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 +54 -0
- package/dist/esm/core/config/application-schema-plan-obligation.companion.utils.d.ts.map +1 -0
- package/dist/esm/core/config/application-schema-plan-obligation.companion.utils.js +78 -0
- package/dist/esm/core/config/application-schema-plan-obligation.companion.utils.js.map +1 -0
- package/dist/esm/core/config/primary-language.companion.utils.d.ts +26 -0
- package/dist/esm/core/config/primary-language.companion.utils.d.ts.map +1 -1
- package/dist/esm/core/config/primary-language.companion.utils.js +31 -0
- package/dist/esm/core/config/primary-language.companion.utils.js.map +1 -1
- package/dist/esm/core/context/companion-context.d.ts.map +1 -1
- package/dist/esm/core/context/companion-context.js +4 -0
- package/dist/esm/core/context/companion-context.js.map +1 -1
- package/dist/esm/core/context/companion-package-loaders.companion.d.ts +57 -0
- package/dist/esm/core/context/companion-package-loaders.companion.d.ts.map +1 -1
- package/dist/esm/core/context/companion-package-loaders.companion.js +179 -43
- package/dist/esm/core/context/companion-package-loaders.companion.js.map +1 -1
- package/dist/esm/core/context/draft-family-values.companion.d.ts +23 -0
- package/dist/esm/core/context/draft-family-values.companion.d.ts.map +1 -0
- package/dist/esm/core/context/draft-family-values.companion.js +49 -0
- package/dist/esm/core/context/draft-family-values.companion.js.map +1 -0
- package/dist/esm/core/inject/models/container.d.ts.map +1 -1
- package/dist/esm/core/inject/models/container.js +32 -4
- package/dist/esm/core/inject/models/container.js.map +1 -1
- package/dist/esm/core/inject/models/service-types.d.ts +16 -2
- package/dist/esm/core/inject/models/service-types.d.ts.map +1 -1
- package/dist/esm/core/inject/models/service-types.js +18 -2
- 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 +90 -2
- 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 +37 -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 +61 -0
- package/dist/esm/core/introspection/models/companion-introspection.models.js.map +1 -1
- package/dist/esm/core/introspection/resources/application-secrets.companion.d.ts +41 -0
- package/dist/esm/core/introspection/resources/application-secrets.companion.d.ts.map +1 -0
- package/dist/esm/core/introspection/resources/application-secrets.companion.js +155 -0
- package/dist/esm/core/introspection/resources/application-secrets.companion.js.map +1 -0
- package/dist/esm/core/introspection/resources/creation-console-answer.companion.d.ts +76 -0
- package/dist/esm/core/introspection/resources/creation-console-answer.companion.d.ts.map +1 -0
- package/dist/esm/core/introspection/resources/creation-console-answer.companion.js +197 -0
- package/dist/esm/core/introspection/resources/creation-console-answer.companion.js.map +1 -0
- package/dist/esm/core/introspection/resources/creation-console-projection.companion.d.ts +47 -0
- package/dist/esm/core/introspection/resources/creation-console-projection.companion.d.ts.map +1 -0
- package/dist/esm/core/introspection/resources/creation-console-projection.companion.js +199 -0
- package/dist/esm/core/introspection/resources/creation-console-projection.companion.js.map +1 -0
- package/dist/esm/core/introspection/resources/creation-home-projection.companion.d.ts +93 -0
- package/dist/esm/core/introspection/resources/creation-home-projection.companion.d.ts.map +1 -0
- package/dist/esm/core/introspection/resources/creation-home-projection.companion.js +290 -0
- package/dist/esm/core/introspection/resources/creation-home-projection.companion.js.map +1 -0
- package/dist/esm/core/introspection/resources/creation-plane-dispatch.custom-impl.companion.service.d.ts +42 -0
- 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 +788 -23
- 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 +580 -17
- 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 +1678 -91
- 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 +80 -37
- 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 +181 -19
- 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 +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 +21 -15
- package/dist/esm/core/introspection/resources/introspection-resource-source.companion.service.js.map +1 -1
- 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.companion.service.d.ts +21 -0
- 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 +21 -3
- 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.map +1 -1
- package/dist/esm/core/introspection/services/introspection-derivation-state.companion.service.js +11 -3
- package/dist/esm/core/introspection/services/introspection-derivation-state.companion.service.js.map +1 -1
- package/dist/esm/core/introspection/services/introspection-source-state.companion.service.d.ts +15 -5
- 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 +28 -15
- 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 +24 -0
- 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 +29 -5
- 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/subprocess/app-shell-placement-content.behavior.d.ts +116 -0
- package/dist/esm/core/introspection/subprocess/app-shell-placement-content.behavior.d.ts.map +1 -0
- package/dist/esm/core/introspection/subprocess/app-shell-placement-content.behavior.js +223 -0
- package/dist/esm/core/introspection/subprocess/app-shell-placement-content.behavior.js.map +1 -0
- package/dist/esm/core/introspection/subprocess/application-domain-model.behavior.d.ts +11 -6
- 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 +2 -1
- package/dist/esm/core/introspection/subprocess/assertions.behavior.d.ts.map +1 -1
- package/dist/esm/core/introspection/subprocess/assertions.behavior.js.map +1 -1
- package/dist/esm/core/introspection/subprocess/asset-noop-hooks.d.ts +4 -0
- 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/brand-prompt-renderer.d.ts.map +1 -1
- package/dist/esm/core/introspection/subprocess/chart-registration-refs.behavior.d.ts.map +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 +153 -52
- 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-module-exports.utils.d.ts.map +1 -1
- package/dist/esm/core/introspection/subprocess/compliance-primary-facts.behavior.d.ts +45 -3
- 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 +8 -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/engine-resource-population.subprocess.utils.d.ts +33 -0
- package/dist/esm/core/introspection/subprocess/engine-resource-population.subprocess.utils.d.ts.map +1 -0
- package/dist/esm/core/introspection/subprocess/engine-resource-population.subprocess.utils.js +59 -0
- package/dist/esm/core/introspection/subprocess/engine-resource-population.subprocess.utils.js.map +1 -0
- package/dist/esm/core/introspection/subprocess/expert-persona-brief.renderer.d.ts.map +1 -1
- package/dist/esm/core/introspection/subprocess/family-aspects.behavior.d.ts +33 -0
- package/dist/esm/core/introspection/subprocess/family-aspects.behavior.d.ts.map +1 -1
- package/dist/esm/core/introspection/subprocess/family-aspects.behavior.js +46 -140
- 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 +18 -2
- 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 +147 -48
- 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-prompt-renderer.d.ts.map +1 -1
- package/dist/esm/core/introspection/subprocess/openapi-generation-input.behavior.d.ts +54 -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 +242 -28
- 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 +79 -0
- package/dist/esm/core/introspection/subprocess/risk-signals.behavior.d.ts.map +1 -0
- package/dist/esm/core/introspection/subprocess/risk-signals.behavior.js +49 -0
- package/dist/esm/core/introspection/subprocess/risk-signals.behavior.js.map +1 -0
- package/dist/esm/core/introspection/subprocess/specification-artifacts.behavior.d.ts +13 -0
- package/dist/esm/core/introspection/subprocess/specification-artifacts.behavior.d.ts.map +1 -1
- package/dist/esm/core/introspection/subprocess/specification-artifacts.behavior.js +334 -228
- package/dist/esm/core/introspection/subprocess/specification-artifacts.behavior.js.map +1 -1
- package/dist/esm/core/introspection/subprocess/specification-elements.behavior.d.ts +72 -0
- package/dist/esm/core/introspection/subprocess/specification-elements.behavior.d.ts.map +1 -0
- package/dist/esm/core/introspection/subprocess/specification-elements.behavior.js +123 -0
- package/dist/esm/core/introspection/subprocess/specification-elements.behavior.js.map +1 -0
- package/dist/esm/core/introspection/workspace-element-index.companion.d.ts +184 -0
- package/dist/esm/core/introspection/workspace-element-index.companion.d.ts.map +1 -0
- package/dist/esm/core/introspection/workspace-element-index.companion.js +311 -0
- package/dist/esm/core/introspection/workspace-element-index.companion.js.map +1 -0
- package/dist/esm/core/introspection/workspace-elements.companion.d.ts +54 -0
- package/dist/esm/core/introspection/workspace-elements.companion.d.ts.map +1 -0
- package/dist/esm/core/introspection/workspace-elements.companion.js +43 -0
- package/dist/esm/core/introspection/workspace-elements.companion.js.map +1 -0
- 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 +7 -0
- 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 +7 -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 +1 -0
- package/dist/esm/core/lock/wildo-saas-lock.schemas.js.map +1 -1
- package/dist/esm/core/runtime/application-runtime-liveness.companion.d.ts +31 -0
- package/dist/esm/core/runtime/application-runtime-liveness.companion.d.ts.map +1 -0
- package/dist/esm/core/runtime/application-runtime-liveness.companion.js +53 -0
- package/dist/esm/core/runtime/application-runtime-liveness.companion.js.map +1 -0
- package/dist/esm/core/runtime/companion-endpoint-record.d.ts +8 -0
- package/dist/esm/core/runtime/companion-endpoint-record.d.ts.map +1 -0
- package/dist/esm/core/runtime/companion-endpoint-record.js +23 -0
- package/dist/esm/core/runtime/companion-endpoint-record.js.map +1 -0
- package/dist/esm/core/runtime/companion-env-file.d.ts +30 -0
- package/dist/esm/core/runtime/companion-env-file.d.ts.map +1 -0
- package/dist/esm/core/runtime/companion-env-file.js +53 -0
- package/dist/esm/core/runtime/companion-env-file.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 +30 -1
- package/dist/esm/core/runtime/companion-startup-assembly.js.map +1 -1
- package/dist/esm/core/runtime/dev-compile-quiet.companion.d.ts +5 -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 +11 -0
- package/dist/esm/core/runtime/dev-compile-quiet.companion.js.map +1 -1
- package/dist/esm/core/runtime/in-flight-work-heartbeat.companion.d.ts +56 -0
- package/dist/esm/core/runtime/in-flight-work-heartbeat.companion.d.ts.map +1 -0
- package/dist/esm/core/runtime/in-flight-work-heartbeat.companion.js +97 -0
- package/dist/esm/core/runtime/in-flight-work-heartbeat.companion.js.map +1 -0
- package/dist/esm/core/runtime/models/companion-runtime.models.d.ts.map +1 -1
- package/dist/esm/core/runtime/services/file-storage-initialization.companion.d.ts +54 -0
- package/dist/esm/core/runtime/services/file-storage-initialization.companion.d.ts.map +1 -0
- package/dist/esm/core/runtime/services/file-storage-initialization.companion.js +54 -0
- package/dist/esm/core/runtime/services/file-storage-initialization.companion.js.map +1 -0
- package/dist/esm/core/runtime/services/start-companion-application.service.d.ts +51 -2
- 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 +290 -34
- 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-platform-config.companion.d.ts +14 -4
- 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 +69 -28
- 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/platform-core-domain-modules.companion.d.ts.map +1 -1
- package/dist/esm/core/specifications/chart-view-specification-context.factory.d.ts.map +1 -1
- package/dist/esm/core/specifications/composite-view-specification-context.factory.d.ts.map +1 -1
- package/dist/esm/core/specifications/cross-registry-rendering.shared.d.ts +0 -4
- package/dist/esm/core/specifications/cross-registry-rendering.shared.d.ts.map +1 -1
- package/dist/esm/core/specifications/cross-registry-rendering.shared.js +0 -4
- 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/feature-specification-context.factory.d.ts.map +1 -1
- package/dist/esm/core/specifications/flows-actors-view-specification-context.factory.d.ts.map +1 -1
- package/dist/esm/core/specifications/frontend-component-specification-context.factory.d.ts.map +1 -1
- package/dist/esm/core/specifications/full-custom-view-specification-context.factory.d.ts.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/non-composite-view-specification-context.shared.d.ts.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 +6 -34
- 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/resource-specification-context.factory.d.ts.map +1 -1
- package/dist/esm/core/specifications/resource-specification-context.factory.js +12 -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/specification-context-factory.d.ts.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.shared.d.ts.map +1 -1
- package/dist/esm/core/specifications/system-email-template-specification-context.factory.d.ts.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-custom-implementation-context.template.d.ts.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-translation-context.template.d.ts.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-custom-implementation-context.template.d.ts.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-translation-context.template.d.ts.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-custom-implementation-context.template.d.ts.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-translation-context.template.d.ts.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-custom-implementation-context.template.d.ts.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-translation-context.template.d.ts.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-custom-implementation-context.template.d.ts.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-translation-context.template.d.ts.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-custom-implementation-context.template.d.ts.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-translation-context.template.d.ts.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-custom-implementation-context.template.d.ts.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-translation-context.template.d.ts.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-custom-implementation-context.template.d.ts.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-translation-context.template.d.ts.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-custom-implementation-context.template.d.ts.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-translation-context.template.d.ts.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-custom-implementation-context.template.d.ts.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-translation-context.template.d.ts.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-custom-implementation-context.template.d.ts.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-translation-context.template.d.ts.map +1 -1
- package/dist/esm/core/specifications/validate-resource-field-completeness.d.ts.map +1 -1
- package/dist/esm/core/traceability/companion-agent-call-trace-sink.companion.service.d.ts +4 -2
- 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 +12 -2
- 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 +1 -7
- package/dist/esm/core/traceability/companion-traceability.models.d.ts.map +1 -1
- package/dist/esm/core/traceability/companion-traceability.models.js +3 -5
- package/dist/esm/core/traceability/companion-traceability.models.js.map +1 -1
- package/dist/esm/core/traceability/companion-traceability.service.d.ts +21 -1
- package/dist/esm/core/traceability/companion-traceability.service.d.ts.map +1 -1
- package/dist/esm/core/traceability/companion-traceability.service.js +25 -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/derived-input-signature.companion.utils.d.ts +45 -0
- package/dist/esm/core/utils/derived-input-signature.companion.utils.d.ts.map +1 -0
- package/dist/esm/core/utils/derived-input-signature.companion.utils.js +96 -0
- package/dist/esm/core/utils/derived-input-signature.companion.utils.js.map +1 -0
- package/dist/esm/creation-conversation/creation-conversation.actors-system.definitions.d.ts +35 -0
- package/dist/esm/creation-conversation/creation-conversation.actors-system.definitions.d.ts.map +1 -0
- package/dist/esm/creation-conversation/creation-conversation.actors-system.definitions.js +119 -0
- package/dist/esm/creation-conversation/creation-conversation.actors-system.definitions.js.map +1 -0
- package/dist/esm/creation-conversation/creation-conversation.function-tools.d.ts +11 -0
- package/dist/esm/creation-conversation/creation-conversation.function-tools.d.ts.map +1 -0
- package/dist/esm/creation-conversation/creation-conversation.function-tools.js +481 -0
- package/dist/esm/creation-conversation/creation-conversation.function-tools.js.map +1 -0
- 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 +0 -2
- package/dist/esm/deliberations/models/deliberation-agents.actors-system.definitions.js.map +1 -1
- package/dist/esm/deliberations/services/deliberation.companion.service.d.ts +19 -1
- package/dist/esm/deliberations/services/deliberation.companion.service.d.ts.map +1 -1
- package/dist/esm/deliberations/services/deliberation.companion.service.js +63 -6
- package/dist/esm/deliberations/services/deliberation.companion.service.js.map +1 -1
- package/dist/esm/deliberations/services/structured-deliberation.companion.service.d.ts +3 -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 +7 -2
- package/dist/esm/deliberations/services/structured-deliberation.companion.service.js.map +1 -1
- package/dist/esm/deliberations/utils/load-committed-expert-agents.d.ts.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 +0 -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 +35 -3
- package/dist/esm/email/services/email-template.companion.service.d.ts.map +1 -1
- package/dist/esm/email/services/email-template.companion.service.js +145 -296
- 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 +12 -0
- 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 +62 -3
- 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 +52 -0
- package/dist/esm/email/utils/email-labels-tree.utils.d.ts.map +1 -0
- package/dist/esm/email/utils/email-labels-tree.utils.js +261 -0
- package/dist/esm/email/utils/email-labels-tree.utils.js.map +1 -0
- package/dist/esm/email/utils/email-template-fs-discovery.utils.d.ts.map +1 -1
- package/dist/esm/executions/services/companion-actor-execution-persistence.adapter.d.ts +36 -0
- package/dist/esm/executions/services/companion-actor-execution-persistence.adapter.d.ts.map +1 -0
- package/dist/esm/executions/services/companion-actor-execution-persistence.adapter.js +150 -0
- package/dist/esm/executions/services/companion-actor-execution-persistence.adapter.js.map +1 -0
- package/dist/esm/executions/services/companion-executions.companion.service.d.ts +54 -4
- package/dist/esm/executions/services/companion-executions.companion.service.d.ts.map +1 -1
- package/dist/esm/executions/services/companion-executions.companion.service.js +321 -49
- 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 +0 -1
- 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 +0 -1
- 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.map +1 -1
- package/dist/esm/expert-personas/services/expert-persona.companion.service.d.ts +5 -0
- 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 +68 -8
- 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 +8 -0
- package/dist/esm/expert-personas/services/persona-source-ownership.d.ts.map +1 -0
- package/dist/esm/expert-personas/services/persona-source-ownership.js +83 -0
- package/dist/esm/expert-personas/services/persona-source-ownership.js.map +1 -0
- package/dist/esm/i18n/components/APPLICATION_LEVEL_ACTIVITY_BAR.en.d.ts +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 +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 +4 -4
- 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 +4 -4
- 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 +2 -2
- 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 +2 -2
- 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_NAVIGATION_BACK.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/APPLICATION_LEVEL_NOTIFICATION_CENTER.en.d.ts +5 -10
- 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 +6 -11
- 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 +2 -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 +2 -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 +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 +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 +6 -5
- package/dist/esm/i18n/components/APPLICATION_LEVEL_SIDEBAR.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/APPLICATION_LEVEL_SIDEBAR.en.js +7 -6
- 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 +3 -3
- 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 +3 -3
- 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_USER_DROPDOWN.en.d.ts +4 -2
- 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 +5 -3
- 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 +2 -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 +2 -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 +32 -0
- package/dist/esm/i18n/components/APP_LAYOUTS_AGENT_WORK_OVERRIDE_RATE_SETTINGS.en.d.ts.map +1 -0
- package/dist/esm/i18n/components/APP_LAYOUTS_AGENT_WORK_OVERRIDE_RATE_SETTINGS.en.js +32 -0
- package/dist/esm/i18n/components/APP_LAYOUTS_AGENT_WORK_OVERRIDE_RATE_SETTINGS.en.js.map +1 -0
- package/dist/esm/i18n/components/APP_LAYOUTS_APPEARANCE_SETTINGS.en.d.ts +0 -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 +0 -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 +0 -7
- 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 +0 -7
- 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 +69 -0
- package/dist/esm/i18n/components/APP_LAYOUTS_CONNECTED_ACCOUNTS_SETTINGS.en.d.ts.map +1 -0
- package/dist/esm/i18n/components/APP_LAYOUTS_CONNECTED_ACCOUNTS_SETTINGS.en.js +69 -0
- package/dist/esm/i18n/components/APP_LAYOUTS_CONNECTED_ACCOUNTS_SETTINGS.en.js.map +1 -0
- package/dist/esm/i18n/components/APP_LAYOUTS_CONSENT_GATE.en.d.ts +26 -0
- package/dist/esm/i18n/components/APP_LAYOUTS_CONSENT_GATE.en.d.ts.map +1 -0
- package/dist/esm/i18n/components/APP_LAYOUTS_CONSENT_GATE.en.js +26 -0
- package/dist/esm/i18n/components/APP_LAYOUTS_CONSENT_GATE.en.js.map +1 -0
- package/dist/esm/i18n/components/APP_LAYOUTS_DOCUMENT_ACCEPTANCE_GATE.en.d.ts +18 -0
- package/dist/esm/i18n/components/APP_LAYOUTS_DOCUMENT_ACCEPTANCE_GATE.en.d.ts.map +1 -0
- package/dist/esm/i18n/components/APP_LAYOUTS_DOCUMENT_ACCEPTANCE_GATE.en.js +18 -0
- package/dist/esm/i18n/components/APP_LAYOUTS_DOCUMENT_ACCEPTANCE_GATE.en.js.map +1 -0
- package/dist/esm/i18n/components/APP_LAYOUTS_ERROR_BOUNDARY.en.d.ts +3 -3
- 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 +3 -3
- 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 +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 +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 +1 -3
- 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 +1 -3
- 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 +8 -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 +8 -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 +10 -10
- 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 +10 -10
- 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 +21 -23
- 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 +21 -23
- 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 +1 -0
- 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 +2 -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 +17 -0
- package/dist/esm/i18n/components/APP_LAYOUTS_SURFACE_ERROR_BOUNDARY.en.d.ts.map +1 -0
- package/dist/esm/i18n/components/APP_LAYOUTS_SURFACE_ERROR_BOUNDARY.en.js +17 -0
- package/dist/esm/i18n/components/APP_LAYOUTS_SURFACE_ERROR_BOUNDARY.en.js.map +1 -0
- package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_CHART.en.d.ts +5 -5
- 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 +5 -5
- 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 +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 +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 +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 +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 +16 -2
- 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 +16 -2
- 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 +3 -3
- 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 +3 -3
- 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_AI_ACTOR.en.d.ts +8 -8
- 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 +8 -8
- 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 +14 -17
- 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 +14 -17
- 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 +54 -5
- 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 +55 -6
- 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 +2 -2
- 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 +2 -2
- 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 +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 +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_CODE_BLOCK.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_CONFIRMATION.en.d.ts +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 +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 +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 +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_DECISION.en.d.ts +2 -2
- 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 +2 -2
- 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 +21 -0
- package/dist/esm/i18n/components/LOW_LEVEL_AI_DIFF_BLOCK.en.d.ts.map +1 -0
- package/dist/esm/i18n/components/LOW_LEVEL_AI_DIFF_BLOCK.en.js +21 -0
- package/dist/esm/i18n/components/LOW_LEVEL_AI_DIFF_BLOCK.en.js.map +1 -0
- package/dist/esm/i18n/components/LOW_LEVEL_AI_EXECUTION_PLAN.en.d.ts +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 +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 +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 +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_NODE.en.d.ts.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_MESSAGE.en.d.ts +2 -2
- 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 +2 -2
- 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 +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 +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_PLAN.en.d.ts.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_SYSTEM_CATALOG.en.d.ts +4 -10
- 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 +4 -10
- 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 +4 -4
- 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 +4 -4
- 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 +2 -2
- 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 +2 -2
- 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 +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 +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 +1 -0
- 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 +2 -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 +28 -0
- package/dist/esm/i18n/components/LOW_LEVEL_BILLING_PLAN_CHANGE_PREVIEW.en.d.ts.map +1 -0
- package/dist/esm/i18n/components/LOW_LEVEL_BILLING_PLAN_CHANGE_PREVIEW.en.js +28 -0
- package/dist/esm/i18n/components/LOW_LEVEL_BILLING_PLAN_CHANGE_PREVIEW.en.js.map +1 -0
- package/dist/esm/i18n/components/LOW_LEVEL_BILLING_PORTAL_LINK.en.d.ts +1 -0
- 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 +2 -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 +10 -3
- 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 +11 -4
- 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 +3 -2
- 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 +4 -3
- 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 +4 -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 +5 -2
- 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_BUTTON.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_CAROUSEL.en.d.ts.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_COLOR_INPUT.en.d.ts +3 -3
- 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 +3 -3
- 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 +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 +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 +3 -3
- 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 +3 -3
- 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 +15 -0
- package/dist/esm/i18n/components/LOW_LEVEL_DATETIME_RANGE_PICKER.en.d.ts.map +1 -0
- package/dist/esm/i18n/components/LOW_LEVEL_DATETIME_RANGE_PICKER.en.js +15 -0
- package/dist/esm/i18n/components/LOW_LEVEL_DATETIME_RANGE_PICKER.en.js.map +1 -0
- package/dist/esm/i18n/components/LOW_LEVEL_DIALOG.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_ADDRESS.en.d.ts +12 -0
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_ADDRESS.en.d.ts.map +1 -0
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_ADDRESS.en.js +12 -0
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_ADDRESS.en.js.map +1 -0
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_BIGDECIMAL.en.d.ts +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 +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_CODE.en.d.ts +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 +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_FILE.en.d.ts +5 -3
- 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 +5 -3
- 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 +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 +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 +3 -0
- 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 +4 -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_IMAGE.en.d.ts +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 +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_MONEY.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_NUMBER.en.d.ts +12 -0
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_NUMBER.en.d.ts.map +1 -0
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_NUMBER.en.js +12 -0
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_NUMBER.en.js.map +1 -0
- package/dist/esm/i18n/components/LOW_LEVEL_DISPLAY_FIELD_PHONE.en.d.ts +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 +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 +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 +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 +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 +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 +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 +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 +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 +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 +22 -0
- package/dist/esm/i18n/components/LOW_LEVEL_DURATION.en.d.ts.map +1 -0
- package/dist/esm/i18n/components/LOW_LEVEL_DURATION.en.js +22 -0
- package/dist/esm/i18n/components/LOW_LEVEL_DURATION.en.js.map +1 -0
- package/dist/esm/i18n/components/LOW_LEVEL_ERROR_DISPLAY.en.d.ts +2 -2
- 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 +2 -2
- 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_UNAVAILABLE_PROMPT.en.d.ts +6 -6
- 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 +6 -6
- 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 +3 -3
- 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 +3 -3
- 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 +16 -8
- 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 +17 -9
- 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 +30 -0
- package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_ADDRESS.en.d.ts.map +1 -0
- package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_ADDRESS.en.js +30 -0
- package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_ADDRESS.en.js.map +1 -0
- 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_CODE.en.d.ts +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 +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 +47 -20
- 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 +47 -20
- 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_STRING.en.d.ts +3 -0
- 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 +4 -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 +5 -5
- 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 +5 -5
- 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_LOADING_OVERLAY.en.d.ts.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_OPERATIONS_CONFIRM_CRITICAL.en.d.ts +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 +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_PAGINATION.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_PASSWORD_INPUT.en.d.ts +13 -0
- package/dist/esm/i18n/components/LOW_LEVEL_PASSWORD_INPUT.en.d.ts.map +1 -0
- package/dist/esm/i18n/components/LOW_LEVEL_PASSWORD_INPUT.en.js +13 -0
- package/dist/esm/i18n/components/LOW_LEVEL_PASSWORD_INPUT.en.js.map +1 -0
- package/dist/esm/i18n/components/LOW_LEVEL_RANGE_SLIDER.en.d.ts +13 -0
- package/dist/esm/i18n/components/LOW_LEVEL_RANGE_SLIDER.en.d.ts.map +1 -0
- package/dist/esm/i18n/components/LOW_LEVEL_RANGE_SLIDER.en.js +13 -0
- package/dist/esm/i18n/components/LOW_LEVEL_RANGE_SLIDER.en.js.map +1 -0
- package/dist/esm/i18n/components/LOW_LEVEL_SELECT_MULTIPLE.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_SHEET.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_SIDEBAR.en.d.ts +3 -3
- package/dist/esm/i18n/components/LOW_LEVEL_SIDEBAR.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_SIDEBAR.en.js +3 -3
- 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 +15 -0
- package/dist/esm/i18n/components/LOW_LEVEL_TIME_RANGE_PICKER.en.d.ts.map +1 -0
- package/dist/esm/i18n/components/LOW_LEVEL_TIME_RANGE_PICKER.en.js +15 -0
- package/dist/esm/i18n/components/LOW_LEVEL_TIME_RANGE_PICKER.en.js.map +1 -0
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_AUTH_CALLBACK.en.d.ts +5 -3
- 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 +6 -4
- 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 +10 -9
- 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 +11 -10
- 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 +5 -5
- 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 +5 -5
- 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 +6 -6
- 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 +6 -6
- 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 +7 -7
- 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 +7 -7
- 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 +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 +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 +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 +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 +4 -4
- 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 +4 -4
- 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 +24 -0
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_ORGANIZATION_ONBOARDING.en.d.ts.map +1 -0
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_ORGANIZATION_ONBOARDING.en.js +24 -0
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_ORGANIZATION_ONBOARDING.en.js.map +1 -0
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_TERMS.en.d.ts +6 -4
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_TERMS.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_TERMS.en.js +6 -4
- 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 +14 -10
- 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 +14 -10
- 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 +6 -6
- 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 +6 -6
- 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 +11 -8
- 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 +12 -9
- 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 +9 -8
- 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 +9 -8
- 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 +25 -9
- 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 +25 -9
- 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 +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 +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 +2 -2
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_ACTION.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_ACTION.en.js +2 -2
- 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 +1 -0
- 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 +2 -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 +25 -24
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_CREATE.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_CREATE.en.js +26 -25
- 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 +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 +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 +3 -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 +4 -2
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_FILTERS.en.js.map +1 -1
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_HEADER.en.d.ts +2 -2
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_HEADER.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_HEADER.en.js +2 -2
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_HEADER.en.js.map +1 -1
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_LIST.en.d.ts +13 -12
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_LIST.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_LIST.en.js +13 -12
- 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 +7 -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 +7 -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 +13 -0
- 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 +14 -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_READ.en.d.ts +6 -6
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_READ.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_READ.en.js +6 -6
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_READ.en.js.map +1 -1
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_SEARCH.en.d.ts +2 -2
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_SEARCH.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_SEARCH.en.js +2 -2
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_SEARCH.en.js.map +1 -1
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_UPDATE.en.d.ts +2 -2
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_UPDATE.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_UPDATE.en.js +2 -2
- 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_banner.en.d.ts +1 -1
- package/dist/esm/i18n/components/guidance_banner.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/guidance_banner.en.js +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_checklist.en.d.ts +2 -2
- package/dist/esm/i18n/components/guidance_checklist.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/guidance_checklist.en.js +2 -2
- package/dist/esm/i18n/components/guidance_checklist.en.js.map +1 -1
- package/dist/esm/i18n/components/guidance_checklist_item.en.d.ts +1 -0
- package/dist/esm/i18n/components/guidance_checklist_item.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/guidance_checklist_item.en.js +2 -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_onboarding_view.en.d.ts +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 +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 +1 -0
- package/dist/esm/i18n/components/guidance_survey.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/guidance_survey.en.js +2 -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_tour.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/progression_achievement_badge.en.d.ts +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 +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 +5 -3
- package/dist/esm/i18n/components/progression_milestone_tracker.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/progression_milestone_tracker.en.js +6 -4
- 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 +18 -0
- package/dist/esm/i18n/composite_views/app.creation-conversation.en.d.ts.map +1 -0
- package/dist/esm/i18n/composite_views/app.creation-conversation.en.js +356 -0
- package/dist/esm/i18n/composite_views/app.creation-conversation.en.js.map +1 -0
- package/dist/esm/i18n/composite_views/app.creation-dossier.en.d.ts +15 -0
- package/dist/esm/i18n/composite_views/app.creation-dossier.en.d.ts.map +1 -0
- package/dist/esm/i18n/composite_views/app.creation-dossier.en.js +70 -0
- package/dist/esm/i18n/composite_views/app.creation-dossier.en.js.map +1 -0
- package/dist/esm/i18n/composite_views/app.domain-model.en.d.ts.map +1 -1
- package/dist/esm/i18n/errors_guidance/errors-guidance.en.d.ts +25 -0
- package/dist/esm/i18n/errors_guidance/errors-guidance.en.d.ts.map +1 -0
- package/dist/esm/i18n/errors_guidance/errors-guidance.en.js +26 -0
- package/dist/esm/i18n/errors_guidance/errors-guidance.en.js.map +1 -0
- package/dist/esm/i18n/errors_messages/errors-messages.en.d.ts +119 -0
- package/dist/esm/i18n/errors_messages/errors-messages.en.d.ts.map +1 -0
- package/dist/esm/i18n/errors_messages/errors-messages.en.js +76 -0
- package/dist/esm/i18n/errors_messages/errors-messages.en.js.map +1 -0
- package/dist/esm/i18n/index.d.ts +10 -8
- package/dist/esm/i18n/index.d.ts.map +1 -1
- package/dist/esm/i18n/index.js +10 -8
- package/dist/esm/i18n/index.js.map +1 -1
- package/dist/esm/i18n/resources/wildoApplicationActorSystemExecutions.en.d.ts +2024 -1
- package/dist/esm/i18n/resources/wildoApplicationActorSystemExecutions.en.d.ts.map +1 -1
- package/dist/esm/i18n/resources/wildoApplicationActorSystemExecutions.en.js +518 -0
- package/dist/esm/i18n/resources/wildoApplicationActorSystemExecutions.en.js.map +1 -1
- package/dist/esm/i18n/resources/wildoApplicationActorTasks.en.d.ts +878 -8
- package/dist/esm/i18n/resources/wildoApplicationActorTasks.en.d.ts.map +1 -1
- package/dist/esm/i18n/resources/wildoApplicationActorTasks.en.js +247 -0
- package/dist/esm/i18n/resources/wildoApplicationActorTasks.en.js.map +1 -1
- package/dist/esm/i18n/resources/wildoApplicationFlowSystemExecutions.en.d.ts +504 -1
- package/dist/esm/i18n/resources/wildoApplicationFlowSystemExecutions.en.d.ts.map +1 -1
- package/dist/esm/i18n/resources/wildoApplicationFlowSystemExecutions.en.js +153 -0
- package/dist/esm/i18n/resources/wildoApplicationFlowSystemExecutions.en.js.map +1 -1
- package/dist/esm/i18n/resources/workbenchApplicationSecrets.en.d.ts +97 -0
- package/dist/esm/i18n/resources/workbenchApplicationSecrets.en.d.ts.map +1 -0
- package/dist/esm/i18n/resources/workbenchApplicationSecrets.en.js +60 -0
- package/dist/esm/i18n/resources/workbenchApplicationSecrets.en.js.map +1 -0
- package/dist/esm/i18n/resources/workbenchAspects.en.d.ts +78 -0
- package/dist/esm/i18n/resources/workbenchAspects.en.d.ts.map +1 -0
- package/dist/esm/i18n/resources/workbenchAspects.en.js +261 -0
- package/dist/esm/i18n/resources/workbenchAspects.en.js.map +1 -0
- package/dist/esm/i18n/resources/workbenchBuildDispatchPlan.en.d.ts +149 -0
- package/dist/esm/i18n/resources/workbenchBuildDispatchPlan.en.d.ts.map +1 -0
- package/dist/esm/i18n/resources/workbenchBuildDispatchPlan.en.js +79 -0
- package/dist/esm/i18n/resources/workbenchBuildDispatchPlan.en.js.map +1 -0
- package/dist/esm/i18n/resources/workbenchBuildDispatches.en.d.ts +94 -0
- package/dist/esm/i18n/resources/workbenchBuildDispatches.en.d.ts.map +1 -0
- package/dist/esm/i18n/resources/workbenchBuildDispatches.en.js +75 -0
- package/dist/esm/i18n/resources/workbenchBuildDispatches.en.js.map +1 -0
- package/dist/esm/i18n/resources/workbenchBuildPlanTasks.en.d.ts +70 -5
- package/dist/esm/i18n/resources/workbenchBuildPlanTasks.en.d.ts.map +1 -1
- package/dist/esm/i18n/resources/workbenchBuildPlanTasks.en.js +67 -0
- package/dist/esm/i18n/resources/workbenchBuildPlanTasks.en.js.map +1 -1
- package/dist/esm/i18n/resources/workbenchCodingLaneStatus.en.d.ts +104 -0
- package/dist/esm/i18n/resources/workbenchCodingLaneStatus.en.d.ts.map +1 -0
- package/dist/esm/i18n/resources/workbenchCodingLaneStatus.en.js +58 -0
- package/dist/esm/i18n/resources/workbenchCodingLaneStatus.en.js.map +1 -0
- package/dist/esm/i18n/resources/workbenchCreationHomeLines.en.d.ts +95 -0
- package/dist/esm/i18n/resources/workbenchCreationHomeLines.en.d.ts.map +1 -0
- package/dist/esm/i18n/resources/workbenchCreationHomeLines.en.js +54 -0
- package/dist/esm/i18n/resources/workbenchCreationHomeLines.en.js.map +1 -0
- package/dist/esm/i18n/resources/workbenchCreationOutcomes.en.d.ts +95 -0
- package/dist/esm/i18n/resources/workbenchCreationOutcomes.en.d.ts.map +1 -0
- package/dist/esm/i18n/resources/workbenchCreationOutcomes.en.js +51 -0
- package/dist/esm/i18n/resources/workbenchCreationOutcomes.en.js.map +1 -0
- package/dist/esm/i18n/resources/workbenchDomainResources.en.d.ts +1 -1
- package/dist/esm/i18n/resources/workbenchDomainResources.en.d.ts.map +1 -1
- package/dist/esm/i18n/resources/workbenchDomainResources.en.js +2 -2
- package/dist/esm/i18n/resources/workbenchDomainResources.en.js.map +1 -1
- package/dist/esm/i18n/resources/workbenchDossierEntries.en.d.ts +138 -0
- package/dist/esm/i18n/resources/workbenchDossierEntries.en.d.ts.map +1 -0
- package/dist/esm/i18n/resources/workbenchDossierEntries.en.js +70 -0
- package/dist/esm/i18n/resources/workbenchDossierEntries.en.js.map +1 -0
- package/dist/esm/i18n/resources/workbenchGovernanceDocuments.en.d.ts +112 -0
- package/dist/esm/i18n/resources/workbenchGovernanceDocuments.en.d.ts.map +1 -0
- package/dist/esm/i18n/resources/workbenchGovernanceDocuments.en.js +115 -0
- package/dist/esm/i18n/resources/workbenchGovernanceDocuments.en.js.map +1 -0
- package/dist/esm/i18n/resources/workbenchGovernanceQuestions.en.d.ts +121 -0
- package/dist/esm/i18n/resources/workbenchGovernanceQuestions.en.d.ts.map +1 -0
- package/dist/esm/i18n/resources/workbenchGovernanceQuestions.en.js +84 -0
- package/dist/esm/i18n/resources/workbenchGovernanceQuestions.en.js.map +1 -0
- package/dist/esm/i18n/resources/workbenchParkedCodingQuestions.en.d.ts +89 -0
- package/dist/esm/i18n/resources/workbenchParkedCodingQuestions.en.d.ts.map +1 -0
- package/dist/esm/i18n/resources/workbenchParkedCodingQuestions.en.js +75 -0
- package/dist/esm/i18n/resources/workbenchParkedCodingQuestions.en.js.map +1 -0
- package/dist/esm/i18n/resources/workbenchPlaybookRuns.en.d.ts +170 -0
- package/dist/esm/i18n/resources/workbenchPlaybookRuns.en.d.ts.map +1 -0
- package/dist/esm/i18n/resources/workbenchPlaybookRuns.en.js +113 -0
- package/dist/esm/i18n/resources/workbenchPlaybookRuns.en.js.map +1 -0
- package/dist/esm/i18n/resources/workbenchPlaybooks.en.d.ts +167 -6
- package/dist/esm/i18n/resources/workbenchPlaybooks.en.d.ts.map +1 -1
- package/dist/esm/i18n/resources/workbenchPlaybooks.en.js +113 -0
- package/dist/esm/i18n/resources/workbenchPlaybooks.en.js.map +1 -1
- package/dist/esm/i18n/resources/workbenchRunWriteRecords.en.d.ts +95 -4
- package/dist/esm/i18n/resources/workbenchRunWriteRecords.en.d.ts.map +1 -1
- package/dist/esm/i18n/resources/workbenchRunWriteRecords.en.js +85 -0
- package/dist/esm/i18n/resources/workbenchRunWriteRecords.en.js.map +1 -1
- package/dist/esm/i18n/resources/workbenchSpecificationArtifacts.en.d.ts +5174 -247
- package/dist/esm/i18n/resources/workbenchSpecificationArtifacts.en.d.ts.map +1 -1
- package/dist/esm/i18n/resources/workbenchSpecificationArtifacts.en.js +1238 -55
- package/dist/esm/i18n/resources/workbenchSpecificationArtifacts.en.js.map +1 -1
- package/dist/esm/i18n/resources/workbenchTraceSessions.en.d.ts +86 -3
- package/dist/esm/i18n/resources/workbenchTraceSessions.en.d.ts.map +1 -1
- package/dist/esm/i18n/resources/workbenchTraceSessions.en.js +90 -0
- package/dist/esm/i18n/resources/workbenchTraceSessions.en.js.map +1 -1
- package/dist/esm/i18n/resources/workbenchWaitingPlaybookRuns.en.d.ts +107 -0
- package/dist/esm/i18n/resources/workbenchWaitingPlaybookRuns.en.d.ts.map +1 -0
- package/dist/esm/i18n/resources/workbenchWaitingPlaybookRuns.en.js +91 -0
- package/dist/esm/i18n/resources/workbenchWaitingPlaybookRuns.en.js.map +1 -0
- package/dist/esm/i18n/system_enums/application-creation.en.d.ts +282 -0
- package/dist/esm/i18n/system_enums/application-creation.en.d.ts.map +1 -0
- package/dist/esm/i18n/system_enums/application-creation.en.js +330 -0
- package/dist/esm/i18n/system_enums/application-creation.en.js.map +1 -0
- package/dist/esm/i18n/system_enums/compliance-programme.en.d.ts +154 -0
- package/dist/esm/i18n/system_enums/compliance-programme.en.d.ts.map +1 -0
- package/dist/esm/i18n/system_enums/compliance-programme.en.js +154 -0
- package/dist/esm/i18n/system_enums/compliance-programme.en.js.map +1 -0
- package/dist/esm/i18n/system_enums/flows-actors.en.d.ts +54 -0
- package/dist/esm/i18n/system_enums/flows-actors.en.d.ts.map +1 -0
- package/dist/esm/i18n/system_enums/flows-actors.en.js +54 -0
- package/dist/esm/i18n/system_enums/flows-actors.en.js.map +1 -0
- package/dist/esm/i18n/system_enums/market.en.d.ts +12 -2
- package/dist/esm/i18n/system_enums/market.en.d.ts.map +1 -1
- package/dist/esm/i18n/system_enums/market.en.js +12 -2
- package/dist/esm/i18n/system_enums/market.en.js.map +1 -1
- package/dist/esm/i18n/system_enums/processor-register.en.d.ts +49 -0
- package/dist/esm/i18n/system_enums/processor-register.en.d.ts.map +1 -0
- package/dist/esm/i18n/system_enums/processor-register.en.js +49 -0
- package/dist/esm/i18n/system_enums/processor-register.en.js.map +1 -0
- package/dist/esm/i18n/system_enums/risk-register.en.d.ts +56 -0
- package/dist/esm/i18n/system_enums/risk-register.en.d.ts.map +1 -0
- package/dist/esm/i18n/system_enums/risk-register.en.js +56 -0
- package/dist/esm/i18n/system_enums/risk-register.en.js.map +1 -0
- package/dist/esm/i18n/system_enums/workbench-build.en.d.ts +50 -0
- package/dist/esm/i18n/system_enums/workbench-build.en.d.ts.map +1 -0
- package/dist/esm/i18n/system_enums/workbench-build.en.js +55 -0
- package/dist/esm/i18n/system_enums/workbench-build.en.js.map +1 -0
- package/dist/esm/i18n/system_enums/workbench-creation-home.en.d.ts +47 -0
- package/dist/esm/i18n/system_enums/workbench-creation-home.en.d.ts.map +1 -0
- package/dist/esm/i18n/system_enums/workbench-creation-home.en.js +48 -0
- package/dist/esm/i18n/system_enums/workbench-creation-home.en.js.map +1 -0
- package/dist/esm/i18n/system_enums/workbench-dossier.en.d.ts +21 -0
- package/dist/esm/i18n/system_enums/workbench-dossier.en.d.ts.map +1 -0
- package/dist/esm/i18n/system_enums/workbench-dossier.en.js +22 -0
- package/dist/esm/i18n/system_enums/workbench-dossier.en.js.map +1 -0
- package/dist/esm/i18n/system_enums/workbench-playbook-run.en.d.ts +29 -0
- package/dist/esm/i18n/system_enums/workbench-playbook-run.en.d.ts.map +1 -0
- package/dist/esm/i18n/system_enums/workbench-playbook-run.en.js +29 -0
- package/dist/esm/i18n/system_enums/workbench-playbook-run.en.js.map +1 -0
- package/dist/esm/i18n/system_enums/workbench-secrets.en.d.ts +46 -0
- package/dist/esm/i18n/system_enums/workbench-secrets.en.d.ts.map +1 -0
- package/dist/esm/i18n/system_enums/workbench-secrets.en.js +46 -0
- package/dist/esm/i18n/system_enums/workbench-secrets.en.js.map +1 -0
- package/dist/esm/i18n/system_enums/workbench-specification-artifact.en.d.ts +32 -0
- package/dist/esm/i18n/system_enums/workbench-specification-artifact.en.d.ts.map +1 -0
- package/dist/esm/i18n/system_enums/workbench-specification-artifact.en.js +37 -0
- package/dist/esm/i18n/system_enums/workbench-specification-artifact.en.js.map +1 -0
- package/dist/esm/i18n-labelling/models/email-template-labelling-unit.models.d.ts +61 -0
- package/dist/esm/i18n-labelling/models/email-template-labelling-unit.models.d.ts.map +1 -0
- package/dist/esm/i18n-labelling/models/email-template-labelling-unit.models.js +22 -0
- package/dist/esm/i18n-labelling/models/email-template-labelling-unit.models.js.map +1 -0
- package/dist/esm/i18n-labelling/models/labelling-unit.models.d.ts +134 -5
- package/dist/esm/i18n-labelling/models/labelling-unit.models.d.ts.map +1 -1
- package/dist/esm/i18n-labelling/models/labelling-unit.models.js +69 -4
- 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 +0 -2
- 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/email-template-labelling-units.companion.service.d.ts +48 -0
- package/dist/esm/i18n-labelling/services/email-template-labelling-units.companion.service.d.ts.map +1 -0
- package/dist/esm/i18n-labelling/services/email-template-labelling-units.companion.service.js +145 -0
- package/dist/esm/i18n-labelling/services/email-template-labelling-units.companion.service.js.map +1 -0
- package/dist/esm/i18n-labelling/services/labelling-planner.companion.service.d.ts +82 -20
- 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 +433 -89
- 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 +53 -8
- 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 +253 -45
- 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 +113 -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 +539 -16
- 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 +64 -1
- 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 +423 -71
- 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 +91 -0
- package/dist/esm/i18n-labelling/utils/application-tone-of-voice.utils.d.ts.map +1 -0
- package/dist/esm/i18n-labelling/utils/application-tone-of-voice.utils.js +149 -0
- package/dist/esm/i18n-labelling/utils/application-tone-of-voice.utils.js.map +1 -0
- package/dist/esm/i18n-labelling/utils/declared-refusal-codes.utils.d.ts +31 -0
- package/dist/esm/i18n-labelling/utils/declared-refusal-codes.utils.d.ts.map +1 -0
- package/dist/esm/i18n-labelling/utils/declared-refusal-codes.utils.js +44 -0
- package/dist/esm/i18n-labelling/utils/declared-refusal-codes.utils.js.map +1 -0
- package/dist/esm/i18n-labelling/utils/email-template-translation.utils.d.ts +54 -0
- package/dist/esm/i18n-labelling/utils/email-template-translation.utils.d.ts.map +1 -0
- package/dist/esm/i18n-labelling/utils/email-template-translation.utils.js +74 -0
- package/dist/esm/i18n-labelling/utils/email-template-translation.utils.js.map +1 -0
- package/dist/esm/i18n-labelling/utils/frontend-derived-label-keys.utils.d.ts +30 -3
- 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 +27 -0
- 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 +12 -0
- package/dist/esm/i18n-labelling/utils/guidance-keys.utils.d.ts.map +1 -1
- package/dist/esm/i18n-labelling/utils/guidance-keys.utils.js +58 -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 +24 -0
- package/dist/esm/i18n-labelling/utils/incomplete-plan-refusal.utils.d.ts.map +1 -0
- package/dist/esm/i18n-labelling/utils/incomplete-plan-refusal.utils.js +34 -0
- package/dist/esm/i18n-labelling/utils/incomplete-plan-refusal.utils.js.map +1 -0
- 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 +19 -0
- 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/orphan-label-artifacts.utils.d.ts.map +1 -1
- package/dist/esm/i18n-labelling/utils/orphan-label-artifacts.utils.js +5 -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.map +1 -1
- package/dist/esm/i18n-labelling/utils/per-unit-file.utils.js +10 -0
- 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 +76 -0
- package/dist/esm/i18n-labelling/utils/provider-display-name-keys.utils.d.ts.map +1 -0
- package/dist/esm/i18n-labelling/utils/provider-display-name-keys.utils.js +110 -0
- package/dist/esm/i18n-labelling/utils/provider-display-name-keys.utils.js.map +1 -0
- package/dist/esm/i18n-labelling/utils/resource-section-label-keys.utils.d.ts +17 -0
- package/dist/esm/i18n-labelling/utils/resource-section-label-keys.utils.d.ts.map +1 -0
- package/dist/esm/i18n-labelling/utils/resource-section-label-keys.utils.js +23 -0
- package/dist/esm/i18n-labelling/utils/resource-section-label-keys.utils.js.map +1 -0
- package/dist/esm/i18n-labelling/utils/role-lifecycle-keys.utils.d.ts.map +1 -1
- package/dist/esm/i18n-labelling/utils/schema-fields-extractor.utils.d.ts +63 -27
- 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 +251 -139
- package/dist/esm/i18n-labelling/utils/schema-fields-extractor.utils.js.map +1 -1
- package/dist/esm/i18n-labelling/utils/structured-chunk-completion.utils.d.ts +11 -0
- 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 +27 -3
- 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 +38 -0
- package/dist/esm/i18n-labelling/utils/system-of-record-display-name-keys.utils.d.ts.map +1 -0
- package/dist/esm/i18n-labelling/utils/system-of-record-display-name-keys.utils.js +66 -0
- package/dist/esm/i18n-labelling/utils/system-of-record-display-name-keys.utils.js.map +1 -0
- package/dist/esm/i18n-labelling/utils/translate-locale-contract.utils.d.ts.map +1 -1
- package/dist/esm/index.d.ts.map +1 -1
- package/dist/esm/index.js +9 -3
- 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/meta-workflows/models/application-build.actors-system.definitions.d.ts +29 -0
- package/dist/esm/meta-workflows/models/application-build.actors-system.definitions.d.ts.map +1 -0
- package/dist/esm/meta-workflows/models/application-build.actors-system.definitions.js +58 -0
- package/dist/esm/meta-workflows/models/application-build.actors-system.definitions.js.map +1 -0
- package/dist/esm/meta-workflows/models/application-coding-agent.actors-system.definitions.d.ts +35 -0
- 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 +69 -5
- 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 +11 -0
- package/dist/esm/meta-workflows/models/application-line-catalog.models.d.ts.map +1 -0
- package/dist/esm/meta-workflows/models/application-line-catalog.models.js +17 -0
- package/dist/esm/meta-workflows/models/application-line-catalog.models.js.map +1 -0
- 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 +6 -5
- 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 +1 -0
- 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 +22 -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 +46 -0
- package/dist/esm/meta-workflows/models/build-task-rearm.models.d.ts.map +1 -0
- package/dist/esm/meta-workflows/models/build-task-rearm.models.js +43 -0
- package/dist/esm/meta-workflows/models/build-task-rearm.models.js.map +1 -0
- package/dist/esm/meta-workflows/models/carried-verification-failure.models.d.ts +34 -0
- package/dist/esm/meta-workflows/models/carried-verification-failure.models.d.ts.map +1 -0
- package/dist/esm/meta-workflows/models/carried-verification-failure.models.js +59 -0
- package/dist/esm/meta-workflows/models/carried-verification-failure.models.js.map +1 -0
- package/dist/esm/meta-workflows/models/composite-round-relaunch.models.d.ts +79 -0
- package/dist/esm/meta-workflows/models/composite-round-relaunch.models.d.ts.map +1 -0
- package/dist/esm/meta-workflows/models/composite-round-relaunch.models.js +101 -0
- package/dist/esm/meta-workflows/models/composite-round-relaunch.models.js.map +1 -0
- package/dist/esm/meta-workflows/models/human-decision-settler.models.d.ts +14 -0
- package/dist/esm/meta-workflows/models/human-decision-settler.models.d.ts.map +1 -0
- package/dist/esm/meta-workflows/models/human-decision-settler.models.js +18 -0
- package/dist/esm/meta-workflows/models/human-decision-settler.models.js.map +1 -0
- package/dist/esm/meta-workflows/models/meta-workflows-lane.models.d.ts +83 -13
- 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 +101 -7
- 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 +28 -8
- 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 +227 -0
- package/dist/esm/meta-workflows/models/playbook-run-checkpoint.models.d.ts.map +1 -0
- package/dist/esm/meta-workflows/models/playbook-run-checkpoint.models.js +305 -0
- package/dist/esm/meta-workflows/models/playbook-run-checkpoint.models.js.map +1 -0
- package/dist/esm/meta-workflows/models/playbook-run-record.models.d.ts +401 -0
- package/dist/esm/meta-workflows/models/playbook-run-record.models.d.ts.map +1 -0
- package/dist/esm/meta-workflows/models/playbook-run-record.models.js +470 -0
- package/dist/esm/meta-workflows/models/playbook-run-record.models.js.map +1 -0
- package/dist/esm/meta-workflows/models/playbook-step-schema-namespaces.models.d.ts +14 -0
- package/dist/esm/meta-workflows/models/playbook-step-schema-namespaces.models.d.ts.map +1 -0
- package/dist/esm/meta-workflows/models/playbook-step-schema-namespaces.models.js +21 -0
- package/dist/esm/meta-workflows/models/playbook-step-schema-namespaces.models.js.map +1 -0
- package/dist/esm/meta-workflows/services/__tests__/application-build-task-coding.companion.test-fixtures.d.ts.map +1 -1
- package/dist/esm/meta-workflows/services/__tests__/application-build-task-coding.companion.test-fixtures.js +3 -1
- package/dist/esm/meta-workflows/services/__tests__/application-build-task-coding.companion.test-fixtures.js.map +1 -1
- package/dist/esm/meta-workflows/services/__tests__/support/in-memory-actor-plane.d.ts +79 -0
- package/dist/esm/meta-workflows/services/__tests__/support/in-memory-actor-plane.d.ts.map +1 -0
- package/dist/esm/meta-workflows/services/__tests__/support/in-memory-actor-plane.js +193 -0
- package/dist/esm/meta-workflows/services/__tests__/support/in-memory-actor-plane.js.map +1 -0
- package/dist/esm/meta-workflows/services/application-build-dispatch.companion.service.d.ts +969 -48
- 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 +2123 -150
- 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 +19 -0
- package/dist/esm/meta-workflows/services/application-build-experience-skills.companion.service.d.ts.map +1 -0
- package/dist/esm/meta-workflows/services/application-build-experience-skills.companion.service.js +36 -0
- package/dist/esm/meta-workflows/services/application-build-experience-skills.companion.service.js.map +1 -0
- package/dist/esm/meta-workflows/services/application-build-generation-step.companion.service.d.ts +124 -36
- 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 +305 -58
- 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 +442 -16
- 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 +1514 -69
- 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 +32 -0
- package/dist/esm/meta-workflows/services/application-build-website-context.companion.service.d.ts.map +1 -0
- package/dist/esm/meta-workflows/services/application-build-website-context.companion.service.js +161 -0
- package/dist/esm/meta-workflows/services/application-build-website-context.companion.service.js.map +1 -0
- package/dist/esm/meta-workflows/services/application-maturity-executor.companion.service.d.ts +47 -0
- package/dist/esm/meta-workflows/services/application-maturity-executor.companion.service.d.ts.map +1 -0
- package/dist/esm/meta-workflows/services/application-maturity-executor.companion.service.js +103 -0
- package/dist/esm/meta-workflows/services/application-maturity-executor.companion.service.js.map +1 -0
- package/dist/esm/meta-workflows/services/build-plan-authoring.companion.service.d.ts +31 -0
- package/dist/esm/meta-workflows/services/build-plan-authoring.companion.service.d.ts.map +1 -0
- package/dist/esm/meta-workflows/services/build-plan-authoring.companion.service.js +89 -0
- package/dist/esm/meta-workflows/services/build-plan-authoring.companion.service.js.map +1 -0
- package/dist/esm/meta-workflows/services/capability-composition-executor.companion.service.d.ts +48 -0
- package/dist/esm/meta-workflows/services/capability-composition-executor.companion.service.d.ts.map +1 -0
- package/dist/esm/meta-workflows/services/capability-composition-executor.companion.service.js +111 -0
- package/dist/esm/meta-workflows/services/capability-composition-executor.companion.service.js.map +1 -0
- package/dist/esm/meta-workflows/services/dossier.companion.service.d.ts +154 -0
- package/dist/esm/meta-workflows/services/dossier.companion.service.d.ts.map +1 -0
- package/dist/esm/meta-workflows/services/dossier.companion.service.js +428 -0
- package/dist/esm/meta-workflows/services/dossier.companion.service.js.map +1 -0
- package/dist/esm/meta-workflows/services/engine-settings-destination-catalog.companion.d.ts +36 -0
- package/dist/esm/meta-workflows/services/engine-settings-destination-catalog.companion.d.ts.map +1 -0
- package/dist/esm/meta-workflows/services/engine-settings-destination-catalog.companion.js +72 -0
- package/dist/esm/meta-workflows/services/engine-settings-destination-catalog.companion.js.map +1 -0
- package/dist/esm/meta-workflows/services/execution-trace-read.companion.service.d.ts +82 -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 +200 -31
- 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 +16 -0
- package/dist/esm/meta-workflows/services/external-authentication-brief.companion.utils.d.ts.map +1 -0
- package/dist/esm/meta-workflows/services/external-authentication-brief.companion.utils.js +29 -0
- package/dist/esm/meta-workflows/services/external-authentication-brief.companion.utils.js.map +1 -0
- package/dist/esm/meta-workflows/services/foundation-executor.companion.service.d.ts +225 -3
- 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 +445 -12
- 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 +40 -0
- package/dist/esm/meta-workflows/services/governed-document-texts.companion.d.ts.map +1 -0
- package/dist/esm/meta-workflows/services/governed-document-texts.companion.js +91 -0
- package/dist/esm/meta-workflows/services/governed-document-texts.companion.js.map +1 -0
- package/dist/esm/meta-workflows/services/governed-documents-pdf.companion.d.ts +25 -0
- package/dist/esm/meta-workflows/services/governed-documents-pdf.companion.d.ts.map +1 -0
- package/dist/esm/meta-workflows/services/governed-documents-pdf.companion.js +40 -0
- package/dist/esm/meta-workflows/services/governed-documents-pdf.companion.js.map +1 -0
- package/dist/esm/meta-workflows/services/landed-module-import.companion.d.ts +2 -0
- package/dist/esm/meta-workflows/services/landed-module-import.companion.d.ts.map +1 -0
- package/dist/esm/meta-workflows/services/landed-module-import.companion.js +36 -0
- package/dist/esm/meta-workflows/services/landed-module-import.companion.js.map +1 -0
- package/dist/esm/meta-workflows/services/playbook-execution-trace.companion.service.d.ts.map +1 -1
- package/dist/esm/meta-workflows/services/playbook-instance.companion.service.d.ts +90 -0
- package/dist/esm/meta-workflows/services/playbook-instance.companion.service.d.ts.map +1 -0
- package/dist/esm/meta-workflows/services/playbook-instance.companion.service.js +307 -0
- package/dist/esm/meta-workflows/services/playbook-instance.companion.service.js.map +1 -0
- package/dist/esm/meta-workflows/services/playbook-run-write-register.companion.service.d.ts +86 -0
- 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 +126 -6
- 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 +1278 -193
- 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 +4375 -500
- 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 +100 -0
- package/dist/esm/meta-workflows/services/playbook-spend-meter.companion.service.d.ts.map +1 -0
- package/dist/esm/meta-workflows/services/playbook-spend-meter.companion.service.js +156 -0
- package/dist/esm/meta-workflows/services/playbook-spend-meter.companion.service.js.map +1 -0
- package/dist/esm/meta-workflows/services/schema-plan-freshness-loop.companion.d.ts +49 -0
- package/dist/esm/meta-workflows/services/schema-plan-freshness-loop.companion.d.ts.map +1 -0
- package/dist/esm/meta-workflows/services/schema-plan-freshness-loop.companion.js +93 -0
- package/dist/esm/meta-workflows/services/schema-plan-freshness-loop.companion.js.map +1 -0
- package/dist/esm/meta-workflows/utils/unified-diff.companion.utils.d.ts +45 -0
- package/dist/esm/meta-workflows/utils/unified-diff.companion.utils.d.ts.map +1 -0
- package/dist/esm/meta-workflows/utils/unified-diff.companion.utils.js +145 -0
- package/dist/esm/meta-workflows/utils/unified-diff.companion.utils.js.map +1 -0
- package/dist/esm/technical-doc/services/technical-doc.companion.service.d.ts +33 -9
- 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 +70 -29
- 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 +20 -5
- 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 +38 -16
- 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-pilot-assets.companion.service.d.ts.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 +18 -18
- package/dist/esm/i18n/composite_views/app.creation-board.en.d.ts +0 -13
- package/dist/esm/i18n/composite_views/app.creation-board.en.d.ts.map +0 -1
- package/dist/esm/i18n/composite_views/app.creation-board.en.js +0 -91
- package/dist/esm/i18n/composite_views/app.creation-board.en.js.map +0 -1
- package/dist/esm/meta-workflows/services/playbook-choreography-checkpoint.companion.service.d.ts +0 -92
- package/dist/esm/meta-workflows/services/playbook-choreography-checkpoint.companion.service.d.ts.map +0 -1
- package/dist/esm/meta-workflows/services/playbook-choreography-checkpoint.companion.service.js +0 -178
- package/dist/esm/meta-workflows/services/playbook-choreography-checkpoint.companion.service.js.map +0 -1
- package/dist/esm/meta-workflows/services/playbook-suspended-run.companion.service.d.ts +0 -107
- package/dist/esm/meta-workflows/services/playbook-suspended-run.companion.service.d.ts.map +0 -1
- package/dist/esm/meta-workflows/services/playbook-suspended-run.companion.service.js +0 -188
- package/dist/esm/meta-workflows/services/playbook-suspended-run.companion.service.js.map +0 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Application coding-task host — the typed Flows/Actors coding path.
|
|
3
3
|
*
|
|
4
|
-
* `runApplicationCodingTask` admits one typed `
|
|
4
|
+
* `runApplicationCodingTask` admits one typed `MetaWorkflow_ApplicationCodingTaskContract`
|
|
5
5
|
* (the episode runtime's coding revision owner is the caller), renders its
|
|
6
6
|
* prompt from the sealed contract, creates an `Actors_Task` row, spawns the
|
|
7
7
|
* Claude CLI in the background against the application worktree, captures
|
|
@@ -21,6 +21,12 @@
|
|
|
21
21
|
* the CLI mutates the same worktree from other processes). An in-memory
|
|
22
22
|
* flag fronts the lock for fast 409s. The lock is held for the WHOLE run.
|
|
23
23
|
*
|
|
24
|
+
* That is the SINGLE-FLIGHT mode. A CONCURRENT run (#1528, a parallel build
|
|
25
|
+
* wave) holds no lock and takes it only around its commit, so the lock is
|
|
26
|
+
* no longer the signal that "a coding agent is running" — the
|
|
27
|
+
* `coding-run.heartbeat` beaten from the active-run set is (see
|
|
28
|
+
* `CODING_RUN_HEARTBEAT_RELATIVE_PATH`).
|
|
29
|
+
*
|
|
24
30
|
* The P-35 recursion cap falls out structurally: a dispatched run that
|
|
25
31
|
* calls dispatch (it has shell access and can read the machine-local
|
|
26
32
|
* token) always finds the lock held by ITS OWN run and is rejected 409 —
|
|
@@ -28,6 +34,29 @@
|
|
|
28
34
|
* gate Paul's parallel sessions (P-19b): CLAUDE.md forbids session
|
|
29
35
|
* coordination; per-file attribution is the compensation, not exclusion.
|
|
30
36
|
*
|
|
37
|
+
* ⚠️ **THE CAP IS A SIDE EFFECT OF THE LOCK BEING GLOBAL, AND #48 PROPOSES
|
|
38
|
+
* MAKING IT PER-SCOPE.** Admission by disjoint mutation scopes deletes this
|
|
39
|
+
* refusal silently: a recursing run asks for a task in ANOTHER module, is
|
|
40
|
+
* found disjoint, and is admitted. Nothing throws, nothing logs, and the
|
|
41
|
+
* first symptom is a fan-out nobody asked for — this repository's "a
|
|
42
|
+
* construct that refuses needs its paired path" lesson running BACKWARDS,
|
|
43
|
+
* with a refusal removed as a side effect, which is the harder direction to
|
|
44
|
+
* notice.
|
|
45
|
+
*
|
|
46
|
+
* So the cap must become an EXPLICIT guard in the same change: a run's own
|
|
47
|
+
* dispatch identity refused at admission regardless of scope disjointness.
|
|
48
|
+
* Note that identity is the hard part and is not solved here — the child's
|
|
49
|
+
* environment is composed by this service, but an HTTP request from the
|
|
50
|
+
* agent's shell carries none of it, and the machine-local token the agent
|
|
51
|
+
* reads is the same one an operator uses. Whoever scopes the lock owns
|
|
52
|
+
* finding that channel; do not assume it exists.
|
|
53
|
+
*
|
|
54
|
+
* It is TRIPWIRED rather than left to memory. The single-flight tests below
|
|
55
|
+
* dispatch the SAME scope twice, so they keep passing under scope-aware
|
|
56
|
+
* admission and would let the cap vanish green. `refuses a second dispatch
|
|
57
|
+
* whose mutation scope is DISJOINT — the P-35 recursion cap (#48)` varies
|
|
58
|
+
* the scope on purpose and goes red instead.
|
|
59
|
+
*
|
|
31
60
|
* # Traceability (P-21)
|
|
32
61
|
*
|
|
33
62
|
* L2 runs dispatch through `AgentsBackendService.invokeAgent`, so they DO
|
|
@@ -62,46 +91,162 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
62
91
|
var __param = (this && this.__param) || function (paramIndex, decorator) {
|
|
63
92
|
return function (target, key) { decorator(target, key, paramIndex); }
|
|
64
93
|
};
|
|
94
|
+
import { MetaWorkflow_ApplicationCodingTaskContractSchema, } from '@wildo-ai/saas-models/meta-workflows';
|
|
95
|
+
import { ApplicationSchemaPlanObligation, assessApplicationSchemaPlanObligation, } from '../../core/config/application-schema-plan-obligation.companion.utils.js';
|
|
65
96
|
import { isAbsolute, join, normalize, relative, sep, dirname } from 'node:path';
|
|
66
|
-
import { existsSync, realpathSync } from 'node:fs';
|
|
67
|
-
import {
|
|
68
|
-
import {
|
|
69
|
-
import {
|
|
70
|
-
import {
|
|
71
|
-
import {
|
|
97
|
+
import { existsSync, readFileSync, realpathSync } from 'node:fs';
|
|
98
|
+
import { appendFile, mkdir, writeFile } from 'node:fs/promises';
|
|
99
|
+
import { CODING_ANSWERS_FILE_NAME, CodingQuestionAnswerer, getFamilyPackageRelativePath, renderCodingQuestionAnswerEntry, renderCodingQuestionAnswersHeader, } from '@wildo-ai/application-creation-runtime';
|
|
100
|
+
import { ApplicationSpecificationFamily } from '@wildo-ai/saas-specifications/application-creation';
|
|
101
|
+
import { AgentAnswerAttemptDecision, decideAgentAnswerAttempt, ParkedQuestionAnswerOutputSchema, ParkedQuestionAnswerVerdict, readParkedQuestionAnswers, renderParkedQuestionAnswerPrompt, withParkedQuestionAnswer, } from '../models/parked-question-answer.models.js';
|
|
102
|
+
import { PARKED_QUESTION_ANSWERER_AGENT_REF } from '../models/parked-question-answerer.actors-system.definitions.js';
|
|
103
|
+
import { applicationCodingExclusiveSubject, CODING_RUN_WINDOW_RETENTION_MS, CodingRunConcurrency, describeRunConcurrency, isConcurrentRunSubject, selectBudgetCountingFailures, collectRunClaimedPaths, } from '../models/concurrent-coding-runs.models.js';
|
|
104
|
+
import { inject, injectable, optional } from 'inversify';
|
|
105
|
+
import { ActorsSystemBackendService, AgentsBackendService, ErrorBuilderBackendService, LoggerService, SAAS_SERVICE_TYPES, WorkerShutdownManagerBackendService, executeBoundedSubprocess, describeCaughtError, actorExecutionSuspensionRef, isActorExecutionNotSuspendedError, isActorExecutionSubjectBusyError, } from '@wildo-ai/saas-backend-lib';
|
|
106
|
+
import { Actor_Task_Topics, ErrorCustomMessageReference, ErrorType, FlowsActors_IO_PartKind, FlowsActors_Status, isWildoBackendError, HumanDecision_FieldKind, HumanDecision_ResponseIntent, } from '@wildo-ai/saas-models';
|
|
107
|
+
import { CodingAgent_StopReason, } from '@wildo-ai/external-connectors-models';
|
|
72
108
|
import { getWorkspaceMutationLockPath as resolveWorkspaceMutationLockPath, withDedicatedFileLock, } from '@wildo-ai/platform-config-lib';
|
|
73
|
-
import { sanitizeWorkbenchCreationPlaneIdentity } from '@wildo-ai/platform-core-shared';
|
|
109
|
+
import { sanitizeWorkbenchCreationPlaneIdentity, Workbench_ParkedCodingQuestionOptionRef, WORKBENCH_PARKED_CODING_QUESTION_FIELD_REF, WORKBENCH_TASK_CORRELATION_DOMAIN, WorkbenchTaskCorrelationRef, } from '@wildo-ai/platform-core-shared';
|
|
74
110
|
import { COMPANION_SERVICE_TYPES } from '../../core/inject/models/service-types.js';
|
|
111
|
+
import { InFlightWorkHeartbeat } from '../../core/runtime/in-flight-work-heartbeat.companion.js';
|
|
75
112
|
import { CompanionTraceabilityLevel, CompanionTraceAliasKind } from '../../core/traceability/companion-traceability.models.js';
|
|
76
113
|
import { CompanionTraceabilityService } from '../../core/traceability/companion-traceability.service.js';
|
|
77
114
|
import { CompanionIntrospectionService } from '../../core/introspection/services/companion-introspection.companion.service.js';
|
|
78
115
|
import { CompanionExecutionsCompanionService } from '../../executions/services/companion-executions.companion.service.js';
|
|
79
|
-
import {
|
|
80
|
-
import { GitChangeSetCompanionService, isConcurrentHostLanePath } from './git-change-set.companion.service.js';
|
|
81
|
-
import {
|
|
82
|
-
import {
|
|
116
|
+
import { CompanionActorTasksListQuerySchema } from '../../companion-api/companion-api.schemas.js';
|
|
117
|
+
import { GitChangeSetCompanionService, isConcurrentHostLanePath, isOutsideApplicationRootPath } from './git-change-set.companion.service.js';
|
|
118
|
+
import { CodingRunWriteRegisterCompanionService } from './coding-run-write-register.companion.service.js';
|
|
119
|
+
import { PlaybookLaneBoundaryDecision } from '@wildo-ai/application-creation-runtime';
|
|
120
|
+
import { APPLICATION_CREATION_AUTONOMY_POSTURE, LaneBoundaryTreatment, laneBoundaryTreatmentFor, } from '../../meta-workflows/models/playbook-run-checkpoint.models.js';
|
|
121
|
+
import { AcceptOrigin, AcceptRefusalReason, AcceptedChangeCommitCompanionService, NothingToAcceptError } from './accepted-change-commit.companion.service.js';
|
|
122
|
+
import { listInFlightCodingRuns } from './in-flight-coding-runs.companion.js';
|
|
123
|
+
import { APPLICATION_CODING_TURN_CLASSIFIER_AGENT_REF, CodingTurnEndClassificationOutputSchema, APPLICATION_CODING_AGENT_REFS, APPLICATION_CODING_SYSTEM_REF, APPLICATION_CODING_WORKTREE_SUBJECT, isApplicationCodingAgentRef, resolveSelectedApplicationCodingAgentBinding, } from '../../meta-workflows/models/application-coding-agent.actors-system.definitions.js';
|
|
124
|
+
import { humanDecisionSettler } from '../../meta-workflows/models/human-decision-settler.models.js';
|
|
125
|
+
import { ApplicationCodingTaskDisposition, CodingRunFailureAttribution, CodingRunStart, deriveCodingRunFailureAttribution, deriveCodingRunStart, isAttributedToAnotherWriter, APPLICATION_CODING_CONTRACT_REFUSAL_MARKER, DISPATCH_DEFAULT_MAX_CAPTURED_BYTES, DISPATCH_DEFAULT_TIMEOUT_MS, DISPATCH_HARD_MAX_CAPTURED_BYTES, DISPATCH_HARD_MAX_TIMEOUT_MS, VerificationKind, renderApplicationCodingTaskAgentPrompt, resolveApplicationCodingTaskVerificationPlans, } from '../models/coding-agent-dispatch.models.js';
|
|
126
|
+
import { CodingSessionFrameRetention } from '../models/coding-session-frame-retention.js';
|
|
127
|
+
import { isInfrastructureShapedAgentFailure, isProviderAccountAgentFailure } from '../../core/runtime/dev-compile-quiet.companion.js';
|
|
128
|
+
import { diagnoseCarriedVerificationFailure } from '../../meta-workflows/models/carried-verification-failure.models.js';
|
|
129
|
+
import { NothingToRearmError, readBuildTaskRearm, withBuildTaskRearm, } from '../../meta-workflows/models/build-task-rearm.models.js';
|
|
130
|
+
import { APPLICATION_CODING_RUN_CHECKPOINT_KIND, ApplicationCodingRunCheckpointSchema, isParkedCodingRunAnswerable, } from '../models/application-coding-run-checkpoint.models.js';
|
|
83
131
|
/** Fixed, non-overridable limits for the verification hook subprocess. */
|
|
84
132
|
const VERIFICATION_TIMEOUT_MS = 10 * 60_000;
|
|
85
133
|
const VERIFICATION_MAX_CAPTURED_BYTES = 10 * 1024 * 1024;
|
|
86
|
-
/**
|
|
87
|
-
* The session frames worth retaining on the durable row: what the agent DID and
|
|
88
|
-
* what it changed. Message chunks are already summarised by the output tail, and
|
|
89
|
-
* usage frames are superseded by the recorded totals.
|
|
90
|
-
*/
|
|
91
|
-
const RETAINED_CODING_SESSION_EVENT_KINDS = new Set(['tool_call', 'tool_call_update', 'plan']);
|
|
92
|
-
/** Ceiling on retained frames — a bound, not a sample: excess is dropped, never summarised. */
|
|
93
|
-
const RETAINED_CODING_SESSION_FRAME_LIMIT = 200;
|
|
94
134
|
/** Tail size persisted on the task row; full streams go to traceability artifacts. */
|
|
95
135
|
const OUTPUT_TAIL_CHARS = 16_000;
|
|
136
|
+
/**
|
|
137
|
+
* What became of a cancelled run's park (#1581, tenth review). Told apart because a person is told
|
|
138
|
+
* which: a best-effort withdraw can fail, and the store can fail to answer at all.
|
|
139
|
+
*/
|
|
140
|
+
export var CancelledParkOutcome;
|
|
141
|
+
(function (CancelledParkOutcome) {
|
|
142
|
+
/** The park is gone — withdrawn now, or none was left to withdraw. */
|
|
143
|
+
CancelledParkOutcome["ENDED"] = "ended";
|
|
144
|
+
/** The withdraw failed and the question is still waiting. */
|
|
145
|
+
CancelledParkOutcome["STILL_WAITING"] = "still-waiting";
|
|
146
|
+
/** Neither could be confirmed: the run could not be read. */
|
|
147
|
+
CancelledParkOutcome["UNCONFIRMED"] = "unconfirmed";
|
|
148
|
+
})(CancelledParkOutcome || (CancelledParkOutcome = {}));
|
|
149
|
+
/**
|
|
150
|
+
* A read that found NO park — the task, its execution or its wait is absent — as opposed to a read that
|
|
151
|
+
* failed. The store's `NOT_FOUND` and the driver's `ACTOR_EXECUTION_NOT_SUSPENDED` are the only answers
|
|
152
|
+
* that mean "nothing is waiting here"; anything else means "could not tell" (#1581, tenth review R10-1).
|
|
153
|
+
*/
|
|
154
|
+
function isAbsentParkRead(error) {
|
|
155
|
+
return error?.customMessageReference === ErrorCustomMessageReference.NOT_FOUND
|
|
156
|
+
|| isActorExecutionNotSuspendedError(error);
|
|
157
|
+
}
|
|
158
|
+
/**
|
|
159
|
+
* How a parked run's resume went (#1581, seventh review). The two answerers act on it: only a resume
|
|
160
|
+
* that RAN can have parked again, and a person whose answer resumed nothing is told why.
|
|
161
|
+
*/
|
|
162
|
+
var ParkedRunResumeOutcome;
|
|
163
|
+
(function (ParkedRunResumeOutcome) {
|
|
164
|
+
/** The driver admitted the resume and the continued turn ran, however it then ended. */
|
|
165
|
+
ParkedRunResumeOutcome["RAN"] = "ran";
|
|
166
|
+
/** An operator's cancel was found before any turn — before the driver moved anything, or just after, when the question is handed back — and the chain withdraws the park. */
|
|
167
|
+
ParkedRunResumeOutcome["CANCELLED"] = "cancelled";
|
|
168
|
+
/** The driver refused before moving anything — the run no longer waits on this decision, or another run holds its subject. The park is as it was. */
|
|
169
|
+
ParkedRunResumeOutcome["REFUSED"] = "refused";
|
|
170
|
+
})(ParkedRunResumeOutcome || (ParkedRunResumeOutcome = {}));
|
|
171
|
+
/**
|
|
172
|
+
* How one coding run's executor ENDED, as the engine's execution driver is told to record it.
|
|
173
|
+
*
|
|
174
|
+
* Two ways, and neither is a throw. `parked`: the agent stopped to ask the operator, so the run
|
|
175
|
+
* waits on its execution with the question and its resume inputs. `concluded`: the disposition
|
|
176
|
+
* ladder classified the run — and a `FAILED` conclusion is a REPORTED outcome of a dispatch that
|
|
177
|
+
* succeeded (the agent ran, files may have changed, verification said no), which is why it is a
|
|
178
|
+
* classification with its full output rather than an exception that would lose it.
|
|
179
|
+
*
|
|
180
|
+
* `afterSettle` runs once the rows have moved: the success/failure trace names a result the durable
|
|
181
|
+
* row already carries, never one it might still fail to.
|
|
182
|
+
*/
|
|
183
|
+
var CodingRunEnding;
|
|
184
|
+
(function (CodingRunEnding) {
|
|
185
|
+
/** The agent stopped to ask the operator; the run waits on its execution and can be continued. */
|
|
186
|
+
CodingRunEnding["PARKED"] = "parked";
|
|
187
|
+
/** The disposition ladder classified the run — a working result or a reported failure, both terminal. */
|
|
188
|
+
CodingRunEnding["CONCLUDED"] = "concluded";
|
|
189
|
+
})(CodingRunEnding || (CodingRunEnding = {}));
|
|
190
|
+
/**
|
|
191
|
+
* How many change-set file entries ride on the durable row's summary.
|
|
192
|
+
*
|
|
193
|
+
* A build task's change-set is a handful of files by construction — the task declares its mutation
|
|
194
|
+
* scope — so this bounds the pathological case rather than the ordinary one. Chosen over "all of
|
|
195
|
+
* them" because the row is read by a judge whose brief is assembled per run, and over "none of them"
|
|
196
|
+
* because that is what made the judge answer INDETERMINATE about work it could not see.
|
|
197
|
+
*/
|
|
198
|
+
const CHANGE_SET_SUMMARY_FILE_LIMIT = 40;
|
|
199
|
+
/**
|
|
200
|
+
* Where this process says "a coding agent is running", app-root-relative. Beaten while ANY run is in
|
|
201
|
+
* {@link CodingAgentDispatchCompanionService}'s active set — single-flight or concurrent, fresh or
|
|
202
|
+
* resumed — and removed when none is.
|
|
203
|
+
*
|
|
204
|
+
* ## Why the lock is not enough
|
|
205
|
+
*
|
|
206
|
+
* The dev supervisor holds a restart while a coding run is in flight, because a restart kills the
|
|
207
|
+
* agent with the companion (#1026). It used to know that from the workspace-mutation lock's heartbeat
|
|
208
|
+
* alone. Since #1528 a CONCURRENT run holds no lock — it takes one only around its commit — so a
|
|
209
|
+
* parallel build wave was invisible to the hold. Measured 2026-09-27 on Wonder Todos: a
|
|
210
|
+
* `bottom_up.build-dispatch` ran five concurrent children, two of them edited the frontend, the
|
|
211
|
+
* frontend's rebuild made the supervisor restart the companion onto it, and every child still running
|
|
212
|
+
* was killed; the run ended "the host running this execution stopped" with no measurement.
|
|
213
|
+
*
|
|
214
|
+
* A COPY of `CODING_RUN_HEARTBEAT_RELATIVE_PATH` in
|
|
215
|
+
* `scripts/dev-orchestrator/runtime-supervisor-lifecycle.mjs`, which cannot import this source; pinned
|
|
216
|
+
* equal by `scripts/__tests__/runtime-supervisor-workspace-mutation-hold.test.mjs`.
|
|
217
|
+
*/
|
|
218
|
+
const CODING_RUN_HEARTBEAT_RELATIVE_PATH = '.wildo-saas/state/coding-run.heartbeat';
|
|
219
|
+
/** How often that file's mtime is refreshed; the supervisor judges it stale at three times this (`AGENT_RUN_HEARTBEAT_STALE_MS`). */
|
|
220
|
+
const CODING_RUN_HEARTBEAT_INTERVAL_MS = 5_000;
|
|
96
221
|
/** Local narrow: is this an indexable object (not null, not an array)? */
|
|
97
222
|
function isRecordValue(value) {
|
|
98
223
|
return typeof value === 'object' && value !== null && !Array.isArray(value);
|
|
99
224
|
}
|
|
100
225
|
/**
|
|
101
|
-
*
|
|
102
|
-
*
|
|
103
|
-
*
|
|
104
|
-
*
|
|
226
|
+
* Which changed-during-run paths fall outside the task's declared scope. RECORDED, NOT REFUSED.
|
|
227
|
+
*
|
|
228
|
+
* Decided by Paul, 2026-09-13, after measuring what the refusal cost. `build-task-company-config` made
|
|
229
|
+
* its two in-scope edits, stopped at `end_turn`, and was recorded failed — against three
|
|
230
|
+
* `marketing/website` files a parallel Claude Code session edited inside the run window. The capture
|
|
231
|
+
* compares a snapshot at dispatch with one at the end, so a file that was clean at dispatch and dirty
|
|
232
|
+
* at the end is `RUN_EXCLUSIVE` whoever wrote it. On a tree where several sessions work at once, that
|
|
233
|
+
* made EVERY coding run fail the moment anyone touched anything else: the intended use — hand the
|
|
234
|
+
* Wildo lane a change and keep editing elsewhere meanwhile — could not work at all.
|
|
235
|
+
*
|
|
236
|
+
* The same reasoning was already applied twice and is now applied everywhere: a commit landing
|
|
237
|
+
* mid-run (2026-08-19) and a concurrent research lane (2026-09-09) were each excluded because they
|
|
238
|
+
* cannot be attributed. A parallel session's uncommitted edit is the same fact, and it cannot be
|
|
239
|
+
* listed by root, so the refusal itself is what goes. This is also the application-creation
|
|
240
|
+
* directive: mutation is free, git makes every change visible and reversible, and acceptance is the
|
|
241
|
+
* commit — a restriction arrives later as a judge reading this list, never as a refusal in the lane.
|
|
242
|
+
*
|
|
243
|
+
* What stays enforced is the agent's OWN act: an edit whose permission request declares a location
|
|
244
|
+
* outside the scope is still denied in flight by the runner. What this list adds is visibility for
|
|
245
|
+
* what that guard cannot see — shell commands, which declare no location, and other people's edits.
|
|
246
|
+
* One limit on that: for an application nested inside its repository, a NEW untracked file created
|
|
247
|
+
* OUTSIDE the application is not listed, because `ls-files --others` run from the application root sees
|
|
248
|
+
* only untracked files beneath it. A shell write escaping the application is visible here when it
|
|
249
|
+
* modifies a tracked file, not when it creates one. Verification runs regardless.
|
|
105
250
|
*/
|
|
106
251
|
function assessApplicationCodingTaskMutationScope(changeSet, allowedPrefixes, prohibitedPrefixes) {
|
|
107
252
|
const normalizedAllowed = allowedPrefixes.map(normalizeApplicationRelativePrefix);
|
|
@@ -110,13 +255,12 @@ function assessApplicationCodingTaskMutationScope(changeSet, allowedPrefixes, pr
|
|
|
110
255
|
* Committed paths are deliberately EXCLUDED from the scope decision. They are
|
|
111
256
|
* present in `changeSet.files` (as `COMMITTED_DURING_RUN`) so nothing is
|
|
112
257
|
* invisible, but nobody can attribute them: a parallel session's commit and
|
|
113
|
-
* the agent's own look identical from here, so
|
|
114
|
-
*
|
|
115
|
-
* instead,
|
|
116
|
-
* worth.
|
|
258
|
+
* the agent's own look identical from here, so listing them would record
|
|
259
|
+
* other people's work as this run's. `historyMutated` carries that fact forward
|
|
260
|
+
* instead, for whoever reviews the result.
|
|
117
261
|
*/
|
|
118
262
|
/*
|
|
119
|
-
* A disappearance is only
|
|
263
|
+
* A disappearance is only listed when the run can be held responsible for it, and a commit
|
|
120
264
|
* landing inside the window is precisely when it cannot.
|
|
121
265
|
*
|
|
122
266
|
* `disappearedFromBaseline` is "dirty at baseline, no longer dirty post-run", which has two
|
|
@@ -134,9 +278,9 @@ function assessApplicationCodingTaskMutationScope(changeSet, allowedPrefixes, pr
|
|
|
134
278
|
* set. The field's own contract already said they "are NOT attributed change-set entries".
|
|
135
279
|
*
|
|
136
280
|
* So the exclusion is conditional, not blanket: with no commit in the window a disappearance
|
|
137
|
-
* IS the run's doing and still
|
|
281
|
+
* IS the run's doing and is still listed. Only the case the run cannot be responsible for is
|
|
138
282
|
* dropped, and it stays visible — the paths remain on `disappearedFromBaseline`, and
|
|
139
|
-
* `historyMutated` tells the
|
|
283
|
+
* `historyMutated` tells the reviewer the window is unattributable.
|
|
140
284
|
*/
|
|
141
285
|
const disappearancesAttributableToTheRun = changeSet.headMovedDuringRun
|
|
142
286
|
? []
|
|
@@ -147,22 +291,38 @@ function assessApplicationCodingTaskMutationScope(changeSet, allowedPrefixes, pr
|
|
|
147
291
|
* belongs to a companion lane that runs INSIDE this window and is not this
|
|
148
292
|
* run's to write. The research dispatch takes no workspace-mutation lock by
|
|
149
293
|
* design — it mutates nothing but its own evidence store — and that store is
|
|
150
|
-
* committable and therefore fully visible here, so before this filter
|
|
151
|
-
* `POST /api/companion/research` overlapping
|
|
152
|
-
* run as `MUTATION_SCOPE_VIOLATION` against files
|
|
294
|
+
* committable and therefore fully visible here, so before this filter (2026-09-09,
|
|
295
|
+
* while this check still refused) one `POST /api/companion/research` overlapping
|
|
296
|
+
* a coding run failed the coding run as `MUTATION_SCOPE_VIOLATION` against files
|
|
297
|
+
* it never touched. Today nothing refuses; the filter keeps another lane's
|
|
298
|
+
* writes off the out-of-scope list the reviewer reads, so that list names only
|
|
299
|
+
* paths that could be this run's.
|
|
153
300
|
*
|
|
154
301
|
* Both halves are filtered, and the second is easy to miss: an entry carries
|
|
155
302
|
* an attribution class, while a DISAPPEARANCE is a bare path — so the
|
|
156
303
|
* disappearance of an evidence file a research round rewrote or deleted would
|
|
157
|
-
*
|
|
158
|
-
*
|
|
304
|
+
* otherwise be listed. One predicate answers both (its own contract says why it
|
|
305
|
+
* is exported).
|
|
159
306
|
*/
|
|
160
|
-
|
|
307
|
+
/*
|
|
308
|
+
* And a path ABOVE THE APPLICATION ROOT is excluded on the same terms (#1020): the scope this list
|
|
309
|
+
* is compared against is application-relative, so `../engine/…` can never be admitted by it, and on a
|
|
310
|
+
* monorepo checkout such a path is another session's edit — 38 of the 39 paths one run was recorded
|
|
311
|
+
* against. The entry stays in the change set as `OUTSIDE_APPLICATION_ROOT` and is counted; the bare
|
|
312
|
+
* disappearance is filtered by the same predicate, for the reason given above.
|
|
313
|
+
*/
|
|
314
|
+
/*
|
|
315
|
+
* THE exclusion predicate, named once and read twice: by the scope list that drops these entries and
|
|
316
|
+
* by the record that names them. Deriving both from one function is the point — the previous shape
|
|
317
|
+
* excluded three classes and reported one, which is how the judge came to read an unexplained gap
|
|
318
|
+
* twice in an hour, about a different class each time.
|
|
319
|
+
*/
|
|
320
|
+
const isExcludedFromScopeAssessment = isAttributedToAnotherWriter;
|
|
321
|
+
const outOfScopePaths = [
|
|
161
322
|
...changeSet.files
|
|
162
|
-
.filter((entry) => entry.attribution
|
|
163
|
-
&& entry.attribution !== ChangeSetAttributionClass.CONCURRENT_HOST_LANE)
|
|
323
|
+
.filter((entry) => !isExcludedFromScopeAssessment(entry.attribution))
|
|
164
324
|
.map((entry) => entry.path),
|
|
165
|
-
...disappearancesAttributableToTheRun.filter((path) => !isConcurrentHostLanePath(path)),
|
|
325
|
+
...disappearancesAttributableToTheRun.filter((path) => !isConcurrentHostLanePath(path) && !isOutsideApplicationRootPath(path)),
|
|
166
326
|
]
|
|
167
327
|
.filter((path) => {
|
|
168
328
|
const normalizedPath = normalizeApplicationRelativePrefix(path);
|
|
@@ -170,12 +330,18 @@ function assessApplicationCodingTaskMutationScope(changeSet, allowedPrefixes, pr
|
|
|
170
330
|
const inProhibitedScope = normalizedProhibited.some((prefix) => matchesApplicationRelativePrefix(normalizedPath, prefix));
|
|
171
331
|
return !inAllowedScope || inProhibitedScope;
|
|
172
332
|
});
|
|
333
|
+
/*
|
|
334
|
+
* Everything the scope list deliberately drops, named WITH THE CLASS that dropped it, so the record
|
|
335
|
+
* reconciles itself instead of leaving a reader to infer an omission. Derived from the predicate
|
|
336
|
+
* above, so a class added to the exclusion tomorrow is reported here the same day.
|
|
337
|
+
*/
|
|
338
|
+
const excludedFromScopeAssessment = changeSet.files
|
|
339
|
+
.filter((entry) => isExcludedFromScopeAssessment(entry.attribution))
|
|
340
|
+
.map((entry) => ({ path: entry.path, attribution: entry.attribution }));
|
|
173
341
|
return {
|
|
174
|
-
//
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
allowed: violatingPaths.length === 0,
|
|
178
|
-
violatingPaths,
|
|
342
|
+
// No field here gates the run: all are recorded for whoever reviews and commits this result.
|
|
343
|
+
outOfScopePaths,
|
|
344
|
+
excludedFromScopeAssessment,
|
|
179
345
|
historyMutated: changeSet.headMovedDuringRun,
|
|
180
346
|
};
|
|
181
347
|
}
|
|
@@ -186,13 +352,61 @@ function assessApplicationCodingTaskMutationScope(changeSet, allowedPrefixes, pr
|
|
|
186
352
|
*
|
|
187
353
|
* Deliberately reuses the SAME normalisation and boundary matching as the
|
|
188
354
|
* post-hoc assessment. Two predicates answering "is this path in scope?" with
|
|
189
|
-
* different rules would
|
|
190
|
-
*
|
|
355
|
+
* different rules would make the record contradict the guard — a path the live
|
|
356
|
+
* guard permitted listed as out of scope afterwards, or a refused one missing
|
|
357
|
+
* from that list's reasoning. (The post-hoc assessment only records since
|
|
358
|
+
* 2026-09-13; the agreement still matters, because the reviewer reads both.)
|
|
191
359
|
*
|
|
192
360
|
* It NARROWS and never widens: the permission ceiling still decides the KIND of
|
|
193
361
|
* operation, and this only refuses a path that ceiling would otherwise allow.
|
|
194
362
|
* A path outside the workspace is refused outright rather than reasoned about.
|
|
195
363
|
*/
|
|
364
|
+
/*
|
|
365
|
+
* The option refs and the field ref moved to `@wildo-ai/platform-core-shared` on 2026-09-19, beside
|
|
366
|
+
* the `workbenchParkedCodingQuestions` row that carries them to a browser. They are re-exported here
|
|
367
|
+
* under their old names so this file's callers are unchanged, and there is ONE declaration.
|
|
368
|
+
*/
|
|
369
|
+
export { Workbench_ParkedCodingQuestionOptionRef as ParkedCodingQuestionOptionRef } from '@wildo-ai/platform-core-shared';
|
|
370
|
+
export { WORKBENCH_PARKED_CODING_QUESTION_FIELD_REF as PARKED_CODING_QUESTION_FIELD_REF } from '@wildo-ai/platform-core-shared';
|
|
371
|
+
/**
|
|
372
|
+
* Exported for tests that build the service without its constructor (field initializers do not run
|
|
373
|
+
* under `Object.create`), so they read the PRODUCTION classification rather than a copy of it.
|
|
374
|
+
*/
|
|
375
|
+
export const CODING_RUN_OPTIONS = {
|
|
376
|
+
suspendOn: (result) => (result.kind === CodingRunEnding.PARKED ? result.suspension : null),
|
|
377
|
+
concludeAs: (result) => (result.kind === CodingRunEnding.CONCLUDED ? result.conclusion : null),
|
|
378
|
+
};
|
|
379
|
+
/**
|
|
380
|
+
* Project a parked coding run as a decision a person can be shown.
|
|
381
|
+
*
|
|
382
|
+
* ONE free-text field, because that is what ACP gives us: `CodingAgent_SessionSuspension` carries the
|
|
383
|
+
* agent's end-of-turn message and nothing structured. The payload's field set is general enough to
|
|
384
|
+
* carry that as its degenerate case, which is the point of modelling a question as a field set rather
|
|
385
|
+
* than as "the question".
|
|
386
|
+
*
|
|
387
|
+
* `resumable: false` is surfaced in the description rather than hidden: the question is still real,
|
|
388
|
+
* but answering starts a NEW session that must restate the task context — a degradation the person
|
|
389
|
+
* deciding should see, not one the caller should smooth over.
|
|
390
|
+
*/
|
|
391
|
+
function projectParkedCodingQuestionAsDecision(parked) {
|
|
392
|
+
return {
|
|
393
|
+
decisionId: parked.taskId,
|
|
394
|
+
title: parked.taskRef,
|
|
395
|
+
description: parked.suspension.resumable
|
|
396
|
+
? 'The coding agent stopped to ask. Answering resumes the same session.'
|
|
397
|
+
: 'The coding agent stopped to ask. This session cannot be re-entered, so answering starts a NEW one that must restate the task context.',
|
|
398
|
+
fields: [{
|
|
399
|
+
ref: WORKBENCH_PARKED_CODING_QUESTION_FIELD_REF,
|
|
400
|
+
question: parked.suspension.question,
|
|
401
|
+
kind: HumanDecision_FieldKind.FREE_TEXT,
|
|
402
|
+
}],
|
|
403
|
+
options: [
|
|
404
|
+
{ ref: Workbench_ParkedCodingQuestionOptionRef.ANSWER, label: 'Answer and continue', intent: HumanDecision_ResponseIntent.PROCEED_WITH_VALUES },
|
|
405
|
+
{ ref: Workbench_ParkedCodingQuestionOptionRef.CANCEL, label: 'Cancel this run', intent: HumanDecision_ResponseIntent.ABORT },
|
|
406
|
+
],
|
|
407
|
+
requestedAt: parked.parkedAt,
|
|
408
|
+
};
|
|
409
|
+
}
|
|
196
410
|
export function buildApplicationCodingTaskLocationPredicate(workspaceRootPath, allowedPrefixes, prohibitedPrefixes) {
|
|
197
411
|
const normalizedAllowed = allowedPrefixes.map(normalizeApplicationRelativePrefix);
|
|
198
412
|
const normalizedProhibited = prohibitedPrefixes.map(normalizeApplicationRelativePrefix);
|
|
@@ -207,17 +421,7 @@ export function buildApplicationCodingTaskLocationPredicate(workspaceRootPath, a
|
|
|
207
421
|
* silently denies everything is worse than one that denies nothing, because
|
|
208
422
|
* it looks like the agent failing rather than the guard misfiring.
|
|
209
423
|
*/
|
|
210
|
-
const candidateRoots =
|
|
211
|
-
try {
|
|
212
|
-
const physicalRoot = realpathSync.native(workspaceRootPath);
|
|
213
|
-
if (physicalRoot !== workspaceRootPath) {
|
|
214
|
-
candidateRoots.push(physicalRoot);
|
|
215
|
-
}
|
|
216
|
-
}
|
|
217
|
-
catch {
|
|
218
|
-
// An unresolvable root is left as authored; the relative check below still
|
|
219
|
-
// refuses anything outside it.
|
|
220
|
-
}
|
|
424
|
+
const candidateRoots = applicationRootSpellings(workspaceRootPath);
|
|
221
425
|
return (absolutePath) => {
|
|
222
426
|
if (!isAbsolute(absolutePath)) {
|
|
223
427
|
return false;
|
|
@@ -234,6 +438,23 @@ export function buildApplicationCodingTaskLocationPredicate(workspaceRootPath, a
|
|
|
234
438
|
return inAllowedScope && !inProhibitedScope;
|
|
235
439
|
};
|
|
236
440
|
}
|
|
441
|
+
/**
|
|
442
|
+
* The configured application root and, when it differs, its physical realpath — the two spellings an
|
|
443
|
+
* agent's absolute path may use (see the predicate above). An unresolvable root is left as authored;
|
|
444
|
+
* a relative check against it still refuses anything outside it.
|
|
445
|
+
*/
|
|
446
|
+
function applicationRootSpellings(workspaceRootPath) {
|
|
447
|
+
const roots = [workspaceRootPath];
|
|
448
|
+
try {
|
|
449
|
+
const physicalRoot = realpathSync.native(workspaceRootPath);
|
|
450
|
+
if (physicalRoot !== workspaceRootPath)
|
|
451
|
+
roots.push(physicalRoot);
|
|
452
|
+
}
|
|
453
|
+
catch {
|
|
454
|
+
// Left as authored.
|
|
455
|
+
}
|
|
456
|
+
return roots;
|
|
457
|
+
}
|
|
237
458
|
function normalizeApplicationRelativePrefix(value) {
|
|
238
459
|
return value.replace(/\\/g, '/').replace(/^\.\//, '').replace(/\/+$/, '');
|
|
239
460
|
}
|
|
@@ -241,6 +462,8 @@ function normalizeApplicationRelativePrefix(value) {
|
|
|
241
462
|
function matchesApplicationRelativePrefix(path, prefix) {
|
|
242
463
|
return path === prefix || path.startsWith(`${prefix}/`);
|
|
243
464
|
}
|
|
465
|
+
/** How long one read of the coding agent's login serves the polled status route (#1637). */
|
|
466
|
+
const CODING_AGENT_LOGIN_CACHE_MS = 60_000;
|
|
244
467
|
let CodingAgentDispatchCompanionService = class CodingAgentDispatchCompanionService {
|
|
245
468
|
logger;
|
|
246
469
|
errorBuilder;
|
|
@@ -250,12 +473,137 @@ let CodingAgentDispatchCompanionService = class CodingAgentDispatchCompanionServ
|
|
|
250
473
|
executionsService;
|
|
251
474
|
traceabilityService;
|
|
252
475
|
introspectionService;
|
|
476
|
+
actorsSystem;
|
|
477
|
+
codingRunWriteRegister;
|
|
478
|
+
acceptedChangeCommit;
|
|
479
|
+
shutdownManager;
|
|
253
480
|
logDebug;
|
|
254
481
|
/**
|
|
255
|
-
*
|
|
256
|
-
*
|
|
482
|
+
* The CANCEL HANDLE of the coding session this process is driving — nothing more (#1361).
|
|
483
|
+
*
|
|
484
|
+
* Until 2026-09-20 this was also the single-flight flag (the "fast 409" in front of the lockfile),
|
|
485
|
+
* and the status route's answer to "is a run active". Both now read the actor plane: a coding run
|
|
486
|
+
* holds the engine's lease on the `worktree` subject, so the refusal and the badge are as true
|
|
487
|
+
* after a restart, or from a second process, as inside the one driving the run. What cannot live
|
|
488
|
+
* on a row is an `AbortController`, so that is what stays here.
|
|
489
|
+
*/
|
|
490
|
+
activeRuns = new Map();
|
|
491
|
+
/**
|
|
492
|
+
* The {@link CODING_RUN_HEARTBEAT_RELATIVE_PATH} beat, in step with {@link activeRuns}. Built on first
|
|
493
|
+
* use, because harnesses build this service through `Object.create` and skip field initializers.
|
|
494
|
+
*/
|
|
495
|
+
codingRunHeartbeat;
|
|
496
|
+
/**
|
|
497
|
+
* How deeply each task's coding work is in flight — what the heartbeat reads, rather than
|
|
498
|
+
* {@link activeRuns}'s size.
|
|
499
|
+
*
|
|
500
|
+
* `activeRuns` is keyed by task and RE-ENTERED: a run that parks on a question is resumed from inside
|
|
501
|
+
* its own chain (#1559), and that resume swaps its own registration in under the same key and puts the
|
|
502
|
+
* run's back afterwards (#1581). The heartbeat must not follow the set's size through that swap: a
|
|
503
|
+
* resume with no run registered around it would be one entry that appears and disappears unsynced, and
|
|
504
|
+
* a CONCURRENT run with no sibling would have the supervisor restart under it. So the heartbeat counts
|
|
505
|
+
* depth: {@link registerActiveRun} adds one, {@link unregisterActiveRun} takes one, and the resume adds
|
|
506
|
+
* and takes its own. The answer chain is held whole because it is registered whole (#1581). Built
|
|
507
|
+
* lazily for the same `Object.create` reason as the beat itself.
|
|
508
|
+
*/
|
|
509
|
+
codingWorkDepth;
|
|
510
|
+
adjustCodingWorkDepth(taskId, delta) {
|
|
511
|
+
this.codingWorkDepth ??= new Map();
|
|
512
|
+
const next = (this.codingWorkDepth.get(taskId) ?? 0) + delta;
|
|
513
|
+
if (next > 0)
|
|
514
|
+
this.codingWorkDepth.set(taskId, next);
|
|
515
|
+
else
|
|
516
|
+
this.codingWorkDepth.delete(taskId);
|
|
517
|
+
this.syncCodingRunHeartbeat();
|
|
518
|
+
}
|
|
519
|
+
syncCodingRunHeartbeat() {
|
|
520
|
+
// No application root, nowhere to beat — a harness, never a running companion. The beat describes
|
|
521
|
+
// the run; it must never be able to fail it.
|
|
522
|
+
const saasRoot = this.companionContext?.saasRoot;
|
|
523
|
+
if (typeof saasRoot !== 'string')
|
|
524
|
+
return;
|
|
525
|
+
this.codingRunHeartbeat ??= new InFlightWorkHeartbeat(join(saasRoot, CODING_RUN_HEARTBEAT_RELATIVE_PATH), CODING_RUN_HEARTBEAT_INTERVAL_MS, (message, error) => this.logDebug(message, { error: describeCaughtError(error) }));
|
|
526
|
+
this.codingRunHeartbeat.sync((this.codingWorkDepth?.size ?? 0) > 0);
|
|
527
|
+
}
|
|
528
|
+
/**
|
|
529
|
+
* Who cancelled a run, keyed by its ABORT CONTROLLER (#1751 review N2). A resumed turn swaps a new
|
|
530
|
+
* registration in that SHARES the run's controller and restores the old one afterwards, so a field on
|
|
531
|
+
* the registration was lost when a person cancelled during that turn; the controller is the one thing
|
|
532
|
+
* both registrations hold. Not the abort REASON: consumers of the signal throw its reason, and the lane
|
|
533
|
+
* classifies a cancelled turn by its AbortError.
|
|
257
534
|
*/
|
|
258
|
-
|
|
535
|
+
cancellersByController = new WeakMap();
|
|
536
|
+
/**
|
|
537
|
+
* Every coding run's time in the tree, kept for the runs that overlap it (#1528): a concurrent run
|
|
538
|
+
* records which runs shared the tree with it and which paths they both changed. Pruned to
|
|
539
|
+
* {@link CODING_RUN_WINDOW_RETENTION_MS}; in-process, because the comparison is only ever made by
|
|
540
|
+
* the process that drove both runs.
|
|
541
|
+
*/
|
|
542
|
+
codingRunWindows = [];
|
|
543
|
+
/**
|
|
544
|
+
* Who wants to know that a run's writes were committed by the loop (#1534).
|
|
545
|
+
*
|
|
546
|
+
* A commit LANDS a task, so every derived board that reads landing is stale the moment one is made.
|
|
547
|
+
* The workbench's `accept` invalidates the creation-plane projection itself; the loop cannot,
|
|
548
|
+
* because the projection already depends on THIS service and injecting it back would be a cycle.
|
|
549
|
+
* So the dependency points the way it already does: the projection subscribes here.
|
|
550
|
+
*/
|
|
551
|
+
runAcceptedListeners = [];
|
|
552
|
+
registerRunAcceptedListener(listener) {
|
|
553
|
+
this.runAcceptedListeners.push(listener);
|
|
554
|
+
}
|
|
555
|
+
/**
|
|
556
|
+
* Who wants to know that a build task's RUN STATE changed (#1310) — every trigger is listed on
|
|
557
|
+
* {@link announceRunStateChanged}: selected, started (fresh or resumed), settled, refused before
|
|
558
|
+
* admission, re-armed, and a generation step opening and ending.
|
|
559
|
+
*
|
|
560
|
+
* Wider than {@link registerRunAcceptedListener} on purpose. Each moves the creation boards through
|
|
561
|
+
* actor-plane state no file signature can see: a selected or started run is in flight to the
|
|
562
|
+
* next-task selection, a settled one changes its dispatch row and can LAND a task declaring no
|
|
563
|
+
* product (the RAN-not-PROVEN mark), a refusal leaves a counted failure, and a re-arm releases a task
|
|
564
|
+
* the loop guard or attempt budget was holding — which is what un-stucks the eligibility board's
|
|
565
|
+
* all-stuck gate. Same direction as the accepted-run seam, for the same reason: the projection
|
|
566
|
+
* depends on this service, so it subscribes here.
|
|
567
|
+
*
|
|
568
|
+
* One timing is deliberate rather than exact: a run that PARKS inside a fresh chain is announced
|
|
569
|
+
* when that chain ends, after the answering agent's turn, so for about one model call a cached
|
|
570
|
+
* board may still count it as in flight. Announcing at the park would re-derive the boards and
|
|
571
|
+
* then again at the chain's end, for a window that closes on its own.
|
|
572
|
+
*/
|
|
573
|
+
runStateChangedListeners = [];
|
|
574
|
+
registerRunStateChangedListener(listener) {
|
|
575
|
+
this.runStateChangedListeners.push(listener);
|
|
576
|
+
}
|
|
577
|
+
/**
|
|
578
|
+
* Tell the run-state-changed listeners, each isolated from the others.
|
|
579
|
+
*
|
|
580
|
+
* Called at every change to a build task's run state that no file shows:
|
|
581
|
+
*
|
|
582
|
+
* - **SELECTED** — {@link openSelectedApplicationCodingExecution} opened a PENDING execution, which
|
|
583
|
+
* the next-task selection already counts as in flight, whichever door opened it;
|
|
584
|
+
* - **STARTED** — a fresh run ADMITTED (after its active-run entry exists), and a resumed run once
|
|
585
|
+
* the engine has moved its rows back to PROCESSING (inside `resumeParkedRunHoldingLock`'s
|
|
586
|
+
* executor, the one moment its start is true);
|
|
587
|
+
* - **SETTLED** — LAST in the `finally` of each TOP-LEVEL chain, a fresh run's background body and
|
|
588
|
+
* `resumeBody`, after the parked-question answering, the active-run release and the settlement
|
|
589
|
+
* resolve, so a board re-derived because of it reads the chain's final state. Never from inside
|
|
590
|
+
* `resumeParkedRunHoldingLock`'s own `finally`, which is a step of a chain some caller settles.
|
|
591
|
+
* Every ending reaches it, including the ones that returned early;
|
|
592
|
+
* - **RE-ARMED** — {@link rearmBuildTask}, even when one of its updates threw.
|
|
593
|
+
*
|
|
594
|
+
* Public because a GENERATION STEP's execution and a coding dispatch refused before admission are
|
|
595
|
+
* opened and settled by the build dispatch service, so that service announces those.
|
|
596
|
+
*/
|
|
597
|
+
announceRunStateChanged() {
|
|
598
|
+
for (const listener of this.runStateChangedListeners) {
|
|
599
|
+
try {
|
|
600
|
+
listener();
|
|
601
|
+
}
|
|
602
|
+
catch (error) {
|
|
603
|
+
this.logDebug('A run-state-changed listener threw', { error: describeCaughtError(error) });
|
|
604
|
+
}
|
|
605
|
+
}
|
|
606
|
+
}
|
|
259
607
|
/**
|
|
260
608
|
* Per-process settlement signal of every application coding task THIS
|
|
261
609
|
* process admitted: resolved when the background run has recorded its
|
|
@@ -266,11 +614,10 @@ let CodingAgentDispatchCompanionService = class CodingAgentDispatchCompanionServ
|
|
|
266
614
|
*/
|
|
267
615
|
applicationCodingTaskSettlements = new Map();
|
|
268
616
|
/**
|
|
269
|
-
*
|
|
270
|
-
*
|
|
271
|
-
* (resumed) or explicitly abandoned. See {@link ParkedCodingSessionState}.
|
|
617
|
+
* The driver's reading of what a coding run's executor returned — see {@link CodingRunResult}.
|
|
618
|
+
* One object for a first run and a resumed one, so the two cannot be read by different ladders.
|
|
272
619
|
*/
|
|
273
|
-
|
|
620
|
+
codingRunOptions = CODING_RUN_OPTIONS;
|
|
274
621
|
/**
|
|
275
622
|
* Live-frame subscribers keyed by task id. Fed by the coding session's own
|
|
276
623
|
* event stream and the ladder's state transitions while a run is active;
|
|
@@ -278,7 +625,7 @@ let CodingAgentDispatchCompanionService = class CodingAgentDispatchCompanionServ
|
|
|
278
625
|
* subscriber never touches the run it observes.
|
|
279
626
|
*/
|
|
280
627
|
codingSessionSubscribers = new Map();
|
|
281
|
-
constructor(logger, errorBuilder, companionContext, agentsService, gitChangeSetService, executionsService, traceabilityService, introspectionService) {
|
|
628
|
+
constructor(logger, errorBuilder, companionContext, agentsService, gitChangeSetService, executionsService, traceabilityService, introspectionService, actorsSystem, codingRunWriteRegister, acceptedChangeCommit, shutdownManager) {
|
|
282
629
|
this.logger = logger;
|
|
283
630
|
this.errorBuilder = errorBuilder;
|
|
284
631
|
this.companionContext = companionContext;
|
|
@@ -287,6 +634,10 @@ let CodingAgentDispatchCompanionService = class CodingAgentDispatchCompanionServ
|
|
|
287
634
|
this.executionsService = executionsService;
|
|
288
635
|
this.traceabilityService = traceabilityService;
|
|
289
636
|
this.introspectionService = introspectionService;
|
|
637
|
+
this.actorsSystem = actorsSystem;
|
|
638
|
+
this.codingRunWriteRegister = codingRunWriteRegister;
|
|
639
|
+
this.acceptedChangeCommit = acceptedChangeCommit;
|
|
640
|
+
this.shutdownManager = shutdownManager;
|
|
290
641
|
this.logDebug = this.logger.debugByType('CodingAgentDispatchCompanionService');
|
|
291
642
|
this.logger.setDebugTypeLogging('CodingAgentDispatchCompanionService', true);
|
|
292
643
|
}
|
|
@@ -299,7 +650,22 @@ let CodingAgentDispatchCompanionService = class CodingAgentDispatchCompanionServ
|
|
|
299
650
|
* records a working code result and its evidence, never accepted
|
|
300
651
|
* application truth.
|
|
301
652
|
*/
|
|
302
|
-
async runApplicationCodingTask(rawTask, sessionContext
|
|
653
|
+
async runApplicationCodingTask(rawTask, sessionContext,
|
|
654
|
+
/**
|
|
655
|
+
* The execution a caller opened when it SELECTED this task
|
|
656
|
+
* ({@link openSelectedApplicationCodingExecution}). Admission then STARTS that execution instead
|
|
657
|
+
* of opening one, so the run has one pair of ids from selection to settlement. The caller owns it
|
|
658
|
+
* until this method resolves: a rejection here means the run never started, and the caller
|
|
659
|
+
* settles what it opened.
|
|
660
|
+
*/
|
|
661
|
+
selected,
|
|
662
|
+
/** Where the run was started from (#1454, Step 7): stamped on the row, never read by the run. */
|
|
663
|
+
origin,
|
|
664
|
+
/**
|
|
665
|
+
* CONCURRENT only from the build loop's wave (#1528), which opened `selected` in the same mode.
|
|
666
|
+
* Every other door is single-flight, and single-flight refuses while any concurrent run is live.
|
|
667
|
+
*/
|
|
668
|
+
mode = CodingRunConcurrency.SINGLE_FLIGHT) {
|
|
303
669
|
/*
|
|
304
670
|
* Both admission refusals below are TYPED.
|
|
305
671
|
*
|
|
@@ -309,11 +675,11 @@ let CodingAgentDispatchCompanionService = class CodingAgentDispatchCompanionServ
|
|
|
309
675
|
* INTERNAL — indistinguishable from the host being broken. They are
|
|
310
676
|
* VALIDATION: the request is refused, nothing was locked, created or run.
|
|
311
677
|
*/
|
|
312
|
-
const task = this.admitTypedInput(() =>
|
|
678
|
+
const task = this.admitTypedInput(() => MetaWorkflow_ApplicationCodingTaskContractSchema.parse(rawTask), 'Application coding task contract is not valid.', { refusesTaskContract: true });
|
|
313
679
|
// Resolve before acquiring the lock or creating a task. A semantic check
|
|
314
680
|
// name is not a command and cannot silently fall back to an arbitrary
|
|
315
681
|
// workspace typecheck.
|
|
316
|
-
const verificationPlans = this.admitTypedInput(() => resolveApplicationCodingTaskVerificationPlans(task.verificationIntent.requiredChecks), 'Application coding task names an unregistered verification check.');
|
|
682
|
+
const verificationPlans = this.admitTypedInput(() => resolveApplicationCodingTaskVerificationPlans(task.verificationIntent.requiredChecks), 'Application coding task names an unregistered verification check.', { refusesTaskContract: true });
|
|
317
683
|
const traceStep = this.createOperationTraceStep(sessionContext, 'application-coding-task-admission');
|
|
318
684
|
const renderedPrompt = renderApplicationCodingTaskAgentPrompt(task);
|
|
319
685
|
await this.traceOperationStart({
|
|
@@ -325,40 +691,87 @@ let CodingAgentDispatchCompanionService = class CodingAgentDispatchCompanionServ
|
|
|
325
691
|
artifactFileName: 'application-coding-task-input.txt',
|
|
326
692
|
artifactContent: renderedPrompt,
|
|
327
693
|
});
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
694
|
+
// The FAST 409, read from the rows (#1361): a run holding the worktree that is not the one this
|
|
695
|
+
// call was handed. The authoritative take is the driver's, at open — this only answers early,
|
|
696
|
+
// with the holder named, instead of making the caller wait on the file lock to be told the same.
|
|
697
|
+
await this.refuseWhileWorktreeIsHeld(selected?.executionId ?? null, sessionContext);
|
|
698
|
+
if (mode === CodingRunConcurrency.SINGLE_FLIGHT)
|
|
699
|
+
await this.refuseWhileConcurrentRunsInFlight(sessionContext);
|
|
332
700
|
const admission = createDeferred();
|
|
333
|
-
const
|
|
701
|
+
const runBody = async () => {
|
|
334
702
|
let admitted;
|
|
703
|
+
/*
|
|
704
|
+
* Not while this process is going away (#1026). The supervisor's restart HOLD reads the
|
|
705
|
+
* workspace lock, so it protects a run that already holds it — but a dispatch still waiting
|
|
706
|
+
* (the compile-quiet wait before admission) holds none, the supervisor restarts, and the SIGTERM
|
|
707
|
+
* grace lets this process admit it anyway: measured 2026-09-25, a run was admitted at 11:18:12,
|
|
708
|
+
* five seconds after the supervisor's stop began, and was SIGKILLed with the companion. Checked
|
|
709
|
+
* here, under the lock and before anything is opened, so the refusal leaves no row behind and is
|
|
710
|
+
* a HOST refusal (it counts against no attempt budget, #1581).
|
|
711
|
+
*/
|
|
712
|
+
if (this.shutdownManager?.isShutdownInProgress() === true) {
|
|
713
|
+
admission.reject(this.buildDispatchConflictError(`Coding task ${task.taskRef} was not started: the companion is shutting down. Dispatch it again once it is back.`));
|
|
714
|
+
return;
|
|
715
|
+
}
|
|
716
|
+
// Before the baseline, never inside the run: a playbook file left uncommitted here would be
|
|
717
|
+
// dirty at this run's baseline, and this run's own accept would then refuse it (#1534). A
|
|
718
|
+
// concurrent run holds no lock, so it takes one for this commit only.
|
|
719
|
+
await (mode === CodingRunConcurrency.CONCURRENT
|
|
720
|
+
? this.underBriefWorktreeLock(() => this.acceptPendingPlaybookRunsBeforeBaseline())
|
|
721
|
+
: this.acceptPendingPlaybookRunsBeforeBaseline());
|
|
335
722
|
try {
|
|
336
723
|
const baseline = await this.gitChangeSetService.captureWorktreeSnapshot();
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
724
|
+
// The run IS an actor-system execution from here on (#1359): the engine opens the
|
|
725
|
+
// execution and its task, and will settle both however the run ends.
|
|
726
|
+
const opened = selected
|
|
727
|
+
? await this.startSelectedApplicationCodingExecution(selected, task, baseline, sessionContext, origin)
|
|
728
|
+
: await this.openApplicationCodingExecution(task, baseline, sessionContext, origin, mode);
|
|
729
|
+
this.registerActiveRun({
|
|
730
|
+
taskId: opened.taskId,
|
|
340
731
|
startedAt: new Date().toISOString(),
|
|
341
732
|
abortController: new AbortController(),
|
|
342
|
-
|
|
343
|
-
|
|
733
|
+
mode,
|
|
734
|
+
});
|
|
735
|
+
this.openCodingRunWindow(opened.taskId, task.taskRef);
|
|
736
|
+
// Started: the run has left the next-task selection's ready set, and no file says so yet.
|
|
737
|
+
this.announceRunStateChanged();
|
|
738
|
+
admitted = { opened, baseline };
|
|
344
739
|
// Registered BEFORE the admission is resolved, so a caller that
|
|
345
740
|
// awaits the settlement right after admission can never miss it.
|
|
346
741
|
const settlement = createDeferred();
|
|
347
|
-
this.applicationCodingTaskSettlements.set(
|
|
742
|
+
this.applicationCodingTaskSettlements.set(opened.taskId, { promise: settlement.promise, resolve: () => settlement.resolve(undefined) });
|
|
348
743
|
admission.resolve(admitted);
|
|
349
744
|
}
|
|
350
745
|
catch (error) {
|
|
351
|
-
admission.reject(error);
|
|
746
|
+
admission.reject(this.translateWorktreeBusy(error));
|
|
352
747
|
return;
|
|
353
748
|
}
|
|
354
749
|
try {
|
|
355
|
-
await this.
|
|
750
|
+
const trace = await this.openCodingRunTrace(admitted.opened.taskId, task.taskRef);
|
|
751
|
+
await this.superviseCodingRun(task.taskRef, admitted.opened.taskId, trace, (capture) => this.actorsSystem.completeActorExecution(admitted.opened, async (opened) => capture(await this.executeApplicationCodingTask(task, renderedPrompt, verificationPlans, opened, admitted.baseline, trace)), trace.runSession, this.codingRunOptions));
|
|
752
|
+
// Before the settlement resolves and before the worktree is released: a question the run
|
|
753
|
+
// parked on is offered to the answering agent while nothing else can take the worktree (#1559).
|
|
754
|
+
await this.answerParkedQuestionsHoldingLock(admitted.opened.taskId, sessionContext);
|
|
356
755
|
}
|
|
357
756
|
finally {
|
|
358
|
-
this.
|
|
359
|
-
|
|
757
|
+
this.endCodingRunWindow(admitted.opened.taskId);
|
|
758
|
+
// A run cancelled while its question was handled ends here rather than staying parked (#1581). Awaited
|
|
759
|
+
// only when cancelled, so a chain that was not unregisters in the same synchronous step as its check.
|
|
760
|
+
if (this.isRunCancelled(admitted.opened.taskId))
|
|
761
|
+
await this.withdrawCancelledRunChain(admitted.opened.taskId, sessionContext);
|
|
762
|
+
this.unregisterActiveRun(admitted.opened.taskId);
|
|
763
|
+
this.applicationCodingTaskSettlements.get(admitted.opened.taskId)?.resolve();
|
|
764
|
+
this.announceRunStateChanged();
|
|
360
765
|
}
|
|
361
|
-
}
|
|
766
|
+
};
|
|
767
|
+
/*
|
|
768
|
+
* A SINGLE-FLIGHT run holds the workspace lock for its whole life, as it always has. A CONCURRENT
|
|
769
|
+
* run holds none (#1528): the tree is shared by decision, and interference is detected and
|
|
770
|
+
* repaired rather than prevented. It takes the lock only around a commit.
|
|
771
|
+
*/
|
|
772
|
+
const backgroundRun = mode === CodingRunConcurrency.CONCURRENT
|
|
773
|
+
? runBody()
|
|
774
|
+
: withDedicatedFileLock(this.getWorkspaceMutationLockPath(), runBody, { retries: { retries: 0 } });
|
|
362
775
|
backgroundRun.catch((error) => {
|
|
363
776
|
admission.reject(this.mapLockError(error));
|
|
364
777
|
this.logDebug('Application coding-task background run chain terminated with error', {
|
|
@@ -368,21 +781,33 @@ let CodingAgentDispatchCompanionService = class CodingAgentDispatchCompanionServ
|
|
|
368
781
|
});
|
|
369
782
|
const admitted = await admission.promise;
|
|
370
783
|
const response = {
|
|
371
|
-
taskId: admitted.
|
|
784
|
+
taskId: admitted.opened.taskId,
|
|
372
785
|
status: FlowsActors_Status.PROCESSING,
|
|
373
786
|
taskRef: task.taskRef,
|
|
374
787
|
baselineHeadSha: admitted.baseline.headSha,
|
|
375
788
|
baselineDirtyFileCount: Object.keys(admitted.baseline.files).length,
|
|
376
789
|
};
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
790
|
+
/*
|
|
791
|
+
* The run has STARTED by now, so nothing after this point may reject: a caller reads a rejection
|
|
792
|
+
* from this method as "the run never started" and settles its execution ABORTED (#1581, second
|
|
793
|
+
* review A7). The trace is evidence ABOUT the admission, never a condition of it.
|
|
794
|
+
*/
|
|
795
|
+
try {
|
|
796
|
+
await this.traceOperationSuccess({
|
|
797
|
+
sessionContext,
|
|
798
|
+
step: traceStep,
|
|
799
|
+
type: 'application-coding-task-admission-success',
|
|
800
|
+
summary: `Admitted application coding task ${task.taskRef} as Actor Task ${admitted.opened.taskId} of execution ${admitted.opened.executionId}`,
|
|
801
|
+
payload: response,
|
|
802
|
+
artifactFileName: 'application-coding-task-admission.json',
|
|
803
|
+
artifactContent: response,
|
|
804
|
+
});
|
|
805
|
+
}
|
|
806
|
+
catch (traceError) {
|
|
807
|
+
this.logDebug('The admission-success trace could not be written; the run is admitted regardless', {
|
|
808
|
+
taskId: admitted.opened.taskId, error: describeCaughtError(traceError),
|
|
809
|
+
});
|
|
810
|
+
}
|
|
386
811
|
return response;
|
|
387
812
|
}
|
|
388
813
|
/**
|
|
@@ -397,75 +822,347 @@ let CodingAgentDispatchCompanionService = class CodingAgentDispatchCompanionServ
|
|
|
397
822
|
return this.applicationCodingTaskSettlements.get(taskId)?.promise ?? null;
|
|
398
823
|
}
|
|
399
824
|
/**
|
|
400
|
-
*
|
|
825
|
+
* Read one application coding task's OUTCOME from its durable row.
|
|
826
|
+
*
|
|
827
|
+
* Pairs with {@link awaitApplicationCodingTaskSettlement}: wait for the settlement, then ask this
|
|
828
|
+
* what the run did. The two are deliberately separate — the settlement is an in-process fact (only
|
|
829
|
+
* this process holds the deferred), while the outcome is durable and survives the restart that a
|
|
830
|
+
* rebuild triggers, so a caller that lost the settlement can still answer the question.
|
|
401
831
|
*
|
|
402
|
-
*
|
|
403
|
-
*
|
|
404
|
-
* reverting would destroy evidence. The safe v0 result is therefore a
|
|
405
|
-
* terminal physical abort plus an explicit human-review disposition. Root
|
|
406
|
-
* wires this method into ordinary startup in a later, separately reviewed
|
|
407
|
-
* join; this source slice never invokes it automatically.
|
|
832
|
+
* `null` for a row that is not an application coding task, or that cannot be read at all. An
|
|
833
|
+
* unreadable row is not a failed run, and a caller must not report it as one.
|
|
408
834
|
*/
|
|
409
|
-
async
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
}
|
|
835
|
+
async readApplicationCodingTaskOutcome(taskId, sessionContext) {
|
|
836
|
+
let row;
|
|
837
|
+
try {
|
|
838
|
+
row = await this.executionsService.getActorTask(taskId, sessionContext);
|
|
839
|
+
}
|
|
840
|
+
catch {
|
|
841
|
+
return null;
|
|
842
|
+
}
|
|
843
|
+
// MEMBERSHIP, as everywhere else that classifies one of these rows: a second declared coding
|
|
844
|
+
// agent must not make this silently answer "not a coding run".
|
|
845
|
+
if (!isApplicationCodingAgentRef(row.actors?.actorRef))
|
|
846
|
+
return null;
|
|
847
|
+
const output = isRecordValue(row.output) ? row.output : {};
|
|
848
|
+
const verificationRows = (Array.isArray(output.verification) ? output.verification : [])
|
|
849
|
+
.filter((entry) => isRecordValue(entry))
|
|
850
|
+
.map((entry) => ({
|
|
851
|
+
checkRef: typeof entry.checkRef === 'string' ? entry.checkRef : 'unknown',
|
|
852
|
+
success: isRecordValue(entry.outcome) && entry.outcome.success === true,
|
|
853
|
+
}));
|
|
854
|
+
const failedVerificationRefs = verificationRows.filter((entry) => !entry.success).map((entry) => entry.checkRef);
|
|
855
|
+
return {
|
|
856
|
+
taskId: typeof row._id === 'string' ? row._id : taskId,
|
|
857
|
+
taskRef: isRecordValue(row.input) && typeof row.input.taskRef === 'string' ? row.input.taskRef : null,
|
|
858
|
+
status: typeof row.status === 'string' ? row.status : 'UNKNOWN',
|
|
859
|
+
succeeded: output.succeeded === true,
|
|
860
|
+
disposition: typeof output.disposition === 'string' ? output.disposition : null,
|
|
861
|
+
// The STATUS says it, since #1359: a parked run waits as `AWAITING_APPROVAL`. The output still
|
|
862
|
+
// carries the question while it waits, but a withdrawn park keeps that output and is not waiting.
|
|
863
|
+
awaitingAnswer: row.status === FlowsActors_Status.AWAITING_APPROVAL,
|
|
864
|
+
failedVerificationRefs,
|
|
865
|
+
verification: verificationRows,
|
|
866
|
+
changeSetSummary: isRecordValue(output.changeSetSummary) ? output.changeSetSummary : null,
|
|
867
|
+
scopeAssessment: isRecordValue(output.scopeAssessment) ? output.scopeAssessment : null,
|
|
868
|
+
agentStopReason: typeof output.agentStopReason === 'string' ? output.agentStopReason : null,
|
|
869
|
+
};
|
|
870
|
+
}
|
|
871
|
+
/**
|
|
872
|
+
* Settle what a previous process left behind: coding runs still `PROCESSING`, and parked
|
|
873
|
+
* questions a restarted host can no longer show as answerable.
|
|
874
|
+
*
|
|
875
|
+
* A companion restart cannot prove the previous coding subprocess is still running. Retrying
|
|
876
|
+
* could duplicate a worktree mutation, while reverting would destroy evidence. The safe result is
|
|
877
|
+
* therefore a terminal abort plus an explicit human-review disposition carrying what the worktree
|
|
878
|
+
* looked like when the restart found it.
|
|
879
|
+
*
|
|
880
|
+
* Since #1359 the engine's execution driver does the settling, exactly as it does for playbook
|
|
881
|
+
* runs, and this method supplies the two things only the coding lane knows:
|
|
882
|
+
*
|
|
883
|
+
* 1. **What an ORPHAN's task should say** — the recovery evidence. The driver lists the
|
|
884
|
+
* `PROCESSING` executions of `application-coding.system` and settles each `ABORTED`.
|
|
885
|
+
* 2. **Which PARKS survive a restart: every one whose session can be re-entered.** A parked run
|
|
886
|
+
* is `AWAITING_APPROVAL`, never `PROCESSING`, so the orphan sweep cannot touch it — the
|
|
887
|
+
* exemption this method used to carry by hand (measured 2026-09-04: the sweep terminalized a
|
|
888
|
+
* parked row three seconds before the operator's answer arrived) is a property of the status.
|
|
889
|
+
* What is aborted here is only a park no host could answer on its session — a non-resumable one,
|
|
890
|
+
* or one whose checkpoint cannot be read ({@link isParkedCodingRunAnswerable}). A park is NOT
|
|
891
|
+
* aborted for its age: that reaped every question that waited longer than fifteen minutes (#1533).
|
|
892
|
+
*/
|
|
893
|
+
async reconcileInterruptedApplicationCodingTasks(sessionContext, options) {
|
|
414
894
|
const reconciledTaskIds = [];
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
895
|
+
const interruptedWhileRunning = [];
|
|
896
|
+
await this.actorsSystem.reconcileOrphanedActorExecutions(APPLICATION_CODING_SYSTEM_REF, sessionContext, {
|
|
897
|
+
describeOrphan: async (orphan) => {
|
|
898
|
+
reconciledTaskIds.push(...orphan.tasks.map((task) => task._id));
|
|
899
|
+
/*
|
|
900
|
+
* A PENDING orphan was SELECTED and never admitted — usually a restart during the compile-quiet
|
|
901
|
+
* wait. It touched nothing, so it has no writes to recover and nothing to review, and it was no
|
|
902
|
+
* attempt: recorded like a refused dispatch, `{ failure }` and no disposition, so the build
|
|
903
|
+
* board does not count it as a started run that "requires review" (#1581, second review A4).
|
|
904
|
+
*/
|
|
905
|
+
if (orphan.status === FlowsActors_Status.PENDING) {
|
|
906
|
+
return { failure: { message: 'Selected, and the companion stopped before the run was admitted; nothing ran.' } };
|
|
907
|
+
}
|
|
908
|
+
// A concurrent run held only its own task, so siblings wrote in the tree beside it (#1528).
|
|
909
|
+
const sharedTree = isConcurrentRunSubject(orphan.exclusiveSubject);
|
|
910
|
+
for (const task of orphan.tasks) {
|
|
911
|
+
const run = { taskId: task._id, sharedTree };
|
|
912
|
+
interruptedWhileRunning.push(run);
|
|
913
|
+
options?.onInterrupted?.(run);
|
|
914
|
+
}
|
|
915
|
+
return this.describeInterruptedCodingRun();
|
|
916
|
+
},
|
|
917
|
+
});
|
|
918
|
+
const waiting = await this.actorsSystem.listSuspendedActorExecutions(APPLICATION_CODING_SYSTEM_REF, sessionContext);
|
|
919
|
+
for (const row of waiting) {
|
|
920
|
+
const checkpoint = ApplicationCodingRunCheckpointSchema.safeParse(row.checkpoint?.context);
|
|
921
|
+
if (checkpoint.success && isParkedCodingRunAnswerable(checkpoint.data))
|
|
420
922
|
continue;
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
* it for review is then the honest outcome.
|
|
432
|
-
*/
|
|
433
|
-
const parkedOutput = task.output;
|
|
434
|
-
if (parkedOutput?.disposition === ApplicationCodingTaskDisposition.AWAITING_OPERATOR_INPUT) {
|
|
435
|
-
const parsedSuspension = CodingAgent_SessionSuspensionSchema.safeParse(parkedOutput.suspension);
|
|
436
|
-
const stillAnswerable = parsedSuspension.success
|
|
437
|
-
&& parsedSuspension.data.resumable
|
|
438
|
-
&& Date.parse(parsedSuspension.data.parkedUntil) > Date.now();
|
|
439
|
-
if (stillAnswerable)
|
|
923
|
+
try {
|
|
924
|
+
await this.actorsSystem.abortSuspendedActorExecution(row._id, await this.describeInterruptedCodingRun(), sessionContext);
|
|
925
|
+
}
|
|
926
|
+
catch (error) {
|
|
927
|
+
/*
|
|
928
|
+
* A lost swap (#1586): something else moved this run out of waiting between the listing and the
|
|
929
|
+
* abort — it is settled already, so there is nothing left to reconcile. Refusing the rest of the
|
|
930
|
+
* sweep for it would leave every later unanswerable park in place. Anything else still throws.
|
|
931
|
+
*/
|
|
932
|
+
if (isActorExecutionNotSuspendedError(error))
|
|
440
933
|
continue;
|
|
934
|
+
throw error;
|
|
441
935
|
}
|
|
442
|
-
|
|
443
|
-
|
|
936
|
+
reconciledTaskIds.push(...row.tasks.map((task) => task._id));
|
|
937
|
+
}
|
|
938
|
+
return { reconciledTaskIds, interruptedWhileRunning };
|
|
939
|
+
}
|
|
940
|
+
/**
|
|
941
|
+
* Record what the runs a restart stopped had written, and accept it under the posture (#1805).
|
|
942
|
+
*
|
|
943
|
+
* ## Why this exists
|
|
944
|
+
*
|
|
945
|
+
* A run interrupted mid-task leaves its writes in the tree and is settled
|
|
946
|
+
* INTERRUPTED_REQUIRES_REVIEW. Nothing recorded WHICH files it wrote — its baseline lived in memory
|
|
947
|
+
* — so nobody could accept them, and its retry could not claim them either: to the retry they were
|
|
948
|
+
* already dirty at its own baseline (`baseline_dirty_ambiguous`). Measured 2026-09-24 on
|
|
949
|
+
* scratch-journey: an interrupted `build-task-user-menu-placement` left `app-shell.config.ts` dirty;
|
|
950
|
+
* the retry found the work done and recorded no files; a sibling task's edit to the same file was
|
|
951
|
+
* refused as ambiguous; and every shell surface that file carries stopped landing, including one
|
|
952
|
+
* that had landed hours earlier. The build sat at 91/95 with its work done.
|
|
953
|
+
*
|
|
954
|
+
* ## What it does
|
|
955
|
+
*
|
|
956
|
+
* The run's task input now carries its baseline's dirty files, so the change set is the same
|
|
957
|
+
* capture a finished run gets, against the same baseline, recorded in the same write register.
|
|
958
|
+
* Then the ordinary posture decides: under notify-and-proceed it is committed with the
|
|
959
|
+
* INTERRUPTED_RUN_RECOVERY origin (forced, because "already dirty" and "edited since" are exactly
|
|
960
|
+
* what an interruption produces); under a posture that keeps acceptance with a person, the record
|
|
961
|
+
* simply waits for the workbench's Accept, which could not act on an interrupted run before because
|
|
962
|
+
* there was no record.
|
|
963
|
+
*
|
|
964
|
+
* ## Whose name the commit carries
|
|
965
|
+
*
|
|
966
|
+
* A run keeps its own commit only when it is the SOLE KNOWN WRITER of what it left: the only run the
|
|
967
|
+
* restart stopped, not a concurrent run, no concurrent run recorded writes during its window, none of its
|
|
968
|
+
* own files already dirty at its baseline, and no other recorded run may carry any of its uncommitted
|
|
969
|
+
* paths. Any other case is one commit, writer unknown, over
|
|
970
|
+
* what the interrupted runs and the concurrent runs recorded since the earliest of them began left
|
|
971
|
+
* uncommitted, naming every recorded run that may carry each file, failed runs included
|
|
972
|
+
* (`acceptSharedTreeRunsTogether`; the window picks the paths, never the names). That includes the
|
|
973
|
+
* finished siblings whose end-of-wave reconciliation the restart skipped — their leftovers are part of
|
|
974
|
+
* the same unattributable result, and committing them under their own names alone was the defect.
|
|
975
|
+
*
|
|
976
|
+
* A run started before its input carried `files` has no baseline to diff against and is left as
|
|
977
|
+
* it was. BEST-EFFORT throughout: this runs on the boot path, and a boot path must not fail closed
|
|
978
|
+
* on a repair (`continuity-drift-and-cas-basis.md`, Rule 3).
|
|
979
|
+
*/
|
|
980
|
+
async recoverInterruptedRunWrites(reported, sessionContext) {
|
|
981
|
+
const runs = await this.withRunsStillMarkedRunning(reported, sessionContext);
|
|
982
|
+
const recovered = [];
|
|
983
|
+
for (const run of runs) {
|
|
444
984
|
try {
|
|
445
|
-
|
|
985
|
+
/*
|
|
986
|
+
* Already recovered on an earlier boot (#1805 review N4): a run whose abort did not persist is found
|
|
987
|
+
* running again, and capturing it anew would overwrite the record that names its recovery commit.
|
|
988
|
+
*/
|
|
989
|
+
if ((await this.codingRunWriteRegister.read(run.taskId))?.acceptedCommitSha !== undefined)
|
|
990
|
+
continue;
|
|
991
|
+
const row = await this.executionsService.getActorTask(run.taskId, sessionContext);
|
|
992
|
+
const input = isRecordValue(row.input) ? row.input : undefined;
|
|
993
|
+
const baseline = input && isRecordValue(input.baseline) ? input.baseline : undefined;
|
|
994
|
+
const taskRef = input && typeof input.taskRef === 'string' ? input.taskRef : undefined;
|
|
995
|
+
if (!taskRef || !baseline || !isRecordValue(baseline.files)
|
|
996
|
+
|| typeof baseline.headSha !== 'string' || typeof baseline.capturedAt !== 'string')
|
|
997
|
+
continue;
|
|
998
|
+
const snapshot = {
|
|
999
|
+
headSha: baseline.headSha,
|
|
1000
|
+
capturedAt: baseline.capturedAt,
|
|
1001
|
+
files: baseline.files,
|
|
1002
|
+
};
|
|
1003
|
+
const changeSet = await this.gitChangeSetService.captureChangeSet(snapshot);
|
|
1004
|
+
if (changeSet.files.length === 0)
|
|
1005
|
+
continue;
|
|
1006
|
+
/*
|
|
1007
|
+
* A run that shared the tree is recorded CONCURRENT with no claims: nothing survived the restart
|
|
1008
|
+
* that says which of its captured files it wrote. So even the workbench's per-run Accept refuses
|
|
1009
|
+
* them unless forced — the refusal the recovery commit itself is forced past, and names.
|
|
1010
|
+
*/
|
|
1011
|
+
await this.codingRunWriteRegister.record({ taskId: run.taskId, taskRef, changeSet, ...(run.sharedTree ? { claimedPaths: [] } : {}) });
|
|
1012
|
+
recovered.push({ ...run, startedAt: baseline.capturedAt });
|
|
446
1013
|
}
|
|
447
1014
|
catch (error) {
|
|
448
|
-
|
|
1015
|
+
this.logger.warn('Could not recover the writes of an interrupted coding run; it stays for review', {
|
|
1016
|
+
taskId: run.taskId, error: describeCaughtError(error),
|
|
1017
|
+
});
|
|
449
1018
|
}
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
1019
|
+
}
|
|
1020
|
+
if (recovered.length === 0)
|
|
1021
|
+
return;
|
|
1022
|
+
const recoveredIds = new Set(recovered.map((run) => run.taskId));
|
|
1023
|
+
const windowStartedAt = recovered.map((run) => run.startedAt).sort()[0];
|
|
1024
|
+
// Concurrent runs that recorded writes while the interrupted ones ran: the finishers of the same wave.
|
|
1025
|
+
const siblings = (await this.codingRunWriteRegister.list())
|
|
1026
|
+
.filter((record) => record.concurrent === true && !recoveredIds.has(record.taskId) && record.at >= windowStartedAt);
|
|
1027
|
+
/*
|
|
1028
|
+
* SOLE KNOWN WRITER only when nothing else may carry what it left: not concurrent, no concurrent run
|
|
1029
|
+
* recorded in its window, and — asked of every recorded run by the door's own test — no other run may
|
|
1030
|
+
* carry any of its uncommitted paths (#1805 review 5 F2: a leftover dirty at its baseline from a run
|
|
1031
|
+
* outside the window was committed under this run's name alone).
|
|
1032
|
+
*
|
|
1033
|
+
* Nor when a file of its OWN was already dirty at its baseline (#1805 review 6 O2): those earlier hunks
|
|
1034
|
+
* are a person's, a tool's or an earlier run's, and the run's own commit, "accept the coding run", would
|
|
1035
|
+
* present them as its writes. The joint commit carries them as what they are: writer unknown. A file the
|
|
1036
|
+
* capture attributes elsewhere (committed during the run, another lane's) is not this run's to judge
|
|
1037
|
+
* (review 7 I2).
|
|
1038
|
+
*
|
|
1039
|
+
* With that condition, `anotherRunMayCarry` decides nothing a live leftover can reach: a single-flight run
|
|
1040
|
+
* has no sibling in its window, so another record's uncommitted leftover was already dirty at its
|
|
1041
|
+
* baseline. It is kept deliberately (review 7 I1) as the same test the shared-tree door names runs by, so
|
|
1042
|
+
* recovery and the door cannot disagree if the baseline capture ever stops seeing a leftover.
|
|
1043
|
+
*/
|
|
1044
|
+
const lone = recovered.length === 1 && !recovered[0].sharedTree && siblings.length === 0 ? recovered[0] : undefined;
|
|
1045
|
+
const loneRecord = lone === undefined ? undefined : await this.codingRunWriteRegister.read(lone.taskId);
|
|
1046
|
+
const sole = lone !== undefined && loneRecord !== undefined
|
|
1047
|
+
&& !loneRecord.files.some((file) => file.dirtyAtBaseline && !isAttributedToAnotherWriter(file.attribution))
|
|
1048
|
+
&& !(await this.acceptedChangeCommit.anotherRunMayCarry(lone.taskId).catch(() => true)) ? lone : undefined;
|
|
1049
|
+
const results = sole
|
|
1050
|
+
? await this.reconcileAcceptance([loneRecord.taskRef], AcceptOrigin.INTERRUPTED_RUN_RECOVERY)
|
|
1051
|
+
: await this.reconcileAcceptanceTogether([...recoveredIds, ...siblings.map((record) => record.taskId)], AcceptOrigin.INTERRUPTED_RUN_RECOVERY);
|
|
1052
|
+
this.logger.warn('Recovered the writes of coding run(s) interrupted by a restart', { recoveredTaskIds: [...recoveredIds], results });
|
|
1053
|
+
}
|
|
1054
|
+
/**
|
|
1055
|
+
* The reported runs, plus any coding run STILL marked running (#1805 review N4). At this point in startup
|
|
1056
|
+
* nothing is running, so such a row is an orphan whose abort did not persist — or one the sweep never
|
|
1057
|
+
* reached because it threw first. Either way its writes are in the tree, and leaving it out would put
|
|
1058
|
+
* them into the recovery commit without its name. Concurrent by its subject, like the sweep decides.
|
|
1059
|
+
*/
|
|
1060
|
+
async withRunsStillMarkedRunning(reported, sessionContext) {
|
|
1061
|
+
const byTaskId = new Map(reported.map((run) => [run.taskId, run]));
|
|
1062
|
+
try {
|
|
1063
|
+
for (const live of await this.listInFlightCodingRuns(sessionContext)) {
|
|
1064
|
+
const execution = await this.executionsService.getActorExecution(live.executionId, sessionContext);
|
|
1065
|
+
for (const task of execution.standaloneTasks ?? []) {
|
|
1066
|
+
const taskId = String(task._id);
|
|
1067
|
+
if (!byTaskId.has(taskId))
|
|
1068
|
+
byTaskId.set(taskId, { taskId, sharedTree: isConcurrentRunSubject(live.exclusiveSubject) });
|
|
1069
|
+
}
|
|
1070
|
+
}
|
|
1071
|
+
}
|
|
1072
|
+
catch (error) {
|
|
1073
|
+
this.logger.warn('Could not list the coding runs still marked running; recovering the reported ones', { error: describeCaughtError(error) });
|
|
1074
|
+
}
|
|
1075
|
+
return [...byTaskId.values()];
|
|
1076
|
+
}
|
|
1077
|
+
/**
|
|
1078
|
+
* Write a run's baseline onto its own task, for a run whose task was opened before the baseline
|
|
1079
|
+
* existed: a GENERATION STEP, whose window captures it after the execution is open. A coding run
|
|
1080
|
+
* carries it from its start ({@link buildApplicationCodingTaskInput}). Best-effort: the step runs
|
|
1081
|
+
* whether or not its recovery evidence could be written.
|
|
1082
|
+
*/
|
|
1083
|
+
async recordRunBaselineOnTask(taskId, baseline, sessionContext) {
|
|
1084
|
+
try {
|
|
1085
|
+
const row = await this.executionsService.getActorTask(taskId, sessionContext);
|
|
1086
|
+
const input = isRecordValue(row.input) ? row.input : {};
|
|
1087
|
+
await this.executionsService.updateActorTask(taskId, {
|
|
1088
|
+
input: {
|
|
1089
|
+
...input,
|
|
1090
|
+
baseline: { headSha: baseline.headSha, capturedAt: baseline.capturedAt, dirtyFileCount: Object.keys(baseline.files).length, files: baseline.files },
|
|
463
1091
|
},
|
|
1092
|
+
}, sessionContext);
|
|
1093
|
+
}
|
|
1094
|
+
catch (error) {
|
|
1095
|
+
this.logger.warn('Could not record a generation step\'s baseline; an interruption would leave its writes for review', {
|
|
1096
|
+
taskId, error: describeCaughtError(error),
|
|
464
1097
|
});
|
|
465
|
-
await this.executionsService.updateActorTask(task._id, updatePayload, sessionContext);
|
|
466
|
-
reconciledTaskIds.push(task._id);
|
|
467
1098
|
}
|
|
468
|
-
|
|
1099
|
+
}
|
|
1100
|
+
/**
|
|
1101
|
+
* The build system's startup sweep (#1359), with the same recovery the coding sweep has. A
|
|
1102
|
+
* generation step interrupted mid-pass leaves the files it had written, and its re-dispatch SKIPS
|
|
1103
|
+
* them as fresh, so they never enter any later change set. Measured 2026-09-24: an interrupted
|
|
1104
|
+
* `i18n-labels` pass left ten label files uncommitted that no later run would ever commit.
|
|
1105
|
+
*/
|
|
1106
|
+
async reconcileInterruptedBuildGenerationSteps(buildSystemRef, sessionContext,
|
|
1107
|
+
/** As on the coding sweep: told each interrupted step as it is found; the caller recovers the writes. */
|
|
1108
|
+
options) {
|
|
1109
|
+
const interrupted = [];
|
|
1110
|
+
const { aborted } = await this.actorsSystem.reconcileOrphanedActorExecutions(buildSystemRef, sessionContext, {
|
|
1111
|
+
describeOrphan: async (orphan) => {
|
|
1112
|
+
/*
|
|
1113
|
+
* Not concurrent by its own subject. Whether it ran beside concurrent coding runs is decided at
|
|
1114
|
+
* recovery from the evidence: another run the same restart stopped, or a concurrent run that
|
|
1115
|
+
* recorded writes during the step's window (a wave runs a step inline while its runs write).
|
|
1116
|
+
*/
|
|
1117
|
+
for (const task of orphan.tasks) {
|
|
1118
|
+
const run = { taskId: task._id, sharedTree: false };
|
|
1119
|
+
interrupted.push(run);
|
|
1120
|
+
options?.onInterrupted?.(run);
|
|
1121
|
+
}
|
|
1122
|
+
return { failure: { message: 'The host running this generation step stopped before it concluded.' } };
|
|
1123
|
+
},
|
|
1124
|
+
});
|
|
1125
|
+
return { aborted, interrupted };
|
|
1126
|
+
}
|
|
1127
|
+
/**
|
|
1128
|
+
* Recover the writes of EVERY run one restart interrupted, coding runs and generation steps alike,
|
|
1129
|
+
* in one pass (#1805). A build wave runs a generation step beside its coding runs, so runs of both
|
|
1130
|
+
* kinds share the tree; recovered by two separate sweeps, the first would commit the other kind's
|
|
1131
|
+
* files under its own run's name. The sweeps only settle and report; startup collects what both
|
|
1132
|
+
* report and calls this once with the union.
|
|
1133
|
+
*/
|
|
1134
|
+
async recoverWritesOfInterruptedRuns(runs, sessionContext) {
|
|
1135
|
+
const byTaskId = new Map();
|
|
1136
|
+
for (const run of runs)
|
|
1137
|
+
byTaskId.set(run.taskId, { taskId: run.taskId, sharedTree: run.sharedTree || byTaskId.get(run.taskId)?.sharedTree === true });
|
|
1138
|
+
await this.recoverInterruptedRunWrites([...byTaskId.values()], sessionContext);
|
|
1139
|
+
}
|
|
1140
|
+
/**
|
|
1141
|
+
* What a reviewer needs to see on a coding run the host stopped under: where HEAD is and how
|
|
1142
|
+
* dirty the tree is NOW. A capture that fails is recorded as such — an interrupted run with no
|
|
1143
|
+
* evidence is still an interrupted run, and must not stay `PROCESSING` because git was unavailable.
|
|
1144
|
+
*/
|
|
1145
|
+
async describeInterruptedCodingRun() {
|
|
1146
|
+
let currentSnapshot = null;
|
|
1147
|
+
let captureError = null;
|
|
1148
|
+
try {
|
|
1149
|
+
currentSnapshot = await this.gitChangeSetService.captureWorktreeSnapshot();
|
|
1150
|
+
}
|
|
1151
|
+
catch (error) {
|
|
1152
|
+
captureError = error;
|
|
1153
|
+
}
|
|
1154
|
+
return {
|
|
1155
|
+
succeeded: false,
|
|
1156
|
+
disposition: ApplicationCodingTaskDisposition.INTERRUPTED_REQUIRES_REVIEW,
|
|
1157
|
+
recoveryEvidence: currentSnapshot
|
|
1158
|
+
? {
|
|
1159
|
+
headSha: currentSnapshot.headSha,
|
|
1160
|
+
dirtyFileCount: Object.keys(currentSnapshot.files).length,
|
|
1161
|
+
capturedAt: currentSnapshot.capturedAt,
|
|
1162
|
+
}
|
|
1163
|
+
: null,
|
|
1164
|
+
...(captureError ? { recoveryCaptureError: buildOutputErrorPayload(captureError) } : {}),
|
|
1165
|
+
};
|
|
469
1166
|
}
|
|
470
1167
|
/**
|
|
471
1168
|
* Readiness snapshot for the status route. HONESTY CONTRACT: the
|
|
@@ -495,15 +1192,145 @@ let CodingAgentDispatchCompanionService = class CodingAgentDispatchCompanionServ
|
|
|
495
1192
|
* controller again, which is a no-op.
|
|
496
1193
|
*/
|
|
497
1194
|
cancelActiveApplicationCodingTask() {
|
|
498
|
-
|
|
499
|
-
|
|
1195
|
+
// Every run this process drives: a wave is cancelled as one (#1528). The first is named, as before.
|
|
1196
|
+
// An entry whose park is being WITHDRAWN runs nothing: it was cancelled already (#1581).
|
|
1197
|
+
const active = [...this.activeRuns.values()].filter((run) => run.withdrawal === undefined);
|
|
1198
|
+
if (active.length === 0) {
|
|
500
1199
|
return null;
|
|
501
1200
|
}
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
1201
|
+
for (const run of active) {
|
|
1202
|
+
this.logDebug('Cancelling active application coding task', { taskId: run.taskId });
|
|
1203
|
+
run.abortController.abort();
|
|
1204
|
+
}
|
|
1205
|
+
return { taskId: active[0].taskId, startedAt: active[0].startedAt };
|
|
1206
|
+
}
|
|
1207
|
+
/**
|
|
1208
|
+
* Cancel ONE coding run, named by its task id — the parked-question row's own verb (#1581, seventh
|
|
1209
|
+
* review F2). {@link cancelActiveApplicationCodingTask} ends everything this process drives, so from
|
|
1210
|
+
* a parked row it did nothing when no chain held that run, and otherwise stopped OTHER runs while
|
|
1211
|
+
* leaving the row's own run parked.
|
|
1212
|
+
*
|
|
1213
|
+
* Three answers, and what each promises (#1581, seventh to eleventh reviews):
|
|
1214
|
+
*
|
|
1215
|
+
* - A run this process is still handling — a turn, or its question being offered to the answering
|
|
1216
|
+
* agent — is SIGNALLED, exactly as the process-wide cancel signals it: `cancelled: true` means the
|
|
1217
|
+
* signal was given, and its chain withdraws the park on its way out. That withdraw's outcome is
|
|
1218
|
+
* recorded on the entry, so a second cancel meanwhile AWAITS it and reports it; a cancel after the
|
|
1219
|
+
* chain has gone finds the park (if the withdraw failed) and withdraws it itself.
|
|
1220
|
+
* - A run no chain holds here is WAITING, and is withdrawn at once under a guard entry: `cancelled:
|
|
1221
|
+
* true` only once it is gone, else a 409 saying the question is still waiting or could not be read.
|
|
1222
|
+
* - `cancelled: false` when the task is neither — no chain, and no park after reading twice (a chain
|
|
1223
|
+
* ending during the first read may have left one).
|
|
1224
|
+
*
|
|
1225
|
+
* A park read that FAILS is never taken for "nothing is waiting": with a live chain the chain is still
|
|
1226
|
+
* signalled, since that needs no read; without one the answer is the UNCONFIRMED 409.
|
|
1227
|
+
*/
|
|
1228
|
+
async cancelApplicationCodingTask(taskId, sessionContext,
|
|
1229
|
+
/** The signed-in person cancelling (#1751), when the door has one: the withdrawal records them as the decider. */
|
|
1230
|
+
options) {
|
|
1231
|
+
// Read FIRST, then look for a chain: one that began meanwhile (a person's answer) owns the run by now.
|
|
1232
|
+
// A failed read stops nothing here: a live chain is signalled without one (#1581, eleventh review R11-1).
|
|
1233
|
+
const readPark = () => this.readParkedCodingRun(taskId, sessionContext, { strict: true })
|
|
1234
|
+
.then((parked) => ({ parked, failed: false }), (error) => {
|
|
1235
|
+
this.logger.warn('A per-run cancel could not read the coding run\'s park', { taskId, error: describeCaughtError(error) });
|
|
1236
|
+
return { parked: null, failed: true };
|
|
1237
|
+
});
|
|
1238
|
+
let read = await readPark();
|
|
1239
|
+
let live = this.activeRuns.get(taskId);
|
|
1240
|
+
if (!live && !read.parked && !read.failed) {
|
|
1241
|
+
// A chain that ended during the read may have left the run parked: read once more (#1581, tenth review R10-7).
|
|
1242
|
+
read = await readPark();
|
|
1243
|
+
live = this.activeRuns.get(taskId);
|
|
1244
|
+
}
|
|
1245
|
+
const { parked } = read;
|
|
1246
|
+
if (live) {
|
|
1247
|
+
// Already cancelled, its park being withdrawn: answer with THAT withdraw's outcome, never a second one (R9-4, R10-4).
|
|
1248
|
+
if (live.withdrawal)
|
|
1249
|
+
return this.reportCancelledPark(taskId, await live.withdrawal, live.startedAt);
|
|
1250
|
+
// Signal the chain; it ends the run on its way out, naming the canceller when there is one.
|
|
1251
|
+
this.logDebug('Cancelling one application coding task', { taskId });
|
|
1252
|
+
if (options?.actingUserId && !this.cancellersByController.has(live.abortController)) {
|
|
1253
|
+
this.cancellersByController.set(live.abortController, options.actingUserId);
|
|
1254
|
+
}
|
|
1255
|
+
live.abortController.abort();
|
|
1256
|
+
return { cancelled: true, taskId, startedAt: live.startedAt };
|
|
1257
|
+
}
|
|
1258
|
+
if (read.failed)
|
|
1259
|
+
return this.reportCancelledPark(taskId, CancelledParkOutcome.UNCONFIRMED);
|
|
1260
|
+
if (!parked)
|
|
1261
|
+
return { cancelled: false };
|
|
1262
|
+
/*
|
|
1263
|
+
* No chain will end it, so this door does (#1581, eighth review R8-2). Guarded by a registration taken
|
|
1264
|
+
* in the same synchronous step as the check above: a person's answer arriving meanwhile is refused 409
|
|
1265
|
+
* by `refuseWhileRunChainIsLive` rather than racing the withdraw in the driver, which takes no lock
|
|
1266
|
+
* between reading a run as waiting and moving it; and a second cancel awaits this withdraw.
|
|
1267
|
+
*/
|
|
1268
|
+
const guard = { taskId, startedAt: new Date().toISOString(), abortController: new AbortController(), mode: parked.mode, withdrawalGuard: true };
|
|
1269
|
+
guard.abortController.abort();
|
|
1270
|
+
this.activeRuns.set(taskId, guard);
|
|
1271
|
+
guard.withdrawal = this.endParkIfWaiting(taskId, sessionContext, options?.actingUserId);
|
|
1272
|
+
try {
|
|
1273
|
+
const outcome = await guard.withdrawal;
|
|
1274
|
+
if (outcome === CancelledParkOutcome.ENDED)
|
|
1275
|
+
this.announceRunStateChanged();
|
|
1276
|
+
return this.reportCancelledPark(taskId, outcome);
|
|
1277
|
+
}
|
|
1278
|
+
finally {
|
|
1279
|
+
if (this.activeRuns.get(taskId) === guard)
|
|
1280
|
+
this.activeRuns.delete(taskId);
|
|
1281
|
+
}
|
|
1282
|
+
}
|
|
1283
|
+
/** A cancel's answer from what became of the park: ended, or a 409 that says why it is not (#1581, tenth review). */
|
|
1284
|
+
reportCancelledPark(taskId, outcome, startedAt) {
|
|
1285
|
+
if (outcome === CancelledParkOutcome.ENDED)
|
|
1286
|
+
return { cancelled: true, taskId, ...(startedAt !== undefined ? { startedAt } : {}) };
|
|
1287
|
+
throw this.buildDispatchConflictError(outcome === CancelledParkOutcome.STILL_WAITING
|
|
1288
|
+
? `Coding task ${taskId} could not be cancelled: its question could not be withdrawn and is still waiting. Try again.`
|
|
1289
|
+
: `Coding task ${taskId} could not be confirmed cancelled: the run could not be read. Check it, and cancel it again if it is still waiting.`);
|
|
1290
|
+
}
|
|
1291
|
+
/**
|
|
1292
|
+
* The run holding the worktree right now, from the actor plane (#1361) — what the creation board's
|
|
1293
|
+
* coding-lane badge shows. It read this process's cancel handle until 2026-09-20, so a run driven
|
|
1294
|
+
* by another process, or selected and not yet admitted, showed as "idle". A status read does not
|
|
1295
|
+
* fail because the plane is unreachable: it then answers what this process is driving.
|
|
1296
|
+
*/
|
|
1297
|
+
async readActiveCodingRun() {
|
|
1298
|
+
try {
|
|
1299
|
+
const holder = await this.actorsSystem.readExclusiveSubjectHolder(APPLICATION_CODING_SYSTEM_REF, APPLICATION_CODING_WORKTREE_SUBJECT);
|
|
1300
|
+
return holder ? { taskId: holder.tasks[0]?._id ?? holder._id, startedAt: holder.createdAt ?? new Date().toISOString() } : null;
|
|
1301
|
+
}
|
|
1302
|
+
catch {
|
|
1303
|
+
const active = [...this.activeRuns.values()].find((run) => run.withdrawal === undefined);
|
|
1304
|
+
return active ? { taskId: active.taskId, startedAt: active.startedAt } : null;
|
|
1305
|
+
}
|
|
1306
|
+
}
|
|
1307
|
+
/** The last login read, shared by every status poll inside {@link CODING_AGENT_LOGIN_CACHE_MS}. */
|
|
1308
|
+
codingAgentLoginRead = null;
|
|
1309
|
+
/**
|
|
1310
|
+
* The selected agent's login on this host (#1637); `null` when the selection or its declaration is
|
|
1311
|
+
* unavailable.
|
|
1312
|
+
*
|
|
1313
|
+
* CACHED, because `getStatus` is polled — the creation board re-derives its watched boards every 15 s
|
|
1314
|
+
* and the status route is on the trace-exempt polling list — and the probe runs the agent's own status
|
|
1315
|
+
* command, which can take seconds. One read serves every poll inside the window, and concurrent polls
|
|
1316
|
+
* share the same in-flight read. Signing in shows up within the window, which is the cost.
|
|
1317
|
+
*/
|
|
1318
|
+
readSelectedCodingAgentLogin() {
|
|
1319
|
+
const now = Date.now();
|
|
1320
|
+
if (this.codingAgentLoginRead && now - this.codingAgentLoginRead.at < CODING_AGENT_LOGIN_CACHE_MS)
|
|
1321
|
+
return this.codingAgentLoginRead.value;
|
|
1322
|
+
const value = (async () => {
|
|
1323
|
+
try {
|
|
1324
|
+
return await this.agentsService.readCodingAgentHostLogin(resolveSelectedApplicationCodingAgentBinding().providerRef);
|
|
1325
|
+
}
|
|
1326
|
+
catch {
|
|
1327
|
+
return null;
|
|
1328
|
+
}
|
|
1329
|
+
})();
|
|
1330
|
+
this.codingAgentLoginRead = { at: now, value };
|
|
1331
|
+
return value;
|
|
505
1332
|
}
|
|
506
|
-
getStatus() {
|
|
1333
|
+
async getStatus() {
|
|
507
1334
|
return {
|
|
508
1335
|
// Reports a fact this service can actually establish: whether the coding
|
|
509
1336
|
// agent is registered. It deliberately does NOT claim the transport is
|
|
@@ -513,9 +1340,10 @@ let CodingAgentDispatchCompanionService = class CodingAgentDispatchCompanionServ
|
|
|
513
1340
|
// Every declared agent must resolve, not merely the default: a registry
|
|
514
1341
|
// missing the SELECTED agent reports healthy while dispatch refuses.
|
|
515
1342
|
codingAgentRegistered: APPLICATION_CODING_AGENT_REFS.every((ref) => this.agentsService.getAgent(ref) !== undefined),
|
|
516
|
-
|
|
1343
|
+
codingAgentLogin: await this.readSelectedCodingAgentLogin(),
|
|
1344
|
+
activeRun: await this.readActiveCodingRun(),
|
|
517
1345
|
// The answerable set: what is parked waiting for an operator response.
|
|
518
|
-
pendingQuestions: this.listPendingCodingQuestions(),
|
|
1346
|
+
pendingQuestions: await this.listPendingCodingQuestions(),
|
|
519
1347
|
limits: {
|
|
520
1348
|
defaultTimeoutMs: DISPATCH_DEFAULT_TIMEOUT_MS,
|
|
521
1349
|
hardMaxTimeoutMs: DISPATCH_HARD_MAX_TIMEOUT_MS,
|
|
@@ -543,59 +1371,416 @@ let CodingAgentDispatchCompanionService = class CodingAgentDispatchCompanionServ
|
|
|
543
1371
|
* dormant surface that later readers mistake for a guarantee. The candidate
|
|
544
1372
|
* ref is exact per ITERATION, which is the granularity an auditor wants.
|
|
545
1373
|
*/
|
|
546
|
-
async
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
1374
|
+
async openApplicationCodingExecution(task, baseline, sessionContext, origin, mode = CodingRunConcurrency.SINGLE_FLIGHT) {
|
|
1375
|
+
/*
|
|
1376
|
+
* ONE EXECUTION PER CODING RUN (#1359), opened by the engine's driver.
|
|
1377
|
+
*
|
|
1378
|
+
* Until 2026-09-20 this created a bare task with no execution parent, so a coding run had no row
|
|
1379
|
+
* saying "this is a run" and nowhere to hold a pending question or its resume inputs. Per RUN
|
|
1380
|
+
* rather than per build phase, because a parked run releases the worktree lock and the
|
|
1381
|
+
* dispatcher moves on: several questions can stand while a sibling runs, and an execution has
|
|
1382
|
+
* one `suspension`.
|
|
1383
|
+
*/
|
|
1384
|
+
return this.actorsSystem.openActorExecution(this.buildApplicationCodingExecutionRequest(task, baseline, sessionContext, origin, mode));
|
|
1385
|
+
}
|
|
1386
|
+
/**
|
|
1387
|
+
* Open a coding run's execution at the moment its task is SELECTED — `PENDING`, not started.
|
|
1388
|
+
*
|
|
1389
|
+
* A build dispatch selects a task and then waits: for the compile watchers to go quiet, then for
|
|
1390
|
+
* the worktree lock. That stretch can be minutes, and until #1359 it existed only in an in-memory
|
|
1391
|
+
* dispatch record — so a dispatch that failed inside it failed nowhere durable, and a companion
|
|
1392
|
+
* restart forgot it had been selected at all. The row says `PENDING` for exactly that stretch;
|
|
1393
|
+
* `runApplicationCodingTask` starts it at admission, and the caller settles it `ABORTED` if the run
|
|
1394
|
+
* never gets that far — the host declined to start it, which is no attempt of the task's (#1581) —
|
|
1395
|
+
* or `FAILED` when the task's own contract was refused as invalid.
|
|
1396
|
+
*
|
|
1397
|
+
* The input carries no baseline yet: a baseline is captured under the lock this run has not taken.
|
|
1398
|
+
*/
|
|
1399
|
+
async openSelectedApplicationCodingExecution(rawTask, sessionContext, origin, mode = CodingRunConcurrency.SINGLE_FLIGHT) {
|
|
1400
|
+
const task = this.admitTypedInput(() => MetaWorkflow_ApplicationCodingTaskContractSchema.parse(rawTask), 'Application coding task contract is not valid.');
|
|
1401
|
+
await this.refuseWhileWorktreeIsHeld(null, sessionContext);
|
|
1402
|
+
if (mode === CodingRunConcurrency.SINGLE_FLIGHT)
|
|
1403
|
+
await this.refuseWhileConcurrentRunsInFlight(sessionContext);
|
|
1404
|
+
const opened = await this.actorsSystem
|
|
1405
|
+
.openActorExecution({ ...this.buildApplicationCodingExecutionRequest(task, null, sessionContext, origin, mode), deferred: true })
|
|
1406
|
+
.catch((error) => { throw this.translateWorktreeBusy(error); });
|
|
1407
|
+
// SELECTED: a PENDING execution is already in flight to the next-task selection (#1310), whichever
|
|
1408
|
+
// door opened it — the resource operation, `POST /build/dispatch-next`, the playbook build tier.
|
|
1409
|
+
this.announceRunStateChanged();
|
|
1410
|
+
return opened;
|
|
1411
|
+
}
|
|
1412
|
+
/**
|
|
1413
|
+
* Run `critical` holding the workspace lock BRIEFLY, waiting for it rather than refusing (#1528).
|
|
1414
|
+
*
|
|
1415
|
+
* For a concurrent run's commits: the tree is shared on purpose, but git's index admits one writer,
|
|
1416
|
+
* and a generation step or a CLI writer may hold the lock for its whole duration. Waiting up to about
|
|
1417
|
+
* ten minutes is right here, where the single-flight lane's fail-fast would drop a finished run's
|
|
1418
|
+
* commit; a commit that still cannot get the lock is left for the wave reconciliation.
|
|
1419
|
+
*/
|
|
1420
|
+
underBriefWorktreeLock(critical) {
|
|
1421
|
+
return withDedicatedFileLock(this.getWorkspaceMutationLockPath(), critical, {
|
|
1422
|
+
retries: { retries: 120, minTimeout: 500, maxTimeout: 5_000 },
|
|
1423
|
+
});
|
|
1424
|
+
}
|
|
1425
|
+
/** Whether a CONCURRENT coding run is live now (#1528): it writes in the tree without holding the workspace lock. */
|
|
1426
|
+
async concurrentCodingRunsLive(sessionContext) {
|
|
1427
|
+
if (this.concurrentRunLiveInProcess())
|
|
1428
|
+
return true;
|
|
1429
|
+
// The actor plane also sees a run another process drives. Asked twice; if it cannot answer, this
|
|
1430
|
+
// process's own runs are the answer (#1805 review R5), never a blanket "shared" nothing would ever settle.
|
|
1431
|
+
for (let attempt = 0; attempt < 2; attempt += 1) {
|
|
1432
|
+
try {
|
|
1433
|
+
return (await this.listInFlightCodingRuns(sessionContext)).some((run) => isConcurrentRunSubject(run.exclusiveSubject));
|
|
1434
|
+
}
|
|
1435
|
+
catch (error) {
|
|
1436
|
+
if (attempt === 1) {
|
|
1437
|
+
this.logger.warn('Could not list the live coding runs; judging sharing by this process\'s own runs', { error: describeCaughtError(error) });
|
|
1438
|
+
}
|
|
1439
|
+
}
|
|
1440
|
+
}
|
|
1441
|
+
return false;
|
|
1442
|
+
}
|
|
1443
|
+
/** Whether this process drives a CONCURRENT run now — one writing the tree without holding the workspace lock. */
|
|
1444
|
+
concurrentRunLiveInProcess(exceptTaskIds = []) {
|
|
1445
|
+
return [...this.activeRuns.values()].some((run) => run.mode === CodingRunConcurrency.CONCURRENT && run.withdrawalGuard !== true && !exceptTaskIds.includes(run.taskId));
|
|
1446
|
+
}
|
|
1447
|
+
/**
|
|
1448
|
+
* When the current SHARING EPISODE began: the first instant, since the tree was last written by one run
|
|
1449
|
+
* at a time, that a concurrent run (or a step beside one) wrote it (#1805 review R5, R9). Process-local:
|
|
1450
|
+
* a restart ends every episode, and restart recovery covers what it interrupted.
|
|
1451
|
+
*/
|
|
1452
|
+
sharingEpisodeStartedAt;
|
|
1453
|
+
markSharingEpisodeStarted(at) {
|
|
1454
|
+
if (this.sharingEpisodeStartedAt === undefined || at < this.sharingEpisodeStartedAt)
|
|
1455
|
+
this.sharingEpisodeStartedAt = at;
|
|
1456
|
+
}
|
|
1457
|
+
/**
|
|
1458
|
+
* Register a run; a CONCURRENT one opens a sharing episode when none is open. One of the two doors that
|
|
1459
|
+
* keep the dev supervisor's view of "a coding agent is running" in step with this process's own
|
|
1460
|
+
* (see {@link CODING_RUN_HEARTBEAT_RELATIVE_PATH}).
|
|
1461
|
+
*/
|
|
1462
|
+
registerActiveRun(run) {
|
|
1463
|
+
if (run.mode === CodingRunConcurrency.CONCURRENT)
|
|
1464
|
+
this.markSharingEpisodeStarted(new Date().toISOString());
|
|
1465
|
+
this.activeRuns.set(run.taskId, run);
|
|
1466
|
+
this.adjustCodingWorkDepth(run.taskId, 1);
|
|
1467
|
+
}
|
|
1468
|
+
/**
|
|
1469
|
+
* Unregister a run. When it was the last CONCURRENT run live, the sharing episode has ended and nothing
|
|
1470
|
+
* is writing beside anything: what the episode's runs left is committed together, as a wave's end does
|
|
1471
|
+
* (#1805 review R5). That is what commits a generation step, or a resumed parked run, that shared the tree
|
|
1472
|
+
* outside any wave — no wave's end would ever reach them.
|
|
1473
|
+
*/
|
|
1474
|
+
unregisterActiveRun(taskId) {
|
|
1475
|
+
const was = this.activeRuns.get(taskId);
|
|
1476
|
+
this.activeRuns.delete(taskId);
|
|
1477
|
+
this.adjustCodingWorkDepth(taskId, -1);
|
|
1478
|
+
if (was?.mode !== CodingRunConcurrency.CONCURRENT || this.concurrentRunLiveInProcess())
|
|
1479
|
+
return;
|
|
1480
|
+
const startedAt = this.sharingEpisodeStartedAt;
|
|
1481
|
+
this.sharingEpisodeStartedAt = undefined;
|
|
1482
|
+
if (startedAt === undefined)
|
|
1483
|
+
return;
|
|
1484
|
+
this.sharingEpisodeReconciliation = this.reconcileSharedTree({ startedAt, taskIds: [] }).then(
|
|
1485
|
+
// Deferred (a run began writing while this waited for the lock), or the door failed: the episode goes on,
|
|
1486
|
+
// from the same start, for the next reconciliation (#1805 review 5 F3).
|
|
1487
|
+
({ deferred, failed }) => { if (deferred || failed)
|
|
1488
|
+
this.markSharingEpisodeStarted(startedAt); }, (error) => {
|
|
1489
|
+
this.markSharingEpisodeStarted(startedAt);
|
|
1490
|
+
this.logger.warn('Could not commit what a sharing episode left; it is kept for the next reconciliation', { error: describeCaughtError(error) });
|
|
1491
|
+
});
|
|
1492
|
+
}
|
|
1493
|
+
/** The reconciliation the last sharing episode's end started, for a caller that must see its commit. */
|
|
1494
|
+
sharingEpisodeReconciliation = Promise.resolve();
|
|
1495
|
+
/** The live coding runs — selected, admitted or running — from the actor plane; see {@link listInFlightCodingRuns}. */
|
|
1496
|
+
async listInFlightCodingRuns(sessionContext) {
|
|
1497
|
+
return listInFlightCodingRuns(this.executionsService, sessionContext);
|
|
1498
|
+
}
|
|
1499
|
+
/** The live run of one build task, or `null` — what the wave skips, so no task is built twice at once. */
|
|
1500
|
+
async findInFlightRunForBuildTask(buildTaskRef, sessionContext) {
|
|
1501
|
+
const live = (await this.listInFlightCodingRuns(sessionContext)).find((run) => run.taskRef === buildTaskRef);
|
|
1502
|
+
return live ? { executionId: live.executionId } : null;
|
|
1503
|
+
}
|
|
1504
|
+
/**
|
|
1505
|
+
* Refuse (409) a SINGLE-FLIGHT run while any concurrent run is live (#1528).
|
|
1506
|
+
*
|
|
1507
|
+
* Two reasons, and the second is why it is explicit rather than incidental. A single-flight run was
|
|
1508
|
+
* promised the tree to itself. And the single-flight door is the one an agent can reach from its own
|
|
1509
|
+
* shell: until concurrency, the global lock refused a running agent's dispatch as a SIDE EFFECT (the
|
|
1510
|
+
* P-35 recursion cap). A concurrent run does not hold that lock, so without this a recursing agent
|
|
1511
|
+
* would be admitted beside its own wave.
|
|
1512
|
+
*/
|
|
1513
|
+
async refuseWhileConcurrentRunsInFlight(sessionContext) {
|
|
1514
|
+
const concurrent = (await this.listInFlightCodingRuns(sessionContext)).filter((run) => isConcurrentRunSubject(run.exclusiveSubject));
|
|
1515
|
+
if (concurrent.length === 0)
|
|
1516
|
+
return;
|
|
1517
|
+
throw this.buildDispatchConflictError(`${concurrent.length} coding run(s) of a parallel build wave are live (${concurrent.map((run) => run.taskRef ?? run.executionId).join(', ')}). `
|
|
1518
|
+
+ 'A single run cannot start beside them; it runs after the wave, or as part of the next one.');
|
|
1519
|
+
}
|
|
1520
|
+
/** Record that a run entered the tree, for the runs it will overlap (#1528). */
|
|
1521
|
+
openCodingRunWindow(taskId, taskRef) {
|
|
1522
|
+
const now = Date.now();
|
|
1523
|
+
this.codingRunWindows = this.codingRunWindows
|
|
1524
|
+
.filter((window) => window.taskId !== taskId && (window.endedAtMs === undefined || now - window.endedAtMs < CODING_RUN_WINDOW_RETENTION_MS));
|
|
1525
|
+
this.codingRunWindows.push({ taskId, taskRef, startedAtMs: now });
|
|
1526
|
+
}
|
|
1527
|
+
/** End a run's window if nothing closed it — a parked run, or one that ended without a result. Idempotent. */
|
|
1528
|
+
endCodingRunWindow(taskId) {
|
|
1529
|
+
const endedAtMs = Date.now();
|
|
1530
|
+
this.codingRunWindows = this.codingRunWindows.map((window) => window.taskId === taskId && window.endedAtMs === undefined
|
|
1531
|
+
? { ...window, endedAtMs }
|
|
1532
|
+
: window);
|
|
1533
|
+
}
|
|
1534
|
+
/**
|
|
1535
|
+
* Close a run's window with the paths it changed, and say which runs shared the tree with it and
|
|
1536
|
+
* which of those paths they changed too (#1528). `null` when it overlapped nothing — a run alone in
|
|
1537
|
+
* the tree records nothing new.
|
|
1538
|
+
*/
|
|
1539
|
+
closeCodingRunWindow(taskId, changedPaths) {
|
|
1540
|
+
const window = this.codingRunWindows.find((candidate) => candidate.taskId === taskId);
|
|
1541
|
+
if (!window)
|
|
1542
|
+
return null;
|
|
1543
|
+
const endedAtMs = Date.now();
|
|
1544
|
+
const record = describeRunConcurrency(this.codingRunWindows, { taskId, startedAtMs: window.startedAtMs, endedAtMs }, changedPaths);
|
|
1545
|
+
this.codingRunWindows = this.codingRunWindows.map((candidate) => candidate.taskId === taskId
|
|
1546
|
+
? { ...candidate, endedAtMs, changedPaths: [...changedPaths] }
|
|
1547
|
+
: candidate);
|
|
1548
|
+
return record.overlappingTaskRefs.length > 0 ? record : null;
|
|
1549
|
+
}
|
|
1550
|
+
/**
|
|
1551
|
+
* REPAIR at the end of a wave (#1528, #1805): commit what the wave's runs left in the tree, now that
|
|
1552
|
+
* nothing is writing, as ONE change naming every run whose writes it may carry.
|
|
1553
|
+
*
|
|
1554
|
+
* Under concurrency each run's own accept commits only what it claimed, and refuses the rest, so the
|
|
1555
|
+
* tree ends holding the merged remainder. That remainder cannot be attributed: an agent writing through
|
|
1556
|
+
* a shell claims nothing, so a file one run's capture holds may be a sibling's — measured 2026-09-27, a
|
|
1557
|
+
* FAILED run's files committed under a finisher's name by the per-task reconciliation this replaces. So
|
|
1558
|
+
* it is committed together, writer unknown (`acceptSharedTreeRunsTogether`).
|
|
1559
|
+
*
|
|
1560
|
+
* Which runs: every run the wave dispatched (`taskIds`, failed runs included) and every concurrent run
|
|
1561
|
+
* that recorded writes since the wave began (`startedAt`) — which brings in a generation step the wave
|
|
1562
|
+
* ran inline while its coding runs wrote. Only under the posture that lets the system accept, and never
|
|
1563
|
+
* a path another lane produced.
|
|
1564
|
+
*/
|
|
1565
|
+
async reconcileWaveAcceptance(input) {
|
|
1566
|
+
return (await this.reconcileSharedTree(input)).results;
|
|
1567
|
+
}
|
|
1568
|
+
/**
|
|
1569
|
+
* {@link reconcileWaveAcceptance}, saying whether it DEFERRED — the sharing episode's end needs to know, so a
|
|
1570
|
+
* deferred or failed reconcile does not lose the episode it was asked for (#1805 review F5).
|
|
1571
|
+
*
|
|
1572
|
+
* Everything that decides what to commit is read INSIDE the workspace lock: whether a concurrent run
|
|
1573
|
+
* outside these runs is still writing (R9 — its partial files sit in these runs' captures), and which
|
|
1574
|
+
* concurrent runs recorded writes since `startedAt`. Read before the lock, a run admitted or recorded while
|
|
1575
|
+
* this one waited for the lock was invisible to it.
|
|
1576
|
+
*/
|
|
1577
|
+
async reconcileSharedTree(input) {
|
|
1578
|
+
let deferred = false;
|
|
1579
|
+
const results = await this.reconcileAcceptanceTogether(async () => {
|
|
1580
|
+
if (this.concurrentRunLiveInProcess(input.taskIds)) {
|
|
1581
|
+
deferred = true;
|
|
1582
|
+
this.logDebug('Deferred a reconciliation: a concurrent run outside it is still writing', { taskIds: input.taskIds });
|
|
1583
|
+
return [];
|
|
1584
|
+
}
|
|
1585
|
+
const during = (await this.codingRunWriteRegister.list())
|
|
1586
|
+
.filter((record) => record.concurrent === true && record.at >= input.startedAt)
|
|
1587
|
+
.map((record) => record.taskId);
|
|
1588
|
+
return [...new Set([...input.taskIds, ...during])];
|
|
1589
|
+
}, AcceptOrigin.WAVE_RECONCILIATION, input.lock);
|
|
1590
|
+
return { deferred, failed: results.some((result) => result.error !== undefined), results };
|
|
1591
|
+
}
|
|
1592
|
+
/** Force-accept each task's latest registered run, under the posture, with the caller's origin. */
|
|
1593
|
+
async reconcileAcceptance(taskRefs, origin) {
|
|
1594
|
+
return this.underAcceptancePosture(async () => {
|
|
1595
|
+
const results = [];
|
|
1596
|
+
for (const taskRef of taskRefs) {
|
|
1597
|
+
try {
|
|
1598
|
+
const outcome = await this.acceptedChangeCommit.acceptCodingRun({ taskRef, force: true, origin });
|
|
1599
|
+
// A pathspec already at HEAD is not a repair: count paths only when a commit was made.
|
|
1600
|
+
results.push({ taskRef, committedPaths: outcome.alreadyCommitted ? 0 : outcome.committedPaths.length });
|
|
1601
|
+
}
|
|
1602
|
+
catch (error) {
|
|
1603
|
+
// Nothing left to commit is the usual answer: the run's own accept already took everything.
|
|
1604
|
+
results.push({ taskRef, committedPaths: 0, ...(error instanceof NothingToAcceptError ? {} : { error: describeCaughtError(error) }) });
|
|
1605
|
+
}
|
|
1606
|
+
}
|
|
1607
|
+
return results;
|
|
1608
|
+
});
|
|
1609
|
+
}
|
|
1610
|
+
/**
|
|
1611
|
+
* {@link reconcileAcceptance} for runs whose writer is not known (#1805): one forced commit naming every
|
|
1612
|
+
* run that contributed a file. A run that contributed reports that commit's path count; one that did
|
|
1613
|
+
* not reports 0, so the log never reads as if every run committed something.
|
|
1614
|
+
*/
|
|
1615
|
+
async reconcileAcceptanceTogether(
|
|
1616
|
+
/** The runs, or how to find them INSIDE the lock (#1805 review F5). */
|
|
1617
|
+
runs, origin,
|
|
1618
|
+
/** `takeLock: false` when the caller already holds the workspace lock. */
|
|
1619
|
+
lock = {}) {
|
|
1620
|
+
return this.underAcceptancePosture(async () => {
|
|
1621
|
+
const taskIds = typeof runs === 'function' ? await runs() : runs;
|
|
1622
|
+
if (taskIds.length === 0)
|
|
1623
|
+
return [];
|
|
1624
|
+
try {
|
|
1625
|
+
const outcome = await this.acceptedChangeCommit.acceptSharedTreeRunsTogether({ taskIds, origin });
|
|
1626
|
+
this.warnOfFilesNoRunLeft(outcome.refusedPaths, taskIds);
|
|
1627
|
+
const contributed = new Set(outcome.taskIds);
|
|
1628
|
+
const committedPaths = outcome.alreadyCommitted ? 0 : outcome.committedPaths.length;
|
|
1629
|
+
return taskIds.map((taskId) => ({ taskId, committedPaths: contributed.has(taskId) ? committedPaths : 0 }));
|
|
1630
|
+
}
|
|
1631
|
+
catch (error) {
|
|
1632
|
+
if (error instanceof NothingToAcceptError)
|
|
1633
|
+
this.warnOfFilesNoRunLeft(error.refusedPaths ?? [], taskIds);
|
|
1634
|
+
const detail = error instanceof NothingToAcceptError ? {} : { error: describeCaughtError(error) };
|
|
1635
|
+
return taskIds.map((taskId) => ({ taskId, committedPaths: 0, ...detail }));
|
|
1636
|
+
}
|
|
1637
|
+
}, lock);
|
|
1638
|
+
}
|
|
1639
|
+
/**
|
|
1640
|
+
* A file whose current state no run left — edited after every capture, by a person or a watcher — stays
|
|
1641
|
+
* uncommitted, which is right (#1805 review F6). But it stays dirty at every later run's baseline, and a
|
|
1642
|
+
* task declaring it never lands, so it is said at WARN, by name, where an operator reads.
|
|
1643
|
+
*/
|
|
1644
|
+
warnOfFilesNoRunLeft(refusedPaths, taskIds) {
|
|
1645
|
+
const nobodys = refusedPaths.filter((entry) => entry.reason === AcceptRefusalReason.EDITED_SINCE_THE_RUN);
|
|
1646
|
+
if (nobodys.length === 0)
|
|
1647
|
+
return;
|
|
1648
|
+
this.logger.warn('Files changed after every run that shared the tree recorded them stay uncommitted: commit or revert them by hand', {
|
|
1649
|
+
paths: nobodys.map((entry) => entry.path), taskIds,
|
|
1650
|
+
});
|
|
1651
|
+
}
|
|
1652
|
+
/**
|
|
1653
|
+
* What every automatic acceptance shares: nothing under a posture that keeps acceptance with a person,
|
|
1654
|
+
* the worktree lock while committing, and the run-accepted listeners told once something was committed.
|
|
1655
|
+
*/
|
|
1656
|
+
async underAcceptancePosture(accept,
|
|
1657
|
+
/** FALSE when the caller already holds the workspace lock, as a single-flight run's own accept does. */
|
|
1658
|
+
options = {}) {
|
|
1659
|
+
if (laneBoundaryTreatmentFor(APPLICATION_CREATION_AUTONOMY_POSTURE, PlaybookLaneBoundaryDecision.APPROVE_RESULT) !== LaneBoundaryTreatment.NOTIFY_AND_PROCEED)
|
|
1660
|
+
return [];
|
|
1661
|
+
let results = [];
|
|
1662
|
+
if (options.takeLock === false)
|
|
1663
|
+
results = await accept();
|
|
1664
|
+
else
|
|
1665
|
+
await this.underBriefWorktreeLock(async () => { results = await accept(); });
|
|
1666
|
+
if (results.some((result) => result.committedPaths > 0)) {
|
|
1667
|
+
for (const listener of this.runAcceptedListeners) {
|
|
1668
|
+
try {
|
|
1669
|
+
listener();
|
|
1670
|
+
}
|
|
1671
|
+
catch (error) {
|
|
1672
|
+
this.logDebug('A run-accepted listener threw', { error: describeCaughtError(error) });
|
|
1673
|
+
}
|
|
1674
|
+
}
|
|
1675
|
+
}
|
|
1676
|
+
return results;
|
|
1677
|
+
}
|
|
1678
|
+
/**
|
|
1679
|
+
* Refuse (409) while another coding run holds the worktree, NAMING it — the holder is read from the
|
|
1680
|
+
* actor plane, so the message is true after a restart and from a second process. `exceptExecutionId`
|
|
1681
|
+
* is the execution the caller itself opened at selection, which holds the subject legitimately.
|
|
1682
|
+
*/
|
|
1683
|
+
async refuseWhileWorktreeIsHeld(exceptExecutionId, sessionContext) {
|
|
1684
|
+
const holder = await this.actorsSystem.readExclusiveSubjectHolder(APPLICATION_CODING_SYSTEM_REF, APPLICATION_CODING_WORKTREE_SUBJECT, sessionContext);
|
|
1685
|
+
if (!holder || holder._id === exceptExecutionId)
|
|
1686
|
+
return;
|
|
1687
|
+
throw this.buildDispatchConflictError(`A coding-agent run is already active (task ${holder.tasks[0]?._id ?? 'unknown'}, execution ${holder._id}, ${holder.status}`
|
|
1688
|
+
+ `${holder.createdAt ? `, started ${holder.createdAt}` : ''}). Application coding tasks share one working tree.`);
|
|
1689
|
+
}
|
|
1690
|
+
/** The driver's own refusal — two callers raced past the fast 409 — in this lane's 409 shape. */
|
|
1691
|
+
translateWorktreeBusy(error) {
|
|
1692
|
+
return isActorExecutionSubjectBusyError(error)
|
|
1693
|
+
? this.buildDispatchConflictError('A coding-agent run took the working tree first. Application coding tasks share one working tree.')
|
|
1694
|
+
: error;
|
|
1695
|
+
}
|
|
1696
|
+
/** Admission of a run that was opened at selection: start it, completing its input with the baseline. */
|
|
1697
|
+
async startSelectedApplicationCodingExecution(selected, task, baseline, sessionContext, origin) {
|
|
1698
|
+
await this.actorsSystem.startActorExecution(selected, { taskInput: this.buildApplicationCodingTaskInput(task, baseline, origin) }, sessionContext);
|
|
1699
|
+
return selected;
|
|
1700
|
+
}
|
|
1701
|
+
buildApplicationCodingExecutionRequest(task, baseline, sessionContext, origin, mode = CodingRunConcurrency.SINGLE_FLIGHT) {
|
|
1702
|
+
return {
|
|
1703
|
+
systemRef: APPLICATION_CODING_SYSTEM_REF,
|
|
1704
|
+
// A single-flight run holds the application's working tree while it runs (#1361); a concurrent
|
|
1705
|
+
// one holds only its own task, so two runs of one task can never overlap (#1528).
|
|
1706
|
+
exclusiveSubject: applicationCodingExclusiveSubject(mode, task.taskRef),
|
|
554
1707
|
// The SELECTED agent, resolved once at creation and carried on the row —
|
|
555
1708
|
// so a task records which agent it was addressed to, and a selection
|
|
556
|
-
// changed between creation and claim cannot silently redirect it.
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
1709
|
+
// changed between creation and claim cannot silently redirect it. The
|
|
1710
|
+
// system declares one actor per binding under the binding's own ref.
|
|
1711
|
+
actorRef: resolveSelectedApplicationCodingAgentBinding().ref,
|
|
1712
|
+
scope: sessionContext,
|
|
1713
|
+
task: {
|
|
1714
|
+
title: `Application coding task ${task.taskRef}`,
|
|
1715
|
+
description: `Typed application coding task for ${task.objectiveRef}; acceptance is a commit, made by the loop under the autonomy posture or by a person on the workbench.`,
|
|
1716
|
+
topic: Actor_Task_Topics.IMPLEMENTATION,
|
|
1717
|
+
input: this.buildApplicationCodingTaskInput(task, baseline, origin),
|
|
1718
|
+
/*
|
|
1719
|
+
* The cross-plane join, carried in the GENERIC correlation envelope rather than in a
|
|
1720
|
+
* `workbenchBuildPlanTaskId` column on the actor-task row (#1348).
|
|
1721
|
+
*
|
|
1722
|
+
* The engine owns the slot and validates only that keys and values are non-empty strings;
|
|
1723
|
+
* this domain owns the keys. The value is the board's row identity — sanitized, which is the
|
|
1724
|
+
* ref verbatim today — so the creation plane can match its build-plan row to this task
|
|
1725
|
+
* without the generic platform row knowing what a build-plan task is.
|
|
1726
|
+
*/
|
|
1727
|
+
correlation: {
|
|
1728
|
+
domain: WORKBENCH_TASK_CORRELATION_DOMAIN,
|
|
1729
|
+
refs: {
|
|
1730
|
+
[WorkbenchTaskCorrelationRef.BUILD_PLAN_TASK]: sanitizeWorkbenchCreationPlaneIdentity(task.taskRef),
|
|
1731
|
+
// The thread the dispatch came from (#1454, Step 7), the same key a playbook run carries.
|
|
1732
|
+
...(origin?.conversationId ? { [WorkbenchTaskCorrelationRef.CONVERSATION]: origin.conversationId } : {}),
|
|
1733
|
+
},
|
|
578
1734
|
},
|
|
579
1735
|
},
|
|
580
|
-
|
|
581
|
-
startedAt: new Date().toISOString(),
|
|
582
|
-
});
|
|
583
|
-
return this.executionsService.createActorTask(payload, sessionContext);
|
|
1736
|
+
};
|
|
584
1737
|
}
|
|
585
1738
|
/**
|
|
586
|
-
*
|
|
587
|
-
*
|
|
588
|
-
*
|
|
1739
|
+
* The task row's INPUT — replayable task identity and guard evidence, never prompt/context bytes
|
|
1740
|
+
* (see the contract above `openApplicationCodingExecution`). `baseline` is `null` between
|
|
1741
|
+
* selection and admission, and says so rather than being absent: a reader can tell a run that has
|
|
1742
|
+
* not captured one from a row that forgot to record it.
|
|
589
1743
|
*/
|
|
590
|
-
|
|
1744
|
+
buildApplicationCodingTaskInput(task, baseline, origin) {
|
|
1745
|
+
return {
|
|
1746
|
+
taskRef: task.taskRef,
|
|
1747
|
+
// Read back by the dispatch projection, so the row says which conversation started it.
|
|
1748
|
+
...(origin?.conversationId ? { conversationId: origin.conversationId } : {}),
|
|
1749
|
+
objectiveRef: task.objectiveRef,
|
|
1750
|
+
candidateRef: task.candidateRef,
|
|
1751
|
+
mutationScope: task.mutationScope,
|
|
1752
|
+
contextPlan: {
|
|
1753
|
+
planRef: task.contextPlan.planRef,
|
|
1754
|
+
objectiveRef: task.contextPlan.objectiveRef,
|
|
1755
|
+
},
|
|
1756
|
+
contextSelection: {
|
|
1757
|
+
planRef: task.contextSelection.planRef,
|
|
1758
|
+
selectedSourceRefs: task.contextSelection.selectedSources.map((source) => source.sourceRef),
|
|
1759
|
+
selectedSourceCount: task.contextSelection.selectedSources.length,
|
|
1760
|
+
},
|
|
1761
|
+
verificationIntent: task.verificationIntent,
|
|
1762
|
+
installedSkillRefs: task.installedSkillRefs,
|
|
1763
|
+
baseline: baseline
|
|
1764
|
+
? {
|
|
1765
|
+
headSha: baseline.headSha,
|
|
1766
|
+
dirtyFileCount: Object.keys(baseline.files).length,
|
|
1767
|
+
capturedAt: baseline.capturedAt,
|
|
1768
|
+
/*
|
|
1769
|
+
* The dirty files themselves, not only their count: the one record that survives a
|
|
1770
|
+
* restart mid-run, so the next start can tell what THIS run wrote from what was already
|
|
1771
|
+
* there ({@link recoverInterruptedRunWrites}). Paths and fingerprints only — no content.
|
|
1772
|
+
*/
|
|
1773
|
+
files: baseline.files,
|
|
1774
|
+
}
|
|
1775
|
+
: null,
|
|
1776
|
+
};
|
|
1777
|
+
}
|
|
591
1778
|
/**
|
|
592
|
-
*
|
|
593
|
-
*
|
|
594
|
-
*
|
|
595
|
-
* and original baseline are unchanged — the resume is held to exactly the
|
|
596
|
-
* bounds the first run was.
|
|
1779
|
+
* Open the trace half of one coding run — see {@link CodingRunTrace}. Best-effort like every
|
|
1780
|
+
* trace write here: a session that cannot be opened is recorded as a traceability error and the
|
|
1781
|
+
* run proceeds with no scope, which the actor plane accepts.
|
|
597
1782
|
*/
|
|
598
|
-
|
|
1783
|
+
async openCodingRunTrace(taskId, taskRef) {
|
|
599
1784
|
let runSession;
|
|
600
1785
|
let runStep;
|
|
601
1786
|
const traceabilityErrors = [];
|
|
@@ -610,8 +1795,8 @@ let CodingAgentDispatchCompanionService = class CodingAgentDispatchCompanionServ
|
|
|
610
1795
|
// visibly non-accepted for explicit follow-up.
|
|
611
1796
|
traceabilityErrors.push(error);
|
|
612
1797
|
this.logger.error('Application coding-task trace operation failed', {
|
|
613
|
-
taskId
|
|
614
|
-
taskRef
|
|
1798
|
+
taskId,
|
|
1799
|
+
taskRef,
|
|
615
1800
|
operation,
|
|
616
1801
|
error: describeCaughtError(error),
|
|
617
1802
|
});
|
|
@@ -620,41 +1805,283 @@ let CodingAgentDispatchCompanionService = class CodingAgentDispatchCompanionServ
|
|
|
620
1805
|
await traceBestEffort('initialize-session', async () => {
|
|
621
1806
|
runSession = this.traceabilityService.createInternalSession({
|
|
622
1807
|
label: 'application-coding-task-run',
|
|
623
|
-
metadata: { taskId
|
|
1808
|
+
metadata: { taskId, taskRef },
|
|
624
1809
|
});
|
|
625
1810
|
if (!runSession)
|
|
626
1811
|
return;
|
|
627
|
-
await this.traceabilityService.registerAlias(runSession, CompanionTraceAliasKind.ACTOR_TASK,
|
|
1812
|
+
await this.traceabilityService.registerAlias(runSession, CompanionTraceAliasKind.ACTOR_TASK, taskId);
|
|
628
1813
|
runStep = this.createOperationTraceStep(runSession, 'application-coding-task-run');
|
|
629
1814
|
});
|
|
1815
|
+
return { runSession, runStep, traceabilityErrors, traceBestEffort };
|
|
1816
|
+
}
|
|
1817
|
+
/**
|
|
1818
|
+
* ACCEPT a run's writes when the autonomy posture says the system accepts (#1534).
|
|
1819
|
+
*
|
|
1820
|
+
* **Why here.** A build task LANDS only when its declared product is COMMITTED, and until this
|
|
1821
|
+
* existed nothing in the loop committed — so an unattended build stopped after its first task,
|
|
1822
|
+
* and the 2026-09-23 run was carried by an operator's shell loop running `git add -A` in the gaps
|
|
1823
|
+
* between dispatches. `one-source-of-truth.md` D5 had already decided the posture (YOLO: the system
|
|
1824
|
+
* commits, the creator is notified and can override); what was missing was the mechanism.
|
|
1825
|
+
*
|
|
1826
|
+
* **Why it is safe HERE and nowhere later.** This runs inside `afterSettle`, which
|
|
1827
|
+
* `superviseCodingRun` awaits inside `withDedicatedFileLock(workspace mutation lock)`. No other
|
|
1828
|
+
* coding run can be live, so the commit cannot land inside another run's baseline→post window —
|
|
1829
|
+
* which is what destroys change-set attribution, and why the shell loop had to wait for a gap.
|
|
1830
|
+
*
|
|
1831
|
+
* **The posture is asked through the ONE table**, `laneBoundaryTreatmentFor`, as an APPROVE_RESULT
|
|
1832
|
+
* boundary — never by testing for YOLO here. So GUIDED keeps acceptance a person's act on the
|
|
1833
|
+
* workbench, YOLO_LIGHT and YOLO accept, and a posture added tomorrow is classified there once.
|
|
1834
|
+
*
|
|
1835
|
+
* **It never widens what is committed.** No `force`: every refusal the door applies to a person
|
|
1836
|
+
* applies here. A path it cannot vouch for stays uncommitted and the task stays visibly unlanded.
|
|
1837
|
+
*
|
|
1838
|
+
* **Best effort, and loud.** A failed accept costs the task its landing, never the run — the run's
|
|
1839
|
+
* result is already settled. It is logged at WARN because a silent failure here recreates exactly
|
|
1840
|
+
* the stall this exists to remove.
|
|
1841
|
+
*/
|
|
1842
|
+
async acceptUnderAutonomyPosture(taskRef, taskId) {
|
|
1843
|
+
// A concurrent run holds no lock (#1528), and git's index takes one writer: its commit is serialized.
|
|
1844
|
+
// A single-flight run already holds the workspace lock around this call.
|
|
1845
|
+
await this.underAcceptancePosture(async () => {
|
|
1846
|
+
try {
|
|
1847
|
+
const outcome = await this.acceptedChangeCommit.acceptCodingRun({ taskRef, origin: AcceptOrigin.AUTONOMY_POSTURE });
|
|
1848
|
+
this.logger.info('Accepted a build-task run under the autonomy posture', {
|
|
1849
|
+
taskId,
|
|
1850
|
+
taskRef,
|
|
1851
|
+
posture: APPLICATION_CREATION_AUTONOMY_POSTURE,
|
|
1852
|
+
commitSha: outcome.commitSha,
|
|
1853
|
+
committedPaths: outcome.committedPaths.length,
|
|
1854
|
+
refusedPaths: outcome.refusedPaths,
|
|
1855
|
+
alreadyCommitted: outcome.alreadyCommitted,
|
|
1856
|
+
});
|
|
1857
|
+
// Counted even when already at HEAD: the run is now recorded accepted, which the boards show.
|
|
1858
|
+
return [{ committedPaths: Math.max(outcome.committedPaths.length, 1) }];
|
|
1859
|
+
}
|
|
1860
|
+
catch (error) {
|
|
1861
|
+
if (error instanceof NothingToAcceptError) {
|
|
1862
|
+
// An empty run, or every path refused by name. The refusals are the finding; they stay visible.
|
|
1863
|
+
this.logger.warn('A build-task run concluded with nothing the posture could accept', {
|
|
1864
|
+
taskId, taskRef, reason: error.message, refusedPaths: error.refusedPaths,
|
|
1865
|
+
});
|
|
1866
|
+
return [];
|
|
1867
|
+
}
|
|
1868
|
+
this.logger.warn('Could not accept a build-task run under the autonomy posture; its task stays unlanded', {
|
|
1869
|
+
taskId, taskRef, error: describeCaughtError(error),
|
|
1870
|
+
});
|
|
1871
|
+
return [];
|
|
1872
|
+
}
|
|
1873
|
+
}, { takeLock: this.activeRuns.get(taskId)?.mode === CodingRunConcurrency.CONCURRENT });
|
|
1874
|
+
}
|
|
1875
|
+
/**
|
|
1876
|
+
* Accept every pending PLAYBOOK run under the posture, from inside the worktree window and before a
|
|
1877
|
+
* baseline — the third site of #1534 (see `acceptPendingPlaybookRuns` for why exactly here).
|
|
1878
|
+
* Best effort by construction: it must never cost the run whose window it borrows.
|
|
1879
|
+
*/
|
|
1880
|
+
async acceptPendingPlaybookRunsBeforeBaseline() {
|
|
1881
|
+
if (laneBoundaryTreatmentFor(APPLICATION_CREATION_AUTONOMY_POSTURE, PlaybookLaneBoundaryDecision.APPROVE_RESULT) !== LaneBoundaryTreatment.NOTIFY_AND_PROCEED)
|
|
1882
|
+
return;
|
|
1883
|
+
try {
|
|
1884
|
+
const outcome = await this.acceptedChangeCommit.acceptPendingPlaybookRuns(AcceptOrigin.AUTONOMY_POSTURE);
|
|
1885
|
+
if (outcome.accepted > 0) {
|
|
1886
|
+
for (const listener of this.runAcceptedListeners) {
|
|
1887
|
+
try {
|
|
1888
|
+
listener();
|
|
1889
|
+
}
|
|
1890
|
+
catch (error) {
|
|
1891
|
+
this.logDebug('A run-accepted listener threw', { error: describeCaughtError(error) });
|
|
1892
|
+
}
|
|
1893
|
+
}
|
|
1894
|
+
}
|
|
1895
|
+
}
|
|
1896
|
+
catch (error) {
|
|
1897
|
+
this.logger.warn('Could not accept pending playbook runs before a baseline', { error: describeCaughtError(error) });
|
|
1898
|
+
}
|
|
1899
|
+
}
|
|
1900
|
+
/**
|
|
1901
|
+
* Run a build-plan GENERATION STEP inside the coding lane's attribution window, and accept what it
|
|
1902
|
+
* wrote under the autonomy posture — the second site of #1534's invariant.
|
|
1903
|
+
*
|
|
1904
|
+
* **Why a generation step needs this at all.** It lands on COMMITTED paths
|
|
1905
|
+
* (`ApplicationBuildGenerationStepLandedKind.COMMITTED_PATHS`), exactly like a coding task's
|
|
1906
|
+
* product, and it is EXEMPT from the loop guard because a step such as `i18n-labels` is
|
|
1907
|
+
* legitimately re-runnable. So an uncommitted step does not stall visibly: it is re-selected on
|
|
1908
|
+
* every dispatch, does nothing new, and every task that names it as a prerequisite never becomes
|
|
1909
|
+
* ready. The 2026-09-23 run never met this only because an operator's shell loop committed
|
|
1910
|
+
* everything between dispatches.
|
|
1911
|
+
*
|
|
1912
|
+
* **Why inside THIS window rather than beside it.** A coding run's attribution is a baseline→post
|
|
1913
|
+
* comparison, and it collapses when anything commits inside it. Until now a generation step held
|
|
1914
|
+
* neither half of the lane's single-flight, so it could run while a coding run was live and land
|
|
1915
|
+
* its writes inside that run's window. Here it takes both: the worktree lease check first — the
|
|
1916
|
+
* same 409 a second coding task gets, naming the holder — then the workspace mutation lock for
|
|
1917
|
+
* the snapshot, the step, the capture and the accept. The two are not redundant: a coding run
|
|
1918
|
+
* SELECTED but not yet admitted holds the lease and not the lock while it waits for the compile
|
|
1919
|
+
* watchers, and a step taking the lock there would fail that run's admission. A PARKED run holds
|
|
1920
|
+
* neither, by design — siblings run while its question waits, and anything they commit is
|
|
1921
|
+
* classified `committed_during_run` and excluded from its accept; a step is one more sibling. This is the lane's EXISTING single-flight,
|
|
1922
|
+
* extended to the other writer it always had; it restricts no agent's edits, which is what
|
|
1923
|
+
* #1264's "no serialization" constraint is about.
|
|
1924
|
+
*
|
|
1925
|
+
* **The writes go through the same register and door as a coding run's**, so the workbench's
|
|
1926
|
+
* Accept works on a generation-step row too, under GUIDED, with the same refusals. The capture and
|
|
1927
|
+
* the accept are best effort: a step whose writes could not be registered still returns its
|
|
1928
|
+
* result, and stays visibly unlanded.
|
|
1929
|
+
*/
|
|
1930
|
+
async runGenerationStepInWorktreeWindow(input) {
|
|
1931
|
+
await this.refuseWhileWorktreeIsHeld(null, input.sessionContext);
|
|
1932
|
+
return withDedicatedFileLock(this.getWorkspaceMutationLockPath(), async () => {
|
|
1933
|
+
await this.acceptPendingPlaybookRunsBeforeBaseline();
|
|
1934
|
+
const baseline = await this.gitChangeSetService.captureWorktreeSnapshot();
|
|
1935
|
+
await this.recordRunBaselineOnTask(input.taskId, baseline, input.sessionContext);
|
|
1936
|
+
const concurrentAtStart = await this.concurrentCodingRunsLive(input.sessionContext);
|
|
1937
|
+
// Beside a concurrent run, the step is part of that sharing episode from its own baseline (#1805).
|
|
1938
|
+
if (concurrentAtStart)
|
|
1939
|
+
this.markSharingEpisodeStarted(baseline.capturedAt);
|
|
1940
|
+
const result = await input.execute();
|
|
1941
|
+
let shared = concurrentAtStart;
|
|
1942
|
+
try {
|
|
1943
|
+
const changeSet = await this.gitChangeSetService.captureChangeSet(baseline);
|
|
1944
|
+
/*
|
|
1945
|
+
* A step holds the workspace lock, but a CONCURRENT coding run takes that lock only to commit, so
|
|
1946
|
+
* a wave's runs keep writing while the step runs inline (#1805 review N2). Its capture then holds
|
|
1947
|
+
* their writes too. So when concurrent runs were live at either end of its window, or one recorded
|
|
1948
|
+
* writes during it, the step is recorded as a sharing run with no claims and does not accept
|
|
1949
|
+
* alone: the wave's end commits it with its siblings, writer unknown.
|
|
1950
|
+
*/
|
|
1951
|
+
const concurrentAtEnd = await this.concurrentCodingRunsLive(input.sessionContext);
|
|
1952
|
+
if (concurrentAtEnd)
|
|
1953
|
+
this.markSharingEpisodeStarted(baseline.capturedAt);
|
|
1954
|
+
shared = shared || concurrentAtEnd
|
|
1955
|
+
|| (await this.codingRunWriteRegister.list()).some((record) => record.concurrent === true && record.at >= baseline.capturedAt);
|
|
1956
|
+
await this.codingRunWriteRegister.record({ taskId: input.taskId, taskRef: input.taskRef, changeSet, ...(shared ? { claimedPaths: [] } : {}) });
|
|
1957
|
+
}
|
|
1958
|
+
catch (error) {
|
|
1959
|
+
this.logger.warn('Could not register a generation step\'s writes; it stays unlanded until they are committed', {
|
|
1960
|
+
taskId: input.taskId, taskRef: input.taskRef, error: describeCaughtError(error),
|
|
1961
|
+
});
|
|
1962
|
+
return result;
|
|
1963
|
+
}
|
|
1964
|
+
if (!shared)
|
|
1965
|
+
await this.acceptUnderAutonomyPosture(input.taskRef, input.taskId);
|
|
1966
|
+
else if (!this.concurrentRunLiveInProcess()) {
|
|
1967
|
+
/*
|
|
1968
|
+
* Shared, and nothing of this process is writing any more — the concurrent run finished during the
|
|
1969
|
+
* step: no episode will end after this, so the step and the runs recorded in its window are
|
|
1970
|
+
* committed together now. Inside the workspace lock this window already holds.
|
|
1971
|
+
*/
|
|
1972
|
+
const since = this.sharingEpisodeStartedAt !== undefined && this.sharingEpisodeStartedAt < baseline.capturedAt
|
|
1973
|
+
? this.sharingEpisodeStartedAt
|
|
1974
|
+
: baseline.capturedAt;
|
|
1975
|
+
await this.reconcileSharedTree({ startedAt: since, taskIds: [input.taskId], lock: { takeLock: false } });
|
|
1976
|
+
}
|
|
1977
|
+
return result;
|
|
1978
|
+
}, { retries: { retries: 0 } }).catch((error) => { throw this.mapLockError(error); });
|
|
1979
|
+
}
|
|
1980
|
+
/**
|
|
1981
|
+
* Run the engine-driven half of a coding run and deal with the two ways it can go wrong.
|
|
1982
|
+
*
|
|
1983
|
+
* `drive` is `completeActorExecution` or `resumeActorExecution`; `capture` hands this method the
|
|
1984
|
+
* executor's result, because the driver answers it only when the settle ALSO succeeded — and the
|
|
1985
|
+
* case that needs the result most is the one where it did not.
|
|
1986
|
+
*
|
|
1987
|
+
* - The executor returned and the SETTLE failed: not retried. The agent may already have changed
|
|
1988
|
+
* files and re-execution would duplicate an unclassified effect. The row is deliberately left
|
|
1989
|
+
* for the startup reconcile, and the trace records why it is not terminal.
|
|
1990
|
+
* - The executor THREW: the driver already settled `FAILED` with the message. Nothing to add
|
|
1991
|
+
* except a log line — the executor classifies its own failures, so a throw is a defect in it.
|
|
1992
|
+
*/
|
|
1993
|
+
async superviseCodingRun(taskRef, taskId, trace, drive) {
|
|
1994
|
+
let result = null;
|
|
1995
|
+
try {
|
|
1996
|
+
await drive((returned) => { result = returned; return returned; });
|
|
1997
|
+
}
|
|
1998
|
+
catch (error) {
|
|
1999
|
+
const returned = result;
|
|
2000
|
+
if (returned === null) {
|
|
2001
|
+
// Two ways to get here with no result: the executor threw (the engine settled the run
|
|
2002
|
+
// FAILED with the message), or the engine refused to START it — a resume of an execution
|
|
2003
|
+
// that is no longer waiting. Neither leaves anything for this method to record. The two
|
|
2004
|
+
// refusals a person's late or concurrent answer meets are routine 409s, not errors (#1581, R10-2).
|
|
2005
|
+
const routineRefusal = isActorExecutionNotSuspendedError(error) || isActorExecutionSubjectBusyError(error);
|
|
2006
|
+
(routineRefusal ? this.logger.info.bind(this.logger) : this.logger.error.bind(this.logger))(routineRefusal ? 'Application coding run was not started or resumed: the driver refused it' : 'Application coding run ended without a result', { taskId, taskRef, error: describeCaughtError(error) });
|
|
2007
|
+
return;
|
|
2008
|
+
}
|
|
2009
|
+
this.logger.error('Failed to persist application coding-task result', { taskId, taskRef, error: describeCaughtError(error) });
|
|
2010
|
+
await trace.traceBestEffort('record-terminal-patch-failure', () => this.traceOperationFailure({
|
|
2011
|
+
sessionContext: trace.runSession,
|
|
2012
|
+
step: trace.runStep,
|
|
2013
|
+
type: 'application-coding-task-terminal-patch-failure',
|
|
2014
|
+
summary: `Failed to persist the result of application coding task ${taskRef}`,
|
|
2015
|
+
error,
|
|
2016
|
+
payload: returned.output,
|
|
2017
|
+
}));
|
|
2018
|
+
return;
|
|
2019
|
+
}
|
|
2020
|
+
await result?.afterSettle();
|
|
2021
|
+
}
|
|
2022
|
+
/**
|
|
2023
|
+
* Executes the normal Agent invocation and lands the full working-result
|
|
2024
|
+
* evidence. This method runs inside the worktree lock and therefore is the
|
|
2025
|
+
* sole typed path allowed to observe its own before/after Git boundary.
|
|
2026
|
+
*/
|
|
2027
|
+
async executeApplicationCodingTask(task, renderedPrompt, verificationPlans, opened, baseline, trace,
|
|
2028
|
+
/**
|
|
2029
|
+
* Present when this run ANSWERS a parked question rather than starting the
|
|
2030
|
+
* task: the agent session is resumed by id via `session/load` and the answer
|
|
2031
|
+
* is delivered as the next turn. The task's mutation scope, verification plan
|
|
2032
|
+
* and original baseline are unchanged — the resume is held to exactly the
|
|
2033
|
+
* bounds the first run was.
|
|
2034
|
+
*/
|
|
2035
|
+
resume) {
|
|
2036
|
+
const { runSession, runStep, traceabilityErrors, traceBestEffort } = trace;
|
|
2037
|
+
// The TASK id is this lane's handle — the live stream, the answer door and the board row all
|
|
2038
|
+
// key on it. The execution is the engine's; it is reached from the task.
|
|
2039
|
+
const taskId = opened.taskId;
|
|
630
2040
|
const traceContext = {
|
|
631
2041
|
label: `application-coding-task:${task.taskRef}`,
|
|
632
2042
|
attributes: {
|
|
633
|
-
taskId
|
|
2043
|
+
taskId,
|
|
634
2044
|
taskRef: task.taskRef,
|
|
635
2045
|
objectiveRef: task.objectiveRef,
|
|
636
2046
|
candidateRef: task.candidateRef,
|
|
637
2047
|
},
|
|
638
2048
|
};
|
|
639
|
-
const invocation = {
|
|
640
|
-
agentRef: APPLICATION_CODING_AGENT_REF,
|
|
641
|
-
initiator: {},
|
|
642
|
-
invocationContext: [],
|
|
643
|
-
// A resume delivers the operator's ANSWER as the turn and re-enters the
|
|
644
|
-
// parked session; a first run delivers the rendered task.
|
|
645
|
-
input: resume
|
|
646
|
-
? { prompt: resume.answerPrompt, continuationOfSessionId: resume.continuationOfSessionId }
|
|
647
|
-
: { prompt: renderedPrompt },
|
|
648
|
-
output: { finalMessage: '', stopReason: CodingAgent_StopReason.END_TURN },
|
|
649
|
-
executionContext: { callTimestamp: new Date().toISOString() },
|
|
650
|
-
artifactBindings: [],
|
|
651
|
-
};
|
|
652
2049
|
const startedAtMs = Date.now();
|
|
2050
|
+
/*
|
|
2051
|
+
* Which of this task's checks were ALREADY failing before the agent ran?
|
|
2052
|
+
*
|
|
2053
|
+
* Verification decides the disposition, and it used to ask "is any check red now?" — a question
|
|
2054
|
+
* about the TREE, answered as though it were about the RUN. A check that was red before the
|
|
2055
|
+
* agent started says nothing about the agent, and failing the task on it burns the whole run.
|
|
2056
|
+
*
|
|
2057
|
+
* Measured on the first end-to-end journey run (#1273): `check:technical-doc-typecheck` was red
|
|
2058
|
+
* before anything was dispatched, because `technical-doc/src/generated/consumer-documentation/`
|
|
2059
|
+
* has never been produced in that application. `build-task-docs-find-context` ran for fifteen
|
|
2060
|
+
* minutes, established its findings, wrote its report — and was recorded
|
|
2061
|
+
* `VERIFICATION_FAILED` on a red it did not cause, at $19.33. Every documentation task names
|
|
2062
|
+
* that check, so every one of them would have failed the same way, forever, for the same money.
|
|
2063
|
+
* That is the unbounded-cost shape `findCompletedRunForBuildTask` exists to close, reached
|
|
2064
|
+
* through the one door it cannot see: a run that FAILS is not a completed run, so it is
|
|
2065
|
+
* re-offered on the next dispatch.
|
|
2066
|
+
*
|
|
2067
|
+
* The baseline is the tree as this run found it, so it is the honest reference for "did THIS run
|
|
2068
|
+
* break it". Costs one extra pass of the same checks — tens of seconds against a run measured in
|
|
2069
|
+
* quarter-hours and tens of dollars.
|
|
2070
|
+
*
|
|
2071
|
+
* A check that THREW at baseline is excluded: it produced no verdict, so it cannot license
|
|
2072
|
+
* forgiving the same check afterwards. See `unrunCheckRefs`.
|
|
2073
|
+
*/
|
|
2074
|
+
const baselineVerification = await this.executeVerificationPlans(verificationPlans);
|
|
2075
|
+
const unrunAtBaseline = new Set(baselineVerification.unrunCheckRefs);
|
|
2076
|
+
const preexistingVerificationFailures = new Set(baselineVerification.verification
|
|
2077
|
+
.filter(({ checkRef, outcome }) => !outcome.success && !unrunAtBaseline.has(checkRef))
|
|
2078
|
+
.map(({ checkRef }) => checkRef));
|
|
653
2079
|
let runError = null;
|
|
654
2080
|
let agentOutput = '';
|
|
655
2081
|
let codingUsage;
|
|
656
2082
|
let codingDeniedPermissionCount;
|
|
657
2083
|
let codingPermissionDecisions;
|
|
2084
|
+
let codingReportedFileLocations;
|
|
658
2085
|
let agentStopReason;
|
|
659
2086
|
/*
|
|
660
2087
|
* Counted in full, RETAINED in part.
|
|
@@ -667,7 +2094,8 @@ let CodingAgentDispatchCompanionService = class CodingAgentDispatchCompanionServ
|
|
|
667
2094
|
* to a fixed ceiling.
|
|
668
2095
|
*/
|
|
669
2096
|
let codingSessionEventCount = 0;
|
|
670
|
-
|
|
2097
|
+
// What the row keeps of the session, and why it is not "the first N frames": see the model.
|
|
2098
|
+
const codingSessionRetention = new CodingSessionFrameRetention();
|
|
671
2099
|
await traceBestEffort('record-start', () => this.traceOperationStart({
|
|
672
2100
|
sessionContext: runSession,
|
|
673
2101
|
step: runStep,
|
|
@@ -678,6 +2106,27 @@ let CodingAgentDispatchCompanionService = class CodingAgentDispatchCompanionServ
|
|
|
678
2106
|
artifactContent: renderedPrompt,
|
|
679
2107
|
}));
|
|
680
2108
|
try {
|
|
2109
|
+
// Resume the agent recorded on the durable task. The host selector may
|
|
2110
|
+
// have changed since admission; it must not reroute an existing session.
|
|
2111
|
+
// The coding system declares one actor per binding under the binding's
|
|
2112
|
+
// own ref, so the actor the run was opened for IS the agent to invoke.
|
|
2113
|
+
const agentRef = opened.actorRef;
|
|
2114
|
+
if (typeof agentRef !== 'string' || !isApplicationCodingAgentRef(agentRef)) {
|
|
2115
|
+
throw this.buildDispatchConflictError('The coding task does not identify a declared application coding agent.');
|
|
2116
|
+
}
|
|
2117
|
+
const invocation = {
|
|
2118
|
+
agentRef,
|
|
2119
|
+
initiator: {},
|
|
2120
|
+
invocationContext: [],
|
|
2121
|
+
// A resume delivers the operator's ANSWER as the turn and re-enters the
|
|
2122
|
+
// parked session; a first run delivers the rendered task.
|
|
2123
|
+
input: resume
|
|
2124
|
+
? { prompt: resume.answerPrompt, continuationOfSessionId: resume.continuationOfSessionId }
|
|
2125
|
+
: { prompt: renderedPrompt },
|
|
2126
|
+
output: { finalMessage: '', stopReason: CodingAgent_StopReason.END_TURN },
|
|
2127
|
+
executionContext: { callTimestamp: new Date().toISOString() },
|
|
2128
|
+
artifactBindings: [],
|
|
2129
|
+
};
|
|
681
2130
|
const response = await this.agentsService.invokeAgent(invocation, traceContext, {
|
|
682
2131
|
workspaceRootPath: this.companionContext.saasRoot,
|
|
683
2132
|
// Hold the agent to the task's declared scope WHILE it runs, not only
|
|
@@ -688,11 +2137,8 @@ let CodingAgentDispatchCompanionService = class CodingAgentDispatchCompanionServ
|
|
|
688
2137
|
isPermittedCodingLocation: buildApplicationCodingTaskLocationPredicate(this.companionContext.saasRoot, task.mutationScope.allowedPathPrefixes, task.mutationScope.prohibitedPathPrefixes),
|
|
689
2138
|
onCodingSessionEvent: (event) => {
|
|
690
2139
|
codingSessionEventCount += 1;
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
retainedCodingSessionFrames.push(event);
|
|
694
|
-
}
|
|
695
|
-
this.publishCodingSessionFrame(durableTask._id, { channel: 'event', payload: event });
|
|
2140
|
+
codingSessionRetention.accept(event);
|
|
2141
|
+
this.publishCodingSessionFrame(taskId, { channel: 'event', payload: event });
|
|
696
2142
|
},
|
|
697
2143
|
// The JUDGMENT half of the interactive lane: classify each end-of-turn
|
|
698
2144
|
// message so the engine ladder can auto-continue a self-pause and park
|
|
@@ -701,15 +2147,16 @@ let CodingAgentDispatchCompanionService = class CodingAgentDispatchCompanionServ
|
|
|
701
2147
|
// hanging the run — this method may therefore throw freely.
|
|
702
2148
|
classifyCodingTurnEnd: (input) => this.classifyCodingTurnEnd(input),
|
|
703
2149
|
onCodingSessionStateChange: (state) => {
|
|
704
|
-
this.publishCodingSessionFrame(
|
|
2150
|
+
this.publishCodingSessionFrame(taskId, { channel: 'state', payload: state });
|
|
705
2151
|
},
|
|
706
|
-
...(this.
|
|
2152
|
+
...(this.activeRuns.get(taskId) ? { codingSessionAbortSignal: this.activeRuns.get(taskId).abortController.signal } : {}),
|
|
707
2153
|
});
|
|
708
2154
|
const codingOutput = response.output;
|
|
709
2155
|
// The agent runtime publishes provider-learned facts on `executionContext`.
|
|
710
2156
|
codingUsage = response.executionContext?.usage;
|
|
711
2157
|
codingDeniedPermissionCount = codingOutput?.deniedPermissionCount;
|
|
712
2158
|
codingPermissionDecisions = codingOutput?.permissionDecisions;
|
|
2159
|
+
codingReportedFileLocations = codingOutput?.reportedFileLocations;
|
|
713
2160
|
const text = codingOutput?.finalMessage;
|
|
714
2161
|
agentStopReason = codingOutput?.stopReason;
|
|
715
2162
|
// A PARKED run stopped WITHOUT finishing to ask the operator a question.
|
|
@@ -720,22 +2167,21 @@ let CodingAgentDispatchCompanionService = class CodingAgentDispatchCompanionServ
|
|
|
720
2167
|
// because a question is a non-empty END_TURN message that would otherwise
|
|
721
2168
|
// read as a completed working result.
|
|
722
2169
|
if (codingOutput?.suspension) {
|
|
723
|
-
|
|
2170
|
+
return this.buildParkedCodingRunResult({
|
|
724
2171
|
task,
|
|
725
|
-
|
|
726
|
-
durableTask,
|
|
2172
|
+
taskId,
|
|
727
2173
|
baseline,
|
|
728
2174
|
suspension: codingOutput.suspension,
|
|
729
2175
|
output: codingOutput,
|
|
730
2176
|
usage: codingUsage,
|
|
731
2177
|
codingSessionEventCount,
|
|
732
|
-
retainedCodingSessionFrames,
|
|
2178
|
+
retainedCodingSessionFrames: codingSessionRetention.frames(),
|
|
2179
|
+
codingSessionRetention: codingSessionRetention.summary(),
|
|
733
2180
|
startedAtMs,
|
|
734
2181
|
runSession,
|
|
735
2182
|
runStep,
|
|
736
2183
|
traceBestEffort,
|
|
737
2184
|
});
|
|
738
|
-
return;
|
|
739
2185
|
}
|
|
740
2186
|
// A CANCELLED turn is not a completed one, and its partial change set must
|
|
741
2187
|
// not be read as a working result. Refused here rather than downstream so
|
|
@@ -751,6 +2197,12 @@ let CodingAgentDispatchCompanionService = class CodingAgentDispatchCompanionServ
|
|
|
751
2197
|
catch (error) {
|
|
752
2198
|
runError = error;
|
|
753
2199
|
}
|
|
2200
|
+
/*
|
|
2201
|
+
* Whether an operator took this turn away, read the moment the turn ENDED (#1581, seventh review F8):
|
|
2202
|
+
* a wave cancel landing later, while the change set is captured, did not end a turn that had already
|
|
2203
|
+
* failed on its own — a timed-out turn is the task's.
|
|
2204
|
+
*/
|
|
2205
|
+
const turnCancelledByOperator = this.activeRuns.get(taskId)?.abortController.signal.aborted === true;
|
|
754
2206
|
let changeSet = null;
|
|
755
2207
|
let captureError = null;
|
|
756
2208
|
try {
|
|
@@ -759,6 +2211,27 @@ let CodingAgentDispatchCompanionService = class CodingAgentDispatchCompanionServ
|
|
|
759
2211
|
catch (error) {
|
|
760
2212
|
captureError = error;
|
|
761
2213
|
}
|
|
2214
|
+
/*
|
|
2215
|
+
* The register the workbench's `accept` commits from (#1454, Step 7): every path, attributed and
|
|
2216
|
+
* hashed, unbounded where the durable row's summary is bounded. Best effort — a register that
|
|
2217
|
+
* could not be written costs the ability to accept THIS run from the workbench, never the run.
|
|
2218
|
+
*/
|
|
2219
|
+
if (changeSet) {
|
|
2220
|
+
try {
|
|
2221
|
+
// A run that shared the tree (#1528) records what it has evidence of writing: its capture also holds its siblings' files.
|
|
2222
|
+
const claimedPaths = this.activeRuns.get(taskId)?.mode === CodingRunConcurrency.CONCURRENT
|
|
2223
|
+
? collectRunClaimedPaths({
|
|
2224
|
+
candidateRoots: applicationRootSpellings(this.companionContext.saasRoot),
|
|
2225
|
+
reportedFileLocations: codingReportedFileLocations,
|
|
2226
|
+
permissionDecisions: codingPermissionDecisions,
|
|
2227
|
+
})
|
|
2228
|
+
: undefined;
|
|
2229
|
+
await this.codingRunWriteRegister.record({ taskId, taskRef: task.taskRef, changeSet, ...(claimedPaths !== undefined ? { claimedPaths } : {}) });
|
|
2230
|
+
}
|
|
2231
|
+
catch (error) {
|
|
2232
|
+
this.logDebug('Could not record the coding run\'s writes; accepting it from the workbench will refuse', { taskId, error: describeCaughtError(error) });
|
|
2233
|
+
}
|
|
2234
|
+
}
|
|
762
2235
|
const scopeAssessment = changeSet
|
|
763
2236
|
? assessApplicationCodingTaskMutationScope(changeSet, task.mutationScope.allowedPathPrefixes, task.mutationScope.prohibitedPathPrefixes)
|
|
764
2237
|
: null;
|
|
@@ -823,14 +2296,15 @@ let CodingAgentDispatchCompanionService = class CodingAgentDispatchCompanionServ
|
|
|
823
2296
|
+ 'declared no file location — typically shell commands, which are unscoped by nature — so the task '
|
|
824
2297
|
+ 'mutation scope had nothing to check those acts against and was NOT enforced in flight for them. ')
|
|
825
2298
|
+ 'The change set taken after the run is the only record of what it touched'
|
|
826
|
-
+ (scopeAssessment &&
|
|
827
|
-
?
|
|
2299
|
+
+ (scopeAssessment && scopeAssessment.outOfScopePaths.length > 0
|
|
2300
|
+
? `, and it recorded ${scopeAssessment.outOfScopePaths.length} changed path(s) outside the task's declared scope `
|
|
2301
|
+
+ '(this run\'s or a parallel session\'s — the change set cannot tell which).'
|
|
828
2302
|
: '.'), {
|
|
829
2303
|
taskRef: task.taskRef,
|
|
830
2304
|
objectiveRef: task.objectiveRef,
|
|
831
2305
|
mutationScopeRef: task.mutationScope.scopeRef,
|
|
832
2306
|
mutatedFileCount,
|
|
833
|
-
|
|
2307
|
+
outOfScopePathCount: scopeAssessment?.outOfScopePaths.length ?? null,
|
|
834
2308
|
raisedNoPermissionRequest,
|
|
835
2309
|
allowedActsWithNoDeclaredLocation,
|
|
836
2310
|
inFlightMutationScopeConsulted: false,
|
|
@@ -841,11 +2315,43 @@ let CodingAgentDispatchCompanionService = class CodingAgentDispatchCompanionServ
|
|
|
841
2315
|
// application package/cache if started together. The ordered outcomes are
|
|
842
2316
|
// easier to inspect and avoid turning a bounded coding task into an
|
|
843
2317
|
// accidental local-build fan-out.
|
|
844
|
-
|
|
2318
|
+
// Out-of-scope paths never skip verification: they are recorded, not refused.
|
|
2319
|
+
const shouldVerify = !runError && !captureError;
|
|
845
2320
|
const { verification, infrastructureError: verificationInfrastructureError } = shouldVerify
|
|
846
2321
|
? await this.executeVerificationPlans(verificationPlans)
|
|
847
2322
|
: { verification: [], infrastructureError: null };
|
|
848
|
-
|
|
2323
|
+
/*
|
|
2324
|
+
* Only a check this run BROKE fails the task. One that was already red is recorded and reported,
|
|
2325
|
+
* never attributed — see `preexistingVerificationFailures` above for what it cost when it was.
|
|
2326
|
+
*
|
|
2327
|
+
* The recording half is not decoration: a check red for every task is a project-level defect
|
|
2328
|
+
* that nothing else would surface, and forgiving it silently would replace a loud wrong answer
|
|
2329
|
+
* with a quiet one.
|
|
2330
|
+
*/
|
|
2331
|
+
const carriedVerification = verification
|
|
2332
|
+
.filter(({ checkRef, outcome }) => !outcome.success && preexistingVerificationFailures.has(checkRef));
|
|
2333
|
+
const carriedVerificationFailures = carriedVerification.map(({ checkRef }) => checkRef);
|
|
2334
|
+
/*
|
|
2335
|
+
* And WHY it is red, captured while the output is in hand (#1529): the files the check names and
|
|
2336
|
+
* what generated them. A red nobody diagnoses is re-diagnosed by hand — on the first end-to-end run
|
|
2337
|
+
* that took an hour, for a fact the broken file's own banner stated.
|
|
2338
|
+
*/
|
|
2339
|
+
const carriedVerificationDiagnoses = carriedVerification.map(({ checkRef, outcome }) => diagnoseCarriedVerificationFailure({
|
|
2340
|
+
checkRef,
|
|
2341
|
+
checkPath: outcome.path,
|
|
2342
|
+
message: outcome.message,
|
|
2343
|
+
stdoutTail: outcome.stdoutTail,
|
|
2344
|
+
stderrTail: outcome.stderrTail,
|
|
2345
|
+
readHead: (relativePath) => {
|
|
2346
|
+
try {
|
|
2347
|
+
return readFileSync(join(this.companionContext.saasRoot, relativePath), 'utf8').slice(0, 8_000);
|
|
2348
|
+
}
|
|
2349
|
+
catch {
|
|
2350
|
+
return undefined;
|
|
2351
|
+
}
|
|
2352
|
+
},
|
|
2353
|
+
}));
|
|
2354
|
+
const failedVerification = verification.find(({ checkRef, outcome }) => !outcome.success && !preexistingVerificationFailures.has(checkRef)) ?? null;
|
|
849
2355
|
if (agentOutput) {
|
|
850
2356
|
await traceBestEffort('write-agent-output', () => this.traceOperationArtifact(runSession, runStep, 'application-coding-task-agent-output.txt', agentOutput));
|
|
851
2357
|
}
|
|
@@ -856,17 +2362,37 @@ let CodingAgentDispatchCompanionService = class CodingAgentDispatchCompanionServ
|
|
|
856
2362
|
? ApplicationCodingTaskDisposition.AGENT_EXECUTION_FAILED
|
|
857
2363
|
: captureError
|
|
858
2364
|
? ApplicationCodingTaskDisposition.CHANGE_SET_CAPTURE_FAILED
|
|
859
|
-
:
|
|
860
|
-
? ApplicationCodingTaskDisposition.
|
|
861
|
-
:
|
|
862
|
-
? ApplicationCodingTaskDisposition.
|
|
863
|
-
:
|
|
864
|
-
? ApplicationCodingTaskDisposition.TRACEABILITY_FAILED
|
|
865
|
-
: ApplicationCodingTaskDisposition.WORKING_RESULT_RECORDED;
|
|
2365
|
+
: failedVerification
|
|
2366
|
+
? ApplicationCodingTaskDisposition.VERIFICATION_FAILED
|
|
2367
|
+
: traceabilityErrors.length > 0
|
|
2368
|
+
? ApplicationCodingTaskDisposition.TRACEABILITY_FAILED
|
|
2369
|
+
: ApplicationCodingTaskDisposition.WORKING_RESULT_RECORDED;
|
|
866
2370
|
const succeeded = disposition === ApplicationCodingTaskDisposition.WORKING_RESULT_RECORDED;
|
|
2371
|
+
/*
|
|
2372
|
+
* Whose failure this was (#1581). An agent failure is the HOST's only when the turn was TAKEN
|
|
2373
|
+
* AWAY: an operator cancelled it (this run's own abort signal), or the measured classifiers name
|
|
2374
|
+
* the environment (a mid-turn kill, a 529/429) or the account (quota, expired login). A timed-out
|
|
2375
|
+
* turn also ends `cancelled`, and it is the task's — it needed more than a turn.
|
|
2376
|
+
*/
|
|
2377
|
+
const runErrorMessage = runError ? describeCaughtError(runError) : '';
|
|
2378
|
+
const agentTurnTakenByHost = turnCancelledByOperator
|
|
2379
|
+
|| isInfrastructureShapedAgentFailure(runErrorMessage)
|
|
2380
|
+
|| isProviderAccountAgentFailure(runErrorMessage);
|
|
2381
|
+
const failureAttribution = deriveCodingRunFailureAttribution({ disposition, agentTurnTakenByHost });
|
|
2382
|
+
// Which runs shared the tree with this one, and where they both wrote (#1528). Absent for a run alone.
|
|
2383
|
+
const concurrency = this.closeCodingRunWindow(taskId, (changeSet?.files ?? []).map((entry) => entry.path));
|
|
867
2384
|
const output = {
|
|
868
2385
|
succeeded,
|
|
869
2386
|
disposition,
|
|
2387
|
+
...(failureAttribution !== null ? { failureAttribution } : {}),
|
|
2388
|
+
...(concurrency ? {
|
|
2389
|
+
concurrency,
|
|
2390
|
+
/*
|
|
2391
|
+
* A failure while other runs were editing the same tree may be theirs. Suspected, never
|
|
2392
|
+
* proven: the attempt budget forgives a bounded number of these (`selectBudgetCountingFailures`).
|
|
2393
|
+
*/
|
|
2394
|
+
...(!succeeded ? { interferenceSuspected: true } : {}),
|
|
2395
|
+
} : {}),
|
|
870
2396
|
durationMs: Date.now() - startedAtMs,
|
|
871
2397
|
agentOutputTail: agentOutput.slice(-OUTPUT_TAIL_CHARS),
|
|
872
2398
|
// Recorded on the durable row because it is the difference between "the
|
|
@@ -875,7 +2401,11 @@ let CodingAgentDispatchCompanionService = class CodingAgentDispatchCompanionServ
|
|
|
875
2401
|
// like a complete one from the diff alone.
|
|
876
2402
|
...(agentStopReason ? { agentStopReason } : {}),
|
|
877
2403
|
...(codingSessionEventCount > 0 ? { codingSessionEventCount } : {}),
|
|
878
|
-
|
|
2404
|
+
// Red before this run started, and still red. Not this task's failure, and not nobody's.
|
|
2405
|
+
...(carriedVerificationFailures.length > 0 ? { carriedVerificationFailures, carriedVerificationDiagnoses } : {}),
|
|
2406
|
+
...(codingSessionRetention.frames().length > 0
|
|
2407
|
+
? { codingSessionFrames: codingSessionRetention.frames(), codingSessionRetention: codingSessionRetention.summary() }
|
|
2408
|
+
: {}),
|
|
879
2409
|
// #2: the run's real cost, recorded on the durable row.
|
|
880
2410
|
//
|
|
881
2411
|
// This is what the previous transport structurally could not report, and
|
|
@@ -903,55 +2433,82 @@ let CodingAgentDispatchCompanionService = class CodingAgentDispatchCompanionServ
|
|
|
903
2433
|
postRunHeadSha: changeSet.postRunHeadSha,
|
|
904
2434
|
headMovedDuringRun: changeSet.headMovedDuringRun,
|
|
905
2435
|
stats: changeSet.stats,
|
|
2436
|
+
/*
|
|
2437
|
+
* WHICH files, beside how many — asked for by the judge itself.
|
|
2438
|
+
*
|
|
2439
|
+
* On 2026-09-16, the first run whose evidence the `dispatch-outcome-sound` treatment could
|
|
2440
|
+
* read answered INDETERMINATE on its in-scope criterion, and said exactly why: "the artifact
|
|
2441
|
+
* does not identify the changed paths or their contents. It therefore cannot show that the
|
|
2442
|
+
* dispatched target/stage was implemented within <the declared scope>". That criterion asks
|
|
2443
|
+
* whether a schema task added a persisted shape and a ui-behavior task added field displays —
|
|
2444
|
+
* a question about PATHS, answered with counts.
|
|
2445
|
+
*
|
|
2446
|
+
* Path and attribution class only. The class is what lets a reader separate the run's own
|
|
2447
|
+
* work from a file that was already dirty at baseline or that a parallel session committed
|
|
2448
|
+
* inside the window — the distinction the criterion's own guidance turns on, and one the
|
|
2449
|
+
* counts flatten. Contents stay out: the full diff is a trace artifact, and pasting a
|
|
2450
|
+
* change-set into a durable row would put the repository inside its own task record.
|
|
2451
|
+
*
|
|
2452
|
+
* BOUNDED, because a durable row is not a diff: a task that touches more files than this
|
|
2453
|
+
* carries the first `CHANGE_SET_SUMMARY_FILE_LIMIT` and says how many it left out, which is
|
|
2454
|
+
* a truthful summary rather than a silently truncated one.
|
|
2455
|
+
*/
|
|
2456
|
+
files: changeSet.files.slice(0, CHANGE_SET_SUMMARY_FILE_LIMIT).map((entry) => ({
|
|
2457
|
+
path: entry.path,
|
|
2458
|
+
attribution: entry.attribution,
|
|
2459
|
+
changeKind: entry.changeKind,
|
|
2460
|
+
})),
|
|
2461
|
+
...(changeSet.files.length > CHANGE_SET_SUMMARY_FILE_LIMIT
|
|
2462
|
+
? { filesOmittedFromSummary: changeSet.files.length - CHANGE_SET_SUMMARY_FILE_LIMIT }
|
|
2463
|
+
: {}),
|
|
906
2464
|
},
|
|
907
2465
|
} : { changeSetSummary: null }),
|
|
908
2466
|
};
|
|
909
|
-
|
|
910
|
-
|
|
2467
|
+
/*
|
|
2468
|
+
* The run CONCLUDED, and the engine's driver records it (#1359): the status, this output and the
|
|
2469
|
+
* change-set artifact land on the task in the one move that settles the execution. `FAILED` is a
|
|
2470
|
+
* conclusion here, not a throw — see {@link CodingRunResult}.
|
|
2471
|
+
*/
|
|
2472
|
+
return {
|
|
2473
|
+
kind: CodingRunEnding.CONCLUDED,
|
|
2474
|
+
conclusion: {
|
|
911
2475
|
status: succeeded ? FlowsActors_Status.COMPLETED : FlowsActors_Status.FAILED,
|
|
912
|
-
output,
|
|
913
|
-
...(changeSet ? {
|
|
914
|
-
}
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
sessionContext: runSession,
|
|
949
|
-
step: runStep,
|
|
950
|
-
type: 'application-coding-task-run-failure',
|
|
951
|
-
summary: `Application coding task ${task.taskRef} requires follow-up`,
|
|
952
|
-
error: runError ?? captureError ?? verificationInfrastructureError ?? traceabilityErrors[0] ?? new Error(`Application coding task disposition: ${disposition}`),
|
|
953
|
-
payload: output,
|
|
954
|
-
}));
|
|
2476
|
+
taskOutput: output,
|
|
2477
|
+
...(changeSet ? { taskArtifacts: [buildChangeSetArtifact(taskId, changeSet)] } : {}),
|
|
2478
|
+
},
|
|
2479
|
+
output,
|
|
2480
|
+
afterSettle: async () => {
|
|
2481
|
+
/*
|
|
2482
|
+
* A run that ANSWERED a question and then failed would otherwise keep its resume inputs:
|
|
2483
|
+
* the driver leaves a FAILED run's checkpoint in place, because for most hosts re-running
|
|
2484
|
+
* from it is how a failure is recovered. Here it holds the admitted contract — context
|
|
2485
|
+
* bytes the durable row deliberately never carries — and the question it answered is gone,
|
|
2486
|
+
* so there is nothing to continue. A failed coding run is re-DISPATCHED, not resumed.
|
|
2487
|
+
*/
|
|
2488
|
+
if (!succeeded && resume) {
|
|
2489
|
+
await traceBestEffort('consume-checkpoint', () => this.actorsSystem.consumeActorExecutionCheckpoint(opened.executionId, runSession));
|
|
2490
|
+
}
|
|
2491
|
+
if (succeeded) {
|
|
2492
|
+
await traceBestEffort('record-success', () => this.traceOperationSuccess({
|
|
2493
|
+
sessionContext: runSession,
|
|
2494
|
+
step: runStep,
|
|
2495
|
+
type: 'application-coding-task-run-success',
|
|
2496
|
+
summary: `Recorded working result for application coding task ${task.taskRef}`,
|
|
2497
|
+
payload: output,
|
|
2498
|
+
}));
|
|
2499
|
+
await this.acceptUnderAutonomyPosture(task.taskRef, taskId);
|
|
2500
|
+
return;
|
|
2501
|
+
}
|
|
2502
|
+
await traceBestEffort('record-failure', () => this.traceOperationFailure({
|
|
2503
|
+
sessionContext: runSession,
|
|
2504
|
+
step: runStep,
|
|
2505
|
+
type: 'application-coding-task-run-failure',
|
|
2506
|
+
summary: `Application coding task ${task.taskRef} requires follow-up`,
|
|
2507
|
+
error: runError ?? captureError ?? verificationInfrastructureError ?? traceabilityErrors[0] ?? new Error(`Application coding task disposition: ${disposition}`),
|
|
2508
|
+
payload: output,
|
|
2509
|
+
}));
|
|
2510
|
+
},
|
|
2511
|
+
};
|
|
955
2512
|
}
|
|
956
2513
|
// ================================================================
|
|
957
2514
|
// Interactive lane — classifier, live relay, park & resume
|
|
@@ -1027,36 +2584,67 @@ let CodingAgentDispatchCompanionService = class CodingAgentDispatchCompanionServ
|
|
|
1027
2584
|
this.codingSessionSubscribers.delete(taskId);
|
|
1028
2585
|
};
|
|
1029
2586
|
}
|
|
1030
|
-
/**
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
2587
|
+
/**
|
|
2588
|
+
* The questions currently awaiting an operator answer, for status/UX.
|
|
2589
|
+
*
|
|
2590
|
+
* Read from the ACTOR PLANE since #1359: every parked coding run is an execution of
|
|
2591
|
+
* `application-coding.system` that is `AWAITING_APPROVAL`, carrying the decision it waits on and
|
|
2592
|
+
* the checkpoint an answer continues from. Until then this read an in-process map, so a companion
|
|
2593
|
+
* restart emptied the list while the questions still stood — the board showed nothing to answer
|
|
2594
|
+
* for runs that were one answer away from continuing.
|
|
2595
|
+
*
|
|
2596
|
+
* Each carries a `decision` — the same `HumanDecision_Request` an interview and a clarification are
|
|
2597
|
+
* rendered from — so a reader needs no knowledge of ACP suspensions to show one. It is the decision
|
|
2598
|
+
* STORED on the execution when the run parked, not one rebuilt here: a second producer of a shared
|
|
2599
|
+
* contract would drift from the first the day an option changed.
|
|
2600
|
+
*/
|
|
2601
|
+
async listPendingCodingQuestions(sessionContext) {
|
|
2602
|
+
return (await this.listParkedCodingRuns(sessionContext)).map((parked) => ({
|
|
2603
|
+
taskId: parked.taskId,
|
|
2604
|
+
taskRef: parked.checkpoint.taskRef,
|
|
2605
|
+
question: parked.checkpoint.suspension.question,
|
|
2606
|
+
parkedAt: parked.checkpoint.parkedAt,
|
|
2607
|
+
resumable: parked.checkpoint.suspension.resumable,
|
|
2608
|
+
decision: parked.decision,
|
|
2609
|
+
suspensionRef: parked.suspensionRef,
|
|
1038
2610
|
}));
|
|
1039
2611
|
}
|
|
1040
2612
|
/**
|
|
1041
|
-
*
|
|
1042
|
-
*
|
|
1043
|
-
*
|
|
2613
|
+
* Every coding run waiting on an operator, as the actor plane holds it.
|
|
2614
|
+
*
|
|
2615
|
+
* ONE system's waiting executions — not the 200 most recently updated rows of every actor, which is
|
|
2616
|
+
* what the task-list scans this replaced read, and why a parked coding row could fall outside the
|
|
2617
|
+
* window on a busy application and be reported as absent.
|
|
2618
|
+
*
|
|
2619
|
+
* A waiting row whose checkpoint does not parse is SKIPPED, never reported: it has lost the thing
|
|
2620
|
+
* an answer would continue, so it is not a parked run anybody can answer. The startup reconcile
|
|
2621
|
+
* aborts such a row for review; between restarts it is simply not offered.
|
|
2622
|
+
*/
|
|
2623
|
+
async listParkedCodingRuns(sessionContext) {
|
|
2624
|
+
const waiting = await this.actorsSystem.listSuspendedActorExecutions(APPLICATION_CODING_SYSTEM_REF, sessionContext);
|
|
2625
|
+
const parked = [];
|
|
2626
|
+
for (const row of waiting) {
|
|
2627
|
+
const checkpoint = ApplicationCodingRunCheckpointSchema.safeParse(row.checkpoint?.context);
|
|
2628
|
+
const task = row.tasks[0];
|
|
2629
|
+
if (!checkpoint.success || !task || !row.suspension)
|
|
2630
|
+
continue;
|
|
2631
|
+
parked.push({ executionId: row._id, taskId: task._id, checkpoint: checkpoint.data, decision: row.suspension.decision, suspensionRef: actorExecutionSuspensionRef(row.suspension) });
|
|
2632
|
+
}
|
|
2633
|
+
return parked;
|
|
2634
|
+
}
|
|
2635
|
+
/**
|
|
2636
|
+
* A run that parked on a question, as the engine's driver is told to record it: the run waits on
|
|
2637
|
+
* its execution (`AWAITING_APPROVAL`) with the decision a person owes and the inputs an answer
|
|
2638
|
+
* continues from, and its task shows the question and what the turn cost so far.
|
|
1044
2639
|
*
|
|
1045
2640
|
* Deliberately skips change-set assessment and verification: a parked run's
|
|
1046
2641
|
* edits are partial by definition, and assessing them as a final change set is
|
|
1047
2642
|
* exactly the "read a suspended turn as complete" mistake the suspension field
|
|
1048
2643
|
* exists to prevent.
|
|
1049
2644
|
*/
|
|
1050
|
-
|
|
1051
|
-
const { task,
|
|
1052
|
-
|
|
1053
|
-
durableTask,
|
|
1054
|
-
task,
|
|
1055
|
-
verificationPlans,
|
|
1056
|
-
baseline,
|
|
1057
|
-
suspension,
|
|
1058
|
-
parkedAt: new Date().toISOString(),
|
|
1059
|
-
});
|
|
2645
|
+
buildParkedCodingRunResult(params) {
|
|
2646
|
+
const { task, taskId, baseline, suspension, output } = params;
|
|
2647
|
+
const parkedAt = new Date().toISOString();
|
|
1060
2648
|
const durableOutput = {
|
|
1061
2649
|
succeeded: false,
|
|
1062
2650
|
disposition: ApplicationCodingTaskDisposition.AWAITING_OPERATOR_INPUT,
|
|
@@ -1069,129 +2657,445 @@ let CodingAgentDispatchCompanionService = class CodingAgentDispatchCompanionServ
|
|
|
1069
2657
|
...(output.turnCount ? { turnCount: output.turnCount } : {}),
|
|
1070
2658
|
...(output.continuations && output.continuations.length > 0 ? { continuations: output.continuations } : {}),
|
|
1071
2659
|
...(params.codingSessionEventCount > 0 ? { codingSessionEventCount: params.codingSessionEventCount } : {}),
|
|
1072
|
-
...(params.retainedCodingSessionFrames.length > 0
|
|
2660
|
+
...(params.retainedCodingSessionFrames.length > 0
|
|
2661
|
+
? { codingSessionFrames: params.retainedCodingSessionFrames, codingSessionRetention: params.codingSessionRetention }
|
|
2662
|
+
: {}),
|
|
1073
2663
|
...(params.usage ? { usage: params.usage } : {}),
|
|
1074
2664
|
...(output.deniedPermissionCount !== undefined ? { deniedPermissionCount: output.deniedPermissionCount } : {}),
|
|
1075
2665
|
...(output.permissionDecisions && output.permissionDecisions.length > 0 ? { permissionDecisions: output.permissionDecisions } : {}),
|
|
1076
2666
|
};
|
|
1077
|
-
//
|
|
1078
|
-
//
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
2667
|
+
// The resume inputs — see `ApplicationCodingRunCheckpointSchema` for why the CONTRACT and the
|
|
2668
|
+
// ORIGINAL baseline travel here rather than being re-derived when the answer arrives.
|
|
2669
|
+
const checkpoint = {
|
|
2670
|
+
kind: APPLICATION_CODING_RUN_CHECKPOINT_KIND,
|
|
2671
|
+
taskRef: task.taskRef,
|
|
2672
|
+
contract: task,
|
|
2673
|
+
baseline,
|
|
2674
|
+
suspension,
|
|
2675
|
+
parkedAt,
|
|
2676
|
+
};
|
|
2677
|
+
return {
|
|
2678
|
+
kind: CodingRunEnding.PARKED,
|
|
2679
|
+
/*
|
|
2680
|
+
* UNROUTED, deliberately (#1751). Under the notify-and-proceed posture the ANSWERING AGENT settles
|
|
2681
|
+
* the questions it can before a person sees them (#1559), and an OWNER route admits only its
|
|
2682
|
+
* requester as a signed-in person: routed, every one of those answers would be refused and every
|
|
2683
|
+
* question would fall to the creator. A coding question is routed only once the route model can
|
|
2684
|
+
* express "the agent acting within the posture the owner chose" — until then its door is its
|
|
2685
|
+
* authority, and each settle still records its answer.
|
|
2686
|
+
*/
|
|
2687
|
+
suspension: {
|
|
2688
|
+
decision: projectParkedCodingQuestionAsDecision({ taskId, taskRef: task.taskRef, suspension, parkedAt }),
|
|
2689
|
+
checkpointContext: checkpoint,
|
|
2690
|
+
taskOutput: durableOutput,
|
|
2691
|
+
},
|
|
1082
2692
|
output: durableOutput,
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
2693
|
+
afterSettle: () => params.traceBestEffort('record-awaiting-input', () => this.traceOperationStart({
|
|
2694
|
+
sessionContext: params.runSession,
|
|
2695
|
+
step: params.runStep,
|
|
2696
|
+
type: 'application-coding-task-awaiting-input',
|
|
2697
|
+
summary: `Application coding task ${task.taskRef} is awaiting an operator answer`,
|
|
2698
|
+
payload: { taskId, question: suspension.question, resumable: suspension.resumable },
|
|
2699
|
+
})),
|
|
2700
|
+
};
|
|
2701
|
+
}
|
|
2702
|
+
/**
|
|
2703
|
+
* Has this build task ALREADY been run to a working result?
|
|
2704
|
+
*
|
|
2705
|
+
* Asked by the build dispatcher before it selects a task, and the reason is a measured money
|
|
2706
|
+
* leak rather than tidiness. `dispatch-next` picks `ready[0]`, and readiness is "not landed";
|
|
2707
|
+
* a task whose declared PRODUCT is never satisfied by the work it does is therefore ready
|
|
2708
|
+
* again the instant it finishes. Measured 2026-09-10 on Wonder CRM, where every task in the
|
|
2709
|
+
* plan declares `produces: []` and so can never land (#606): three consecutive dispatches
|
|
2710
|
+
* selected `build-task-contact-schema`, ran a full coding agent each time, and cost roughly
|
|
2711
|
+
* $7.50 per iteration. Nothing failed — each run succeeded — and the loop is unbounded.
|
|
2712
|
+
*
|
|
2713
|
+
* The durable actor-task rows are the right source and the only one that survives a restart:
|
|
2714
|
+
* an in-memory "last dispatched" would forget across the respawn that a rebuild triggers, and
|
|
2715
|
+
* the loop would resume.
|
|
2716
|
+
*
|
|
2717
|
+
* Deliberately COMPLETED only. A failed or cancelled run is exactly what an operator SHOULD be
|
|
2718
|
+
* able to re-dispatch, and a parked one is answered by resuming rather than by re-running.
|
|
2719
|
+
*
|
|
2720
|
+
* And a RE-ARMED completed run does not count (#1535): once the reason a task did not land is
|
|
2721
|
+
* fixed, `rearmBuildTask` records that on the run, and the task is offered again.
|
|
2722
|
+
*/
|
|
2723
|
+
async findCompletedRunForBuildTask(buildTaskRef, sessionContext) {
|
|
2724
|
+
const [first] = await this.listCountingCompletedRunsForBuildTask(buildTaskRef, sessionContext);
|
|
2725
|
+
return first === undefined ? null : { taskId: first.taskId, completedAt: first.completedAt };
|
|
2726
|
+
}
|
|
2727
|
+
/**
|
|
2728
|
+
* Put a build task back in the queue after the reason it did not land has been fixed (#1535).
|
|
2729
|
+
*
|
|
2730
|
+
* Every completed run the anti-loop guard still counts, and every failed run not yet re-armed (a forgiven
|
|
2731
|
+
* one included, #1581), gets a re-arm recorded on its own row, in its
|
|
2732
|
+
* long-term memory, with the reason and a note. Nothing about the run is rewritten: it still reads
|
|
2733
|
+
* as the run it was, and it now also reads as a run that was superseded, and why.
|
|
2734
|
+
*
|
|
2735
|
+
* Refuses when there is nothing to re-arm, naming why, because a re-arm that changes nothing would
|
|
2736
|
+
* let an operator believe a task was released when it was never held.
|
|
2737
|
+
*/
|
|
2738
|
+
async rearmBuildTask(buildTaskRef, request, sessionContext) {
|
|
2739
|
+
/*
|
|
2740
|
+
* Completed runs hold a task through the anti-loop guard; failed ones through its attempt budget
|
|
2741
|
+
* (#1536). EVERY failed run not yet re-armed is re-armed, including the ones the budget currently
|
|
2742
|
+
* FORGIVES (a host failure, suspected interference): forgiveness is bounded per task, and a re-arm
|
|
2743
|
+
* that left the forgiven runs in place would leave their slots used for good, so the first host
|
|
2744
|
+
* failure after the re-arm would already count (#1581, third review F-1).
|
|
2745
|
+
*/
|
|
2746
|
+
const failedNotRearmed = (await this.listAttributableFailedRunsForBuildTask(buildTaskRef, sessionContext, { includeRearmed: true }))
|
|
2747
|
+
.filter((run) => readBuildTaskRearm(run.memory) === undefined);
|
|
2748
|
+
const runs = [
|
|
2749
|
+
...(await this.listCountingCompletedRunsForBuildTask(buildTaskRef, sessionContext)),
|
|
2750
|
+
...failedNotRearmed,
|
|
2751
|
+
];
|
|
2752
|
+
if (runs.length === 0) {
|
|
2753
|
+
throw new NothingToRearmError(`Build task "${buildTaskRef}" has no completed coding run that still counts and no failed one not yet re-armed, so there is nothing to re-arm: `
|
|
2754
|
+
+ 'it was never run, or every run is already re-armed. A task in that state is '
|
|
2755
|
+
+ 'offered by the next dispatch on its own.');
|
|
2756
|
+
}
|
|
2757
|
+
const rearm = { reason: request.reason, note: request.note, rearmedAt: new Date().toISOString() };
|
|
2758
|
+
try {
|
|
2759
|
+
for (const run of runs) {
|
|
2760
|
+
await this.executionsService.updateActorTask(run.taskId, { memory: withBuildTaskRearm(run.memory, rearm) }, sessionContext);
|
|
2761
|
+
}
|
|
2762
|
+
}
|
|
2763
|
+
finally {
|
|
2764
|
+
// A re-arm is actor-plane memory only — no file moves — and it releases a task the boards held as
|
|
2765
|
+
// stuck. Announced even when a later update threw: the runs re-armed before it did still moved.
|
|
2766
|
+
this.announceRunStateChanged();
|
|
2767
|
+
}
|
|
2768
|
+
return { rearmedRunTaskIds: runs.map((run) => run.taskId), rearm };
|
|
2769
|
+
}
|
|
2770
|
+
/**
|
|
2771
|
+
* The FAILED coding runs of one build task that still count against its attempt budget (#1536) —
|
|
2772
|
+
* newest first, re-armed runs excluded, each with what the dispatcher needs to tell the next attempt
|
|
2773
|
+
* why this one failed.
|
|
2774
|
+
*
|
|
2775
|
+
* Only the task's OWN failures count. Since `703d07c3` a check that was red before the run started
|
|
2776
|
+
* no longer fails it (the run completes and records `carriedVerificationFailures`). A CANCELLED or
|
|
2777
|
+
* ABORTED run is not an attempt and is not listed — which includes a dispatch refused before
|
|
2778
|
+
* admission, settled ABORTED (#1581), and a FAILED row written before that which never started. A FAILED run the HOST caused (`failureAttribution`,
|
|
2779
|
+
* {@link deriveCodingRunFailureAttribution}) — an operator's cancel of a running turn among them — is
|
|
2780
|
+
* forgiven up to `MAXIMUM_HOST_FAILURE_EXCLUSIONS`, like suspected interference: past the bound it
|
|
2781
|
+
* counts, so a host condition that fails every attempt still retires the task. A re-arm releases the
|
|
2782
|
+
* forgiven runs too (`rearmBuildTask`). A row older than the field counts.
|
|
2783
|
+
*/
|
|
2784
|
+
async listAttributableFailedRunsForBuildTask(buildTaskRef, sessionContext, options = {}) {
|
|
2785
|
+
const failed = await this.executionsService.listActorTasks(CompanionActorTasksListQuerySchema.parse({
|
|
2786
|
+
status: FlowsActors_Status.FAILED,
|
|
2787
|
+
actorRefs: [...APPLICATION_CODING_AGENT_REFS],
|
|
2788
|
+
limit: 200,
|
|
2789
|
+
}), sessionContext);
|
|
2790
|
+
const counting = [];
|
|
2791
|
+
for (const task of failed) {
|
|
2792
|
+
const row = task;
|
|
2793
|
+
if (!isApplicationCodingAgentRef(row.actors?.actorRef))
|
|
2794
|
+
continue;
|
|
2795
|
+
if (!isRecordValue(row.input) || row.input.taskRef !== buildTaskRef)
|
|
2796
|
+
continue;
|
|
2797
|
+
// A re-armed failure no longer counts against the budget; a retry may still want to READ it.
|
|
2798
|
+
if (options.includeRearmed !== true && readBuildTaskRearm(row.memory) !== undefined)
|
|
2799
|
+
continue;
|
|
2800
|
+
const output = isRecordValue(row.output) ? row.output : {};
|
|
2801
|
+
/*
|
|
2802
|
+
* A run the HOST declined to start is no attempt (#1581, seventh review F7): the build board and the
|
|
2803
|
+
* retry context already read it so through `deriveCodingRunStart`, and the budget is the third reader
|
|
2804
|
+
* of that question. Only a row written before #1581 is FAILED and never started; today it is ABORTED.
|
|
2805
|
+
*/
|
|
2806
|
+
if (options.includeRearmed !== true
|
|
2807
|
+
&& deriveCodingRunStart({ status: FlowsActors_Status.FAILED, ...(row.startedAt ? { startedAt: row.startedAt } : {}), output }) === CodingRunStart.REFUSED_BY_HOST) {
|
|
2808
|
+
continue;
|
|
2809
|
+
}
|
|
2810
|
+
counting.push({
|
|
2811
|
+
taskId: String(row._id),
|
|
2812
|
+
...(row.completedAt ? { settledAt: row.completedAt } : {}),
|
|
2813
|
+
// Whether the run STARTED is what tells a retry that nothing ran (`deriveCodingRunStart`).
|
|
2814
|
+
...(row.startedAt ? { startedAt: row.startedAt } : {}),
|
|
2815
|
+
memory: row.memory,
|
|
2816
|
+
output,
|
|
2817
|
+
interferenceSuspected: output.interferenceSuspected === true,
|
|
2818
|
+
hostAttributed: output.failureAttribution === CodingRunFailureAttribution.HOST,
|
|
2819
|
+
});
|
|
2820
|
+
}
|
|
2821
|
+
/*
|
|
2822
|
+
* A run that failed while other runs shared the tree may have failed for THEIR edits (#1528). The
|
|
2823
|
+
* budget forgives up to MAXIMUM_INTERFERENCE_RETRIES of those, so interference cannot retire a
|
|
2824
|
+
* task, and a task that genuinely cannot pass still does. A retry READING its history sees them all.
|
|
2825
|
+
*/
|
|
2826
|
+
return (options.includeRearmed === true ? counting : selectBudgetCountingFailures(counting))
|
|
2827
|
+
.map(({ interferenceSuspected: _suspected, hostAttributed: _host, ...run }) => run);
|
|
2828
|
+
}
|
|
2829
|
+
/**
|
|
2830
|
+
* The completed coding runs of one build task that the anti-loop guard still counts — newest first,
|
|
2831
|
+
* re-armed runs excluded. One reader, so the guard and the re-arm cannot disagree about which runs
|
|
2832
|
+
* hold a task.
|
|
2833
|
+
*/
|
|
2834
|
+
async listCountingCompletedRunsForBuildTask(buildTaskRef, sessionContext) {
|
|
2835
|
+
/*
|
|
2836
|
+
* Scoped to the CODING actors before the list is trimmed (#1359). This used to read the 200 most
|
|
2837
|
+
* recently updated `COMPLETED` tasks of EVERY actor, so a busy judge or labelling lane could push
|
|
2838
|
+
* a completed coding run out of the window — and this guard would then answer "never ran" and
|
|
2839
|
+
* reopen the loop it exists to close. What remains is a bound on coding runs alone: a build task
|
|
2840
|
+
* whose completed run is older than the 200 most recent COMPLETED coding runs is still missed.
|
|
2841
|
+
*/
|
|
2842
|
+
const completed = await this.executionsService.listActorTasks(CompanionActorTasksListQuerySchema.parse({
|
|
2843
|
+
status: FlowsActors_Status.COMPLETED,
|
|
2844
|
+
actorRefs: [...APPLICATION_CODING_AGENT_REFS],
|
|
2845
|
+
limit: 200,
|
|
2846
|
+
}), sessionContext);
|
|
2847
|
+
const counting = [];
|
|
2848
|
+
for (const task of completed) {
|
|
2849
|
+
const row = task;
|
|
2850
|
+
// MEMBERSHIP, not equality with one constant — the same reason
|
|
2851
|
+
// `reconcileInterruptedApplicationCodingTasks` gives: a second declared coding agent must
|
|
2852
|
+
// not make this silently answer "never ran".
|
|
2853
|
+
if (!isApplicationCodingAgentRef(row.actors?.actorRef))
|
|
2854
|
+
continue;
|
|
2855
|
+
if (!isRecordValue(row.input) || row.input.taskRef !== buildTaskRef)
|
|
2856
|
+
continue;
|
|
2857
|
+
if (readBuildTaskRearm(row.memory) !== undefined)
|
|
2858
|
+
continue;
|
|
2859
|
+
counting.push({ taskId: String(row._id), completedAt: row.completedAt, memory: row.memory });
|
|
2860
|
+
}
|
|
2861
|
+
return counting;
|
|
1092
2862
|
}
|
|
1093
|
-
/**
|
|
1094
|
-
|
|
1095
|
-
|
|
2863
|
+
/**
|
|
2864
|
+
* A run for this build task that is PARKED on an unanswered question.
|
|
2865
|
+
*
|
|
2866
|
+
* The sibling above answers "has this task already run to a terminal state?" and is what the
|
|
2867
|
+
* dispatcher's anti-loop guard consults. It lists `COMPLETED` tasks only, so a run that SUSPENDS is
|
|
2868
|
+
* invisible to it, and its task would be offered again on every dispatch, forever.
|
|
2869
|
+
*
|
|
2870
|
+
* Measured 2026-09-16 on Wonder CRM: `build-task-gdpr-data-handling-governance` suspended, and the
|
|
2871
|
+
* next `dispatch-next` dry run selected the same task — neither landed, nor marked, nor skipped.
|
|
2872
|
+
* That is the money-burning loop `buildUnlandableTaskError` was written against (#606, ~$7.50 a
|
|
2873
|
+
* turn), reached through the one door that guard cannot see.
|
|
2874
|
+
*
|
|
2875
|
+
* Re-dispatching a parked task is worse than re-dispatching a completed one: it starts a NEW run
|
|
2876
|
+
* and abandons the persisted session the operator's answer would have resumed, so the question and
|
|
2877
|
+
* everything the agent established are lost rather than merely repeated.
|
|
2878
|
+
*
|
|
2879
|
+
* Reads the waiting EXECUTIONS of the coding system since #1359 — see `listParkedCodingRuns` for
|
|
2880
|
+
* the residual that closed.
|
|
2881
|
+
*/
|
|
2882
|
+
async findParkedRunForBuildTask(buildTaskRef, sessionContext) {
|
|
2883
|
+
for (const parked of await this.listParkedCodingRuns(sessionContext)) {
|
|
2884
|
+
if (parked.checkpoint.taskRef !== buildTaskRef)
|
|
2885
|
+
continue;
|
|
2886
|
+
/*
|
|
2887
|
+
* RESUMABLE only, and matching the answer door's own predicate is the whole point. A
|
|
2888
|
+
* non-resumable park cannot be answered — that door refuses it — so reporting it here would
|
|
2889
|
+
* make the dispatcher skip the one task no operator can unblock: a dead end in both
|
|
2890
|
+
* directions. A non-resumable park is therefore reported as NOT parked, and a fresh dispatch
|
|
2891
|
+
* is the only way forward for it.
|
|
2892
|
+
*/
|
|
2893
|
+
if (!parked.checkpoint.suspension.resumable)
|
|
2894
|
+
continue;
|
|
2895
|
+
return { taskId: parked.taskId, question: parked.checkpoint.suspension.question, resumable: true };
|
|
2896
|
+
}
|
|
2897
|
+
return null;
|
|
1096
2898
|
}
|
|
1097
2899
|
/**
|
|
1098
|
-
*
|
|
1099
|
-
* after the in-process map has lost it (a companion restart).
|
|
2900
|
+
* The parked run behind one TASK id, or `null` when nothing answerable waits under it.
|
|
1100
2901
|
*
|
|
1101
|
-
*
|
|
1102
|
-
*
|
|
1103
|
-
*
|
|
1104
|
-
*
|
|
2902
|
+
* The task id is the lane's handle and the execution is the engine's, so this is the join: the
|
|
2903
|
+
* task row names its execution, and the driver says whether that execution is waiting. Every way
|
|
2904
|
+
* of not being a parked coding run answers `null` — not a coding task, no execution, not waiting,
|
|
2905
|
+
* a checkpoint that no longer parses. A read that FAILS answers `null` too in the lenient default,
|
|
2906
|
+
* for the one caller that treats every miss alike (the answering-agent loop, whose miss sends the
|
|
2907
|
+
* question to the creator); a
|
|
2908
|
+
* STRICT read throws it instead, for a caller that must not tell a person "nothing is waiting" when
|
|
2909
|
+
* nothing was read (#1581, tenth and eleventh reviews).
|
|
1105
2910
|
*/
|
|
1106
|
-
async
|
|
1107
|
-
|
|
2911
|
+
async readParkedCodingRun(taskId, sessionContext,
|
|
2912
|
+
/**
|
|
2913
|
+
* STRICT: a read that FAILED throws instead of answering `null` — for a caller that must tell "nothing
|
|
2914
|
+
* is waiting" from "could not tell" (#1581, tenth review R10-1): every door that answers a person (the
|
|
2915
|
+
* answer door, the per-run cancel, a chain's withdraw) reads strictly.
|
|
2916
|
+
*/
|
|
2917
|
+
options = {}) {
|
|
2918
|
+
let executionId;
|
|
1108
2919
|
try {
|
|
1109
|
-
|
|
2920
|
+
const row = await this.executionsService.getActorTask(taskId, sessionContext);
|
|
2921
|
+
if (!isApplicationCodingAgentRef(row.actors?.actorRef))
|
|
2922
|
+
return null;
|
|
2923
|
+
executionId = row.wildoApplicationActorSystemExecutionId;
|
|
1110
2924
|
}
|
|
1111
|
-
catch {
|
|
2925
|
+
catch (error) {
|
|
2926
|
+
if (options.strict === true && !isAbsentParkRead(error))
|
|
2927
|
+
throw error;
|
|
1112
2928
|
return null;
|
|
1113
2929
|
}
|
|
1114
|
-
|
|
1115
|
-
if (row.actors?.actorRef !== APPLICATION_CODING_AGENT_REF)
|
|
2930
|
+
if (!executionId)
|
|
1116
2931
|
return null;
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
2932
|
+
try {
|
|
2933
|
+
const waiting = await this.actorsSystem.readSuspendedActorExecution(executionId, sessionContext);
|
|
2934
|
+
const checkpoint = ApplicationCodingRunCheckpointSchema.safeParse(waiting.row.checkpoint?.context);
|
|
2935
|
+
// A run parked from a wave resumes as one: it holds only its task, never the tree (#1528).
|
|
2936
|
+
const mode = isConcurrentRunSubject(waiting.row.exclusiveSubject) ? CodingRunConcurrency.CONCURRENT : CodingRunConcurrency.SINGLE_FLIGHT;
|
|
2937
|
+
// The suspension it waits on NOW: a resume carries it, so an answer read against one question cannot continue the next (#1581, seventh review F9).
|
|
2938
|
+
return checkpoint.success ? { executionId, suspensionRef: actorExecutionSuspensionRef(waiting.suspension), checkpoint: checkpoint.data, mode } : null;
|
|
2939
|
+
}
|
|
2940
|
+
catch (error) {
|
|
2941
|
+
// `readSuspendedActorExecution` refuses an execution that is not waiting — already answered,
|
|
2942
|
+
// cancelled, settled. For this door that is "nothing to answer", not a fault; a failed read is.
|
|
2943
|
+
if (options.strict === true && !isAbsentParkRead(error))
|
|
2944
|
+
throw error;
|
|
1121
2945
|
return null;
|
|
1122
|
-
|
|
2946
|
+
}
|
|
1123
2947
|
}
|
|
1124
2948
|
/**
|
|
1125
|
-
*
|
|
2949
|
+
* Append one answer to `src/build-plan/CODING-ANSWERS.md` — the record of what a person told a
|
|
2950
|
+
* parked coding run (#1454, Step 6). Until then the answer lived only in the agent session and
|
|
2951
|
+
* the run log, so a reviewer accepting the change set could not see the decision it rests on.
|
|
1126
2952
|
*
|
|
1127
|
-
*
|
|
1128
|
-
*
|
|
1129
|
-
*
|
|
1130
|
-
* {@link resumeParkedCodingTask} directly.
|
|
2953
|
+
* Best-effort: a record that cannot be written is logged and the answer still goes to the agent
|
|
2954
|
+
* — the person's answer is not held hostage to a file. The file lands beside the build plan as a
|
|
2955
|
+
* working edit; a commit accepts it like every other decision record.
|
|
1131
2956
|
*/
|
|
1132
|
-
async
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
|
|
2957
|
+
async recordCodingQuestionAnswer(taskRef, question, answer, source = {}) {
|
|
2958
|
+
const specificationsPackageRoot = this.companionContext.resolvedSpecifications?.packageRoot;
|
|
2959
|
+
const buildPlanPath = getFamilyPackageRelativePath(ApplicationSpecificationFamily.BUILD_PLAN);
|
|
2960
|
+
if (!specificationsPackageRoot || !buildPlanPath)
|
|
2961
|
+
return;
|
|
2962
|
+
const filePath = join(specificationsPackageRoot, dirname(buildPlanPath), CODING_ANSWERS_FILE_NAME);
|
|
2963
|
+
try {
|
|
2964
|
+
await mkdir(dirname(filePath), { recursive: true });
|
|
2965
|
+
const entry = renderCodingQuestionAnswerEntry({ taskRef, question, answer, answeredAt: new Date().toISOString(), ...source });
|
|
2966
|
+
if (existsSync(filePath))
|
|
2967
|
+
await appendFile(filePath, entry, 'utf8');
|
|
2968
|
+
else
|
|
2969
|
+
await writeFile(filePath, `${renderCodingQuestionAnswersHeader()}${entry}`, 'utf8');
|
|
2970
|
+
}
|
|
2971
|
+
catch (error) {
|
|
2972
|
+
this.logDebug('Could not record the coding-question answer beside the build plan (the answer still resumes the run)', { taskRef, error: String(error) });
|
|
1144
2973
|
}
|
|
1145
|
-
return this.resumeParkedCodingTask(parked, answer);
|
|
1146
2974
|
}
|
|
1147
2975
|
/**
|
|
1148
|
-
*
|
|
1149
|
-
*
|
|
2976
|
+
* Answer a parked coding task's question, resuming the SAME agent session.
|
|
2977
|
+
*
|
|
2978
|
+
* ONE door, in-process or after a restart (#1359). The run's execution is `AWAITING_APPROVAL`
|
|
2979
|
+
* with the contract, the original baseline and the agent session on its checkpoint, and the
|
|
2980
|
+
* engine's `resumeActorExecution` continues it under the same ids: it refuses an execution that is
|
|
2981
|
+
* no longer waiting on the question this answer names BEFORE moving anything — so a second answer
|
|
2982
|
+
* to one question cannot run the work twice — moves the rows back to `PROCESSING`, and settles
|
|
2983
|
+
* whatever the continued run does, including parking again on a second question.
|
|
1150
2984
|
*
|
|
1151
|
-
*
|
|
1152
|
-
*
|
|
1153
|
-
*
|
|
1154
|
-
*
|
|
1155
|
-
*
|
|
2985
|
+
* WHICH question the answer names is the caller's to say, and it is required (`expected.suspensionRef`,
|
|
2986
|
+
* the value a pending question and its workbench row carry): an answer that named nothing would
|
|
2987
|
+
* continue whichever question the run waits on when the request lands, which is not necessarily the
|
|
2988
|
+
* one its person read (#1581, eighth and ninth reviews).
|
|
2989
|
+
*
|
|
2990
|
+
* A single-flight run resumes under the worktree mutation lock, exactly like a fresh dispatch (a
|
|
2991
|
+
* resume mutates the same worktree); a run parked from a wave resumes beside it, holding no lock, as
|
|
2992
|
+
* it ran (#1528). Either way it re-enters the turn ladder through `session/load`, so the agent
|
|
2993
|
+
* continues with its full context. The mutation scope and verification plan are the parked
|
|
2994
|
+
* contract's; a resume is held to the same bounds as the first run, and its change set is measured
|
|
2995
|
+
* from the first run's baseline.
|
|
1156
2996
|
*/
|
|
1157
|
-
async
|
|
2997
|
+
async respondToApplicationCodingTaskQuestion(taskId, answer, sessionContext, expected) {
|
|
2998
|
+
// A missing answer is a VALIDATION 400 regardless of whether a task is parked
|
|
2999
|
+
// — it is a malformed request, not a state conflict.
|
|
1158
3000
|
const trimmedAnswer = this.admitTypedInput(() => {
|
|
1159
3001
|
const value = answer.trim();
|
|
1160
3002
|
if (value.length === 0)
|
|
1161
3003
|
throw new Error('empty answer');
|
|
1162
3004
|
return value;
|
|
1163
3005
|
}, 'An answer is required to resume a parked coding task.');
|
|
1164
|
-
|
|
1165
|
-
|
|
3006
|
+
// Which question it answers: required, and a blank reference names none — a 400 at every door (#1581, R12-1).
|
|
3007
|
+
const answeredRef = this.admitTypedInput(() => {
|
|
3008
|
+
const value = expected.suspensionRef.trim();
|
|
3009
|
+
if (value.length === 0)
|
|
3010
|
+
throw new Error('empty suspensionRef');
|
|
3011
|
+
return value;
|
|
3012
|
+
}, 'An answer must name the question it answers (`suspensionRef`, as the pending question carries it).');
|
|
3013
|
+
// STRICT: a failed read must not tell a person their question is gone (#1581, eleventh review R11-5).
|
|
3014
|
+
const parked = await this.readParkedCodingRun(taskId, sessionContext, { strict: true }).catch((error) => {
|
|
3015
|
+
this.logger.warn('The answer door could not read the coding run\'s park', { taskId, error: describeCaughtError(error) });
|
|
3016
|
+
throw this.buildDispatchConflictError(`Coding task ${taskId} could not be read, so your answer was not applied. Its question may still be waiting; try again.`);
|
|
3017
|
+
});
|
|
3018
|
+
if (!parked) {
|
|
3019
|
+
throw this.buildDispatchConflictError(`No coding task is awaiting an answer under id ${taskId}. It was already answered, cancelled or settled, `
|
|
3020
|
+
+ 'or it is not a coding run.');
|
|
3021
|
+
}
|
|
3022
|
+
const { checkpoint, executionId, mode } = parked;
|
|
3023
|
+
// The fast 409: the run has asked again since the caller read its question. The driver re-checks the
|
|
3024
|
+
// same suspension reference when it resumes, so a question asked after this point is refused there too.
|
|
3025
|
+
if (answeredRef !== parked.suspensionRef) {
|
|
3026
|
+
throw this.buildDispatchConflictError(`Coding task ${taskId} has asked another question since the one you answered. Read its current question and answer that.`);
|
|
3027
|
+
}
|
|
3028
|
+
// Past that check the caller's reference IS this one; the driver holds the resume to it.
|
|
3029
|
+
const { suspensionRef } = parked;
|
|
3030
|
+
if (!checkpoint.suspension.resumable) {
|
|
1166
3031
|
throw this.buildDispatchConflictError(`Coding task ${taskId} parked on a question, but its agent does not support session resume, `
|
|
1167
3032
|
+ 'so the answer cannot be delivered to the same session. Re-dispatch the task with the answer folded into the objective.');
|
|
1168
3033
|
}
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
|
|
3034
|
+
// Answers are serialized behind the same worktree: refused while another run holds it. The
|
|
3035
|
+
// driver re-takes the subject on resume and refuses there too; this names the holder first.
|
|
3036
|
+
await this.refuseWhileWorktreeIsHeld(null, sessionContext);
|
|
3037
|
+
if (mode === CodingRunConcurrency.SINGLE_FLIGHT)
|
|
3038
|
+
await this.refuseWhileConcurrentRunsInFlight(sessionContext);
|
|
3039
|
+
const task = checkpoint.contract;
|
|
3040
|
+
const verificationPlans = this.admitTypedInput(() => resolveApplicationCodingTaskVerificationPlans(task.verificationIntent.requiredChecks), 'The parked coding task names a verification check this host no longer registers.');
|
|
1175
3041
|
const admission = createDeferred();
|
|
1176
|
-
const
|
|
1177
|
-
|
|
3042
|
+
const resumeBody = async () => {
|
|
3043
|
+
/*
|
|
3044
|
+
* Refused while THIS process still runs a chain for the task (#1581, fifth review R5-1/R5-2). A
|
|
3045
|
+
* run that parked is still registered while its own chain offers the question to the answering
|
|
3046
|
+
* agent (#1559). Under single-flight the worktree lock already excludes a person's answer there;
|
|
3047
|
+
* a CONCURRENT run holds no lock, so without this a person's resume would take over the chain's
|
|
3048
|
+
* registration and settlement, and the chain's ending would delete the one and strand the other.
|
|
3049
|
+
* Checked HERE, where it is followed by the registration with nothing awaited in between, and
|
|
3050
|
+
* nowhere earlier: a second, earlier check could only ever repeat this one.
|
|
3051
|
+
*/
|
|
3052
|
+
this.refuseWhileRunChainIsLive(taskId);
|
|
3053
|
+
// ONE settlement for the whole chain: the resumed turn, and any questions the answering agent
|
|
3054
|
+
// then answers under the same hold (#1559) — a caller awaiting it sees the chain's final state.
|
|
1178
3055
|
const settlement = createDeferred();
|
|
1179
3056
|
this.applicationCodingTaskSettlements.set(taskId, { promise: settlement.promise, resolve: () => settlement.resolve(undefined) });
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
});
|
|
3057
|
+
/*
|
|
3058
|
+
* Registered for the WHOLE chain, as a dispatched run is (#1581, fourth review A-1): each resume
|
|
3059
|
+
* inherits this entry, so an operator's cancel reaches the resumed turn, and a cancel made while
|
|
3060
|
+
* the answering agent decides a follow-up question still finds the run rather than "nothing is
|
|
3061
|
+
* running". Removed when the chain settles.
|
|
3062
|
+
*/
|
|
3063
|
+
this.registerActiveRun({ taskId, startedAt: new Date().toISOString(), abortController: new AbortController(), mode: mode ?? CodingRunConcurrency.SINGLE_FLIGHT });
|
|
3064
|
+
let resumed;
|
|
1187
3065
|
try {
|
|
1188
|
-
await this.
|
|
3066
|
+
resumed = await this.resumeParkedRunHoldingLock({
|
|
3067
|
+
taskId,
|
|
3068
|
+
executionId,
|
|
3069
|
+
suspensionRef,
|
|
3070
|
+
checkpoint,
|
|
3071
|
+
answer: trimmedAnswer,
|
|
3072
|
+
answerSource: expected.answeredByRef?.trim() ? { answeredByRef: expected.answeredByRef.trim() } : {},
|
|
3073
|
+
...(expected.actingUserId ? { actingUserId: expected.actingUserId } : {}),
|
|
3074
|
+
verificationPlans,
|
|
3075
|
+
sessionContext,
|
|
3076
|
+
mode,
|
|
3077
|
+
onAdmitted: (admitted) => admission.resolve(admitted),
|
|
3078
|
+
});
|
|
3079
|
+
// Only a resume that RAN can have parked again: a refused one left the person's question where
|
|
3080
|
+
// it was, and it is still theirs, not the answering agent's (#1581, seventh review F5).
|
|
3081
|
+
if (resumed.outcome === ParkedRunResumeOutcome.RAN)
|
|
3082
|
+
await this.answerParkedQuestionsHoldingLock(taskId, sessionContext);
|
|
1189
3083
|
}
|
|
1190
3084
|
finally {
|
|
1191
|
-
|
|
3085
|
+
// Awaited ONLY when cancelled: a chain that was not checks and unregisters in one synchronous step,
|
|
3086
|
+
// so no cancel can land between the two and be lost (#1581, ninth review R9-4).
|
|
3087
|
+
const ending = this.isRunCancelled(taskId) ? await this.withdrawCancelledRunChain(taskId, sessionContext) : null;
|
|
3088
|
+
this.unregisterActiveRun(taskId);
|
|
1192
3089
|
this.applicationCodingTaskSettlements.get(taskId)?.resolve();
|
|
3090
|
+
// A resume that never reached the executor answered nobody: the caller is told why, in its own terms.
|
|
3091
|
+
admission.reject(this.buildDispatchConflictError(this.describeUnresumedAnswer(taskId, resumed, ending)));
|
|
3092
|
+
this.announceRunStateChanged();
|
|
1193
3093
|
}
|
|
1194
|
-
}
|
|
3094
|
+
};
|
|
3095
|
+
// A run parked from a wave resumes beside it, holding no lock, as it ran (#1528).
|
|
3096
|
+
const resumeRun = mode === CodingRunConcurrency.CONCURRENT
|
|
3097
|
+
? resumeBody()
|
|
3098
|
+
: withDedicatedFileLock(this.getWorkspaceMutationLockPath(), resumeBody, { retries: { retries: 0 } });
|
|
1195
3099
|
resumeRun.catch((error) => {
|
|
1196
3100
|
admission.reject(this.mapLockError(error));
|
|
1197
3101
|
this.logDebug('Application coding-task resume run terminated with error', {
|
|
@@ -1201,6 +3105,346 @@ let CodingAgentDispatchCompanionService = class CodingAgentDispatchCompanionServ
|
|
|
1201
3105
|
});
|
|
1202
3106
|
return admission.promise;
|
|
1203
3107
|
}
|
|
3108
|
+
/**
|
|
3109
|
+
* Why a person's answer resumed nothing (#1581, seventh review F5; eighth review R8-5), in the terms of
|
|
3110
|
+
* what actually happened. A cancel wins over any refusal: the run is withdrawn either way. A held subject
|
|
3111
|
+
* leaves the question WAITING, so the person may answer again; only the driver's NOT_SUSPENDED means the
|
|
3112
|
+
* question is gone; anything else is a failure to ask, and says so.
|
|
3113
|
+
*/
|
|
3114
|
+
describeUnresumedAnswer(taskId, resumed, ending) {
|
|
3115
|
+
if (ending !== null || resumed?.outcome === ParkedRunResumeOutcome.CANCELLED) {
|
|
3116
|
+
if (ending === CancelledParkOutcome.STILL_WAITING) {
|
|
3117
|
+
return `Coding task ${taskId} was cancelled before your answer could resume it, but its question could not be withdrawn and is still waiting. Cancel it again.`;
|
|
3118
|
+
}
|
|
3119
|
+
if (ending === CancelledParkOutcome.UNCONFIRMED) {
|
|
3120
|
+
return `Coding task ${taskId} was cancelled before your answer could resume it, but the run could not be read to confirm it was withdrawn. Check it, and cancel it again if it is still waiting.`;
|
|
3121
|
+
}
|
|
3122
|
+
return `Coding task ${taskId} was cancelled before your answer could resume it; it no longer waits, and your answer ran nothing.`;
|
|
3123
|
+
}
|
|
3124
|
+
if (resumed?.outcome === ParkedRunResumeOutcome.REFUSED) {
|
|
3125
|
+
if (isActorExecutionSubjectBusyError(resumed.refusal)) {
|
|
3126
|
+
return `Coding task ${taskId} could not be resumed yet: another run holds its worktree. Its question is still waiting — answer again once that run finishes.`;
|
|
3127
|
+
}
|
|
3128
|
+
if (isActorExecutionNotSuspendedError(resumed.refusal)) {
|
|
3129
|
+
return `Coding task ${taskId} could not be resumed: it is no longer awaiting this answer (it was answered, cancelled, or has asked again).`;
|
|
3130
|
+
}
|
|
3131
|
+
return `Coding task ${taskId} could not be resumed (${describeCaughtError(resumed.refusal)}). Its question is still waiting; answer again.`;
|
|
3132
|
+
}
|
|
3133
|
+
return `Coding task ${taskId} could not be resumed. Its question is still waiting; answer again.`;
|
|
3134
|
+
}
|
|
3135
|
+
/**
|
|
3136
|
+
* The terminal record of a resume a cancel stopped before any turn (#1581, ninth review R9-6): its trace
|
|
3137
|
+
* session was opened for a turn that never ran, and must say why it holds nothing else. Best effort.
|
|
3138
|
+
*/
|
|
3139
|
+
async recordCancelledBeforeTurn(trace, taskRef, taskId) {
|
|
3140
|
+
await trace.traceBestEffort('record-cancelled-before-turn', () => this.traceOperationStart({
|
|
3141
|
+
sessionContext: trace.runSession,
|
|
3142
|
+
step: trace.runStep,
|
|
3143
|
+
type: 'application-coding-task-cancelled-before-turn',
|
|
3144
|
+
summary: `Application coding task ${taskRef} was cancelled before its answer resumed a turn`,
|
|
3145
|
+
payload: { taskId },
|
|
3146
|
+
}));
|
|
3147
|
+
}
|
|
3148
|
+
/** The terminal record of a resume the DRIVER refused before any turn (#1581, tenth review R10-2). Best effort. */
|
|
3149
|
+
async recordResumeRefused(trace, taskRef, taskId, refusal) {
|
|
3150
|
+
await trace.traceBestEffort('record-resume-refused', () => this.traceOperationStart({
|
|
3151
|
+
sessionContext: trace.runSession,
|
|
3152
|
+
step: trace.runStep,
|
|
3153
|
+
type: 'application-coding-task-resume-refused',
|
|
3154
|
+
summary: `Application coding task ${taskRef} could not be resumed: ${describeCaughtError(refusal)}`,
|
|
3155
|
+
payload: { taskId },
|
|
3156
|
+
}));
|
|
3157
|
+
}
|
|
3158
|
+
/**
|
|
3159
|
+
* Refuse (409) to start a person's resume while this process still runs a chain for the task — the
|
|
3160
|
+
* park's own chain offering its question to the answering agent (#1559, #1581).
|
|
3161
|
+
*/
|
|
3162
|
+
refuseWhileRunChainIsLive(taskId) {
|
|
3163
|
+
if (!this.activeRuns.has(taskId))
|
|
3164
|
+
return;
|
|
3165
|
+
throw this.buildDispatchConflictError(`Coding task ${taskId} is still being handled here: its own run is deciding whether it can answer the question `
|
|
3166
|
+
+ 'it parked on, or it is being cancelled. Answer once it reports the question as waiting for you.');
|
|
3167
|
+
}
|
|
3168
|
+
/**
|
|
3169
|
+
* Continue one parked run with an answer. The CALLER holds the worktree mutation lock (a concurrent
|
|
3170
|
+
* run holds none) and owns the run's settlement — which is what lets the answering agent resume a
|
|
3171
|
+
* run from inside the hold of the run that parked, without a second acquire (the lock is not
|
|
3172
|
+
* re-entrant) and without the build loop taking the worktree in between (#1559).
|
|
3173
|
+
*
|
|
3174
|
+
* Says how it went ({@link ParkedRunResumeOutcome}); a caller must not treat a refused or cancelled
|
|
3175
|
+
* resume as a run that happened.
|
|
3176
|
+
*/
|
|
3177
|
+
async resumeParkedRunHoldingLock(input) {
|
|
3178
|
+
const { taskId, checkpoint } = input;
|
|
3179
|
+
const task = checkpoint.contract;
|
|
3180
|
+
const baseline = checkpoint.baseline;
|
|
3181
|
+
/*
|
|
3182
|
+
* INHERIT the run's registration when there is one (#1581, third review). Answered inside the hold of
|
|
3183
|
+
* the run that parked (#1559), the run is still registered, and an operator may have cancelled it
|
|
3184
|
+
* while the answering agent was deciding: a fresh controller dropped that cancel and ran the resumed
|
|
3185
|
+
* turn anyway. The entry is restored afterwards rather than deleted, so a cancel between chained
|
|
3186
|
+
* resumes still finds the run instead of answering "nothing is running".
|
|
3187
|
+
*/
|
|
3188
|
+
const inherited = this.activeRuns.get(taskId);
|
|
3189
|
+
this.activeRuns.set(taskId, {
|
|
3190
|
+
taskId,
|
|
3191
|
+
startedAt: inherited?.startedAt ?? new Date().toISOString(),
|
|
3192
|
+
abortController: inherited?.abortController ?? new AbortController(),
|
|
3193
|
+
mode: input.mode ?? inherited?.mode ?? CodingRunConcurrency.SINGLE_FLIGHT,
|
|
3194
|
+
});
|
|
3195
|
+
// The resumed turn is coding work in its own right, registered or not around it: it holds the beat.
|
|
3196
|
+
this.adjustCodingWorkDepth(taskId, 1);
|
|
3197
|
+
this.openCodingRunWindow(taskId, task.taskRef);
|
|
3198
|
+
let admitted = false;
|
|
3199
|
+
let cancelledAfterAdmission = false;
|
|
3200
|
+
let refusal;
|
|
3201
|
+
try {
|
|
3202
|
+
// A cancel already made opens no trace for a turn that will not run (#1581, eighth review R8-6).
|
|
3203
|
+
if (this.isRunCancelled(taskId))
|
|
3204
|
+
return { outcome: ParkedRunResumeOutcome.CANCELLED };
|
|
3205
|
+
const trace = await this.openCodingRunTrace(taskId, task.taskRef);
|
|
3206
|
+
/*
|
|
3207
|
+
* The cancel check before a turn starts, for both answerers (#1581, seventh review F3): after the
|
|
3208
|
+
* last thing this chain awaits before the driver's resume. A cancel found here starts no turn and
|
|
3209
|
+
* spends nothing, and the chain that owns the run withdraws the park. One landing later — inside
|
|
3210
|
+
* the driver's own read-and-take — is caught by the executor, which hands the question back.
|
|
3211
|
+
*/
|
|
3212
|
+
if (this.isRunCancelled(taskId)) {
|
|
3213
|
+
await this.recordCancelledBeforeTurn(trace, task.taskRef, taskId);
|
|
3214
|
+
return { outcome: ParkedRunResumeOutcome.CANCELLED };
|
|
3215
|
+
}
|
|
3216
|
+
await this.superviseCodingRun(task.taskRef, taskId, trace, async (capture) => {
|
|
3217
|
+
try {
|
|
3218
|
+
return await this.actorsSystem.resumeActorExecution(input.executionId, async (opened, resumed) => {
|
|
3219
|
+
admitted = true;
|
|
3220
|
+
/*
|
|
3221
|
+
* A cancel landing inside the driver's own read-and-take (#1581, eighth review R8-7): the rows
|
|
3222
|
+
* are PROCESSING already, so the SAME question is handed back — its decision and resume
|
|
3223
|
+
* inputs, the task's output left as it was, under a new suspension reference as every
|
|
3224
|
+
* suspension gets — and the chain withdraws the park CANCELLED on its way out, like any
|
|
3225
|
+
* cancelled park. No answer recorded, no turn started, no attempt spent.
|
|
3226
|
+
*/
|
|
3227
|
+
if (this.isRunCancelled(taskId)) {
|
|
3228
|
+
cancelledAfterAdmission = true;
|
|
3229
|
+
return capture({
|
|
3230
|
+
kind: CodingRunEnding.PARKED,
|
|
3231
|
+
suspension: { decision: resumed.suspension.decision, checkpointContext: checkpoint },
|
|
3232
|
+
output: undefined,
|
|
3233
|
+
afterSettle: () => this.recordCancelledBeforeTurn(trace, task.taskRef, taskId),
|
|
3234
|
+
});
|
|
3235
|
+
}
|
|
3236
|
+
// Admitted HERE, once the engine has moved the rows back to PROCESSING: a resume the
|
|
3237
|
+
// driver refuses (somebody answered first) rejects the admission instead of claiming it.
|
|
3238
|
+
input.onAdmitted?.({
|
|
3239
|
+
taskId,
|
|
3240
|
+
status: FlowsActors_Status.PROCESSING,
|
|
3241
|
+
taskRef: task.taskRef,
|
|
3242
|
+
baselineHeadSha: baseline.headSha,
|
|
3243
|
+
baselineDirtyFileCount: Object.keys(baseline.files).length,
|
|
3244
|
+
});
|
|
3245
|
+
// Started again, announced only NOW that the engine has moved its rows back to PROCESSING:
|
|
3246
|
+
// a read that re-derived before that would still see the run as parked.
|
|
3247
|
+
this.announceRunStateChanged();
|
|
3248
|
+
/*
|
|
3249
|
+
* The answer is a DECISION the change set will rest on: recorded beside the build plan
|
|
3250
|
+
* before the turn, so a turn that then fails still leaves the decision where a reviewer
|
|
3251
|
+
* reads (#1454, Step 6) — and only once the driver ADMITTED the resume, so an answer that
|
|
3252
|
+
* resumed nothing is never recorded as one that did (#1581, seventh review F5).
|
|
3253
|
+
*/
|
|
3254
|
+
await this.recordCodingQuestionAnswer(task.taskRef, checkpoint.suspension.question, input.answer, input.answerSource);
|
|
3255
|
+
return capture(await this.executeApplicationCodingTask(task, renderApplicationCodingTaskAgentPrompt(task), input.verificationPlans, opened, baseline, trace, { continuationOfSessionId: checkpoint.suspension.sessionId, answerPrompt: input.answer }));
|
|
3256
|
+
}, trace.runSession, {
|
|
3257
|
+
...this.codingRunOptions,
|
|
3258
|
+
expectedSuspensionRef: input.suspensionRef,
|
|
3259
|
+
/*
|
|
3260
|
+
* The answer, so the status change that ends the wait records its outcome (#1751), whoever
|
|
3261
|
+
* answered — the person, or the answering agent (#1559). A coding park is deliberately NOT
|
|
3262
|
+
* routed (see where it parks), so `actor` only feeds the record.
|
|
3263
|
+
*/
|
|
3264
|
+
decision: {
|
|
3265
|
+
...(input.actingUserId ? { actor: humanDecisionSettler(input.actingUserId) } : {}),
|
|
3266
|
+
answer: {
|
|
3267
|
+
decisionId: taskId,
|
|
3268
|
+
optionRef: Workbench_ParkedCodingQuestionOptionRef.ANSWER,
|
|
3269
|
+
values: [{ ref: WORKBENCH_PARKED_CODING_QUESTION_FIELD_REF, value: input.answer }],
|
|
3270
|
+
},
|
|
3271
|
+
},
|
|
3272
|
+
});
|
|
3273
|
+
}
|
|
3274
|
+
catch (error) {
|
|
3275
|
+
if (!admitted)
|
|
3276
|
+
refusal = error;
|
|
3277
|
+
throw error;
|
|
3278
|
+
}
|
|
3279
|
+
});
|
|
3280
|
+
if (cancelledAfterAdmission)
|
|
3281
|
+
return { outcome: ParkedRunResumeOutcome.CANCELLED };
|
|
3282
|
+
if (admitted)
|
|
3283
|
+
return { outcome: ParkedRunResumeOutcome.RAN };
|
|
3284
|
+
// The trace opened for this resume holds no turn: it says why (#1581, tenth review R10-2).
|
|
3285
|
+
await this.recordResumeRefused(trace, task.taskRef, taskId, refusal);
|
|
3286
|
+
return { outcome: ParkedRunResumeOutcome.REFUSED, refusal };
|
|
3287
|
+
}
|
|
3288
|
+
finally {
|
|
3289
|
+
this.endCodingRunWindow(taskId);
|
|
3290
|
+
if (inherited)
|
|
3291
|
+
this.activeRuns.set(taskId, inherited);
|
|
3292
|
+
else
|
|
3293
|
+
this.activeRuns.delete(taskId);
|
|
3294
|
+
this.adjustCodingWorkDepth(taskId, -1);
|
|
3295
|
+
// NOT announced here: this runs inside a chain its CALLER settles (`resumeBody`, or a fresh run
|
|
3296
|
+
// answering its parked questions), and that caller announces once the whole chain has settled.
|
|
3297
|
+
}
|
|
3298
|
+
}
|
|
3299
|
+
/**
|
|
3300
|
+
* Offer a run's parked question to the ANSWERING AGENT before it reaches the creator (#1559), and
|
|
3301
|
+
* keep doing so while the run parks again on a question the agent can answer.
|
|
3302
|
+
*
|
|
3303
|
+
* Runs inside the worktree hold of the run that parked, BEFORE that run's settlement resolves: the
|
|
3304
|
+
* build loop waits on the settlement, so it sees the chain's final outcome, and it cannot take the
|
|
3305
|
+
* worktree between the park and the answer — a race that would send answerable questions to a person
|
|
3306
|
+
* for no reason.
|
|
3307
|
+
*
|
|
3308
|
+
* Bounded three ways, all in `decideAgentAnswerAttempt`: the posture (GUIDED keeps every question with
|
|
3309
|
+
* the person), one verdict per question, and {@link MAXIMUM_AGENT_ANSWERS_PER_RUN} answers per run.
|
|
3310
|
+
* Every verdict is written to the run's task memory BEFORE anything acts on it, so a wrong
|
|
3311
|
+
* self-answer can be audited and a restart cannot ask the same question twice — except a verdict the
|
|
3312
|
+
* agent reaches after an operator cancelled the run, which is dropped: it would record an answer
|
|
3313
|
+
* nothing applied.
|
|
3314
|
+
*
|
|
3315
|
+
* Never fails the run. A refusal, a failed model call, an unparseable answer or a resume the driver
|
|
3316
|
+
* refused leaves the park as it was, and the question reaches the creator. A CANCEL is the one
|
|
3317
|
+
* exception, and it is not handled here: whichever way this returns, the chain that owns the run
|
|
3318
|
+
* withdraws a cancelled park when it ends ({@link withdrawCancelledRunChain}).
|
|
3319
|
+
*/
|
|
3320
|
+
async answerParkedQuestionsHoldingLock(taskId, sessionContext) {
|
|
3321
|
+
try {
|
|
3322
|
+
for (;;) {
|
|
3323
|
+
// A cancel stops the handling at once: no model call is spent on a run that is ending (#1581).
|
|
3324
|
+
if (this.isRunCancelled(taskId))
|
|
3325
|
+
return;
|
|
3326
|
+
const parked = await this.readParkedCodingRun(taskId, sessionContext);
|
|
3327
|
+
if (!parked || !parked.checkpoint.suspension.resumable)
|
|
3328
|
+
return;
|
|
3329
|
+
const row = await this.executionsService.getActorTask(taskId, sessionContext);
|
|
3330
|
+
const question = parked.checkpoint.suspension.question;
|
|
3331
|
+
const decision = decideAgentAnswerAttempt({
|
|
3332
|
+
posture: APPLICATION_CREATION_AUTONOMY_POSTURE,
|
|
3333
|
+
question,
|
|
3334
|
+
priorRecords: readParkedQuestionAnswers(row.memory),
|
|
3335
|
+
});
|
|
3336
|
+
if (decision !== AgentAnswerAttemptDecision.ATTEMPT) {
|
|
3337
|
+
this.logDebug('Parked question left for the creator', { taskId, decision });
|
|
3338
|
+
return;
|
|
3339
|
+
}
|
|
3340
|
+
const task = parked.checkpoint.contract;
|
|
3341
|
+
const agentOutputTail = String(row.output?.agentOutputTail ?? '');
|
|
3342
|
+
const output = await this.askAnsweringAgent({ brief: renderApplicationCodingTaskAgentPrompt(task), question, agentOutputTail });
|
|
3343
|
+
if (!output)
|
|
3344
|
+
return;
|
|
3345
|
+
// Cancelled while the agent decided: its verdict is NOT recorded — it would describe an answer never applied.
|
|
3346
|
+
if (this.isRunCancelled(taskId))
|
|
3347
|
+
return;
|
|
3348
|
+
const answer = output.verdict === ParkedQuestionAnswerVerdict.ANSWERED ? output.answer.trim() : '';
|
|
3349
|
+
const record = {
|
|
3350
|
+
// An `answered` with no answer is not an answer; the creator is asked.
|
|
3351
|
+
verdict: answer.length > 0 ? ParkedQuestionAnswerVerdict.ANSWERED : ParkedQuestionAnswerVerdict.PRODUCT_DECISION,
|
|
3352
|
+
question,
|
|
3353
|
+
answer,
|
|
3354
|
+
basis: output.basis.trim(),
|
|
3355
|
+
decidedAt: new Date().toISOString(),
|
|
3356
|
+
};
|
|
3357
|
+
await this.executionsService.updateActorTask(taskId, { memory: withParkedQuestionAnswer(row.memory, record) }, sessionContext);
|
|
3358
|
+
this.logger.info('The answering agent returned a verdict on a parked coding question', {
|
|
3359
|
+
taskId, taskRef: task.taskRef, verdict: record.verdict,
|
|
3360
|
+
});
|
|
3361
|
+
if (record.verdict !== ParkedQuestionAnswerVerdict.ANSWERED)
|
|
3362
|
+
return;
|
|
3363
|
+
const resumed = await this.resumeParkedRunHoldingLock({
|
|
3364
|
+
taskId,
|
|
3365
|
+
executionId: parked.executionId,
|
|
3366
|
+
suspensionRef: parked.suspensionRef,
|
|
3367
|
+
checkpoint: parked.checkpoint,
|
|
3368
|
+
answer,
|
|
3369
|
+
answerSource: { answeredBy: CodingQuestionAnswerer.ANSWERING_AGENT, basis: record.basis },
|
|
3370
|
+
verificationPlans: resolveApplicationCodingTaskVerificationPlans(task.verificationIntent.requiredChecks),
|
|
3371
|
+
sessionContext,
|
|
3372
|
+
mode: parked.mode,
|
|
3373
|
+
});
|
|
3374
|
+
// Only a resume that RAN can have parked again on a question worth offering.
|
|
3375
|
+
if (resumed.outcome !== ParkedRunResumeOutcome.RAN)
|
|
3376
|
+
return;
|
|
3377
|
+
}
|
|
3378
|
+
}
|
|
3379
|
+
catch (error) {
|
|
3380
|
+
this.logger.warn('The answering agent could not handle a parked coding question; it goes to the creator unless the run was cancelled', {
|
|
3381
|
+
taskId,
|
|
3382
|
+
error: describeCaughtError(error),
|
|
3383
|
+
});
|
|
3384
|
+
}
|
|
3385
|
+
}
|
|
3386
|
+
/** Whether an operator cancelled the run this process is handling for `taskId`. */
|
|
3387
|
+
isRunCancelled(taskId) {
|
|
3388
|
+
return this.activeRuns.get(taskId)?.abortController.signal.aborted === true;
|
|
3389
|
+
}
|
|
3390
|
+
/**
|
|
3391
|
+
* End a run an operator cancelled while its chain was handling it (#1581, sixth to tenth reviews): a run
|
|
3392
|
+
* PARKED at this point is withdrawn, `CANCELLED`, "the person chose not to continue". Called from each
|
|
3393
|
+
* chain's ONE exit path, and only when the chain was cancelled, so no way of leaving the question handling
|
|
3394
|
+
* (a refusal, a failed or unparseable model call, a resume the driver refused) leaves a cancelled run
|
|
3395
|
+
* parked. The withdraw is recorded on the entry, which stays registered until the caller deletes it, so a
|
|
3396
|
+
* person's answer is refused until it is done and a second cancel answers with its outcome. A
|
|
3397
|
+
* `CANCELLED` run is no attempt of the task's.
|
|
3398
|
+
*/
|
|
3399
|
+
withdrawCancelledRunChain(taskId, sessionContext) {
|
|
3400
|
+
const entry = this.activeRuns.get(taskId);
|
|
3401
|
+
const withdrawal = this.endParkIfWaiting(taskId, sessionContext, entry ? this.cancellersByController.get(entry.abortController) : undefined);
|
|
3402
|
+
if (entry)
|
|
3403
|
+
entry.withdrawal = withdrawal;
|
|
3404
|
+
return withdrawal;
|
|
3405
|
+
}
|
|
3406
|
+
/**
|
|
3407
|
+
* Withdraw the task's park if one is waiting — `CANCELLED` — and say what became of it. Reads STRICTLY,
|
|
3408
|
+
* so a store that cannot be read is reported as UNCONFIRMED rather than as "nothing was waiting"
|
|
3409
|
+
* (#1581, tenth review R10-1). Never throws: its callers run in a `finally` or answer a person.
|
|
3410
|
+
*/
|
|
3411
|
+
async endParkIfWaiting(taskId, sessionContext,
|
|
3412
|
+
/** Who withdrew it (#1751), when a signed-in person did: recorded as the decider of the withdrawn question. */
|
|
3413
|
+
withdrawnByUserId) {
|
|
3414
|
+
try {
|
|
3415
|
+
const parked = await this.readParkedCodingRun(taskId, sessionContext, { strict: true });
|
|
3416
|
+
if (!parked)
|
|
3417
|
+
return CancelledParkOutcome.ENDED;
|
|
3418
|
+
await this.actorsSystem.cancelSuspendedActorExecution(parked.executionId, sessionContext, withdrawnByUserId ? { decision: { actor: humanDecisionSettler(withdrawnByUserId) } } : undefined);
|
|
3419
|
+
this.logDebug('A cancelled coding run was withdrawn from its park', { taskId, executionId: parked.executionId });
|
|
3420
|
+
return CancelledParkOutcome.ENDED;
|
|
3421
|
+
}
|
|
3422
|
+
catch (error) {
|
|
3423
|
+
this.logger.warn('A cancelled coding run could not be withdrawn from its park', { taskId, error: describeCaughtError(error) });
|
|
3424
|
+
try {
|
|
3425
|
+
// Refused because it is no longer waiting (withdrawn meanwhile) ends it as surely as withdrawing it.
|
|
3426
|
+
return (await this.readParkedCodingRun(taskId, sessionContext, { strict: true })) ? CancelledParkOutcome.STILL_WAITING : CancelledParkOutcome.ENDED;
|
|
3427
|
+
}
|
|
3428
|
+
catch {
|
|
3429
|
+
return CancelledParkOutcome.UNCONFIRMED;
|
|
3430
|
+
}
|
|
3431
|
+
}
|
|
3432
|
+
}
|
|
3433
|
+
/** ONE structured call to the answering agent; `null` when it produced nothing usable, which leaves the question with the creator. */
|
|
3434
|
+
async askAnsweringAgent(input) {
|
|
3435
|
+
const invocation = {
|
|
3436
|
+
agentRef: PARKED_QUESTION_ANSWERER_AGENT_REF,
|
|
3437
|
+
initiator: {},
|
|
3438
|
+
invocationContext: [],
|
|
3439
|
+
input: { prompt: renderParkedQuestionAnswerPrompt(input), schema: ParkedQuestionAnswerOutputSchema },
|
|
3440
|
+
output: { object: {} },
|
|
3441
|
+
executionContext: {},
|
|
3442
|
+
artifactBindings: [],
|
|
3443
|
+
};
|
|
3444
|
+
const response = await this.agentsService.invokeAgent(invocation);
|
|
3445
|
+
const parsed = ParkedQuestionAnswerOutputSchema.safeParse(response.output?.object);
|
|
3446
|
+
return parsed.success ? parsed.data : null;
|
|
3447
|
+
}
|
|
1204
3448
|
buildApplicationCodingTaskTraceSummary(task) {
|
|
1205
3449
|
return {
|
|
1206
3450
|
taskRef: task.taskRef,
|
|
@@ -1335,13 +3579,13 @@ let CodingAgentDispatchCompanionService = class CodingAgentDispatchCompanionServ
|
|
|
1335
3579
|
* This one has THREE outcomes, and collapsing any of them into "failed" would fail runs
|
|
1336
3580
|
* on a question nobody asked:
|
|
1337
3581
|
*
|
|
1338
|
-
* 1. **No committed lockfile** —
|
|
1339
|
-
*
|
|
1340
|
-
*
|
|
1341
|
-
* a
|
|
1342
|
-
*
|
|
1343
|
-
*
|
|
1344
|
-
*
|
|
3582
|
+
* 1. **No committed lockfile** — answered here, from the application's DECLARED store
|
|
3583
|
+
* (`ApplicationSchemaPlanObligation`, #1144), because `wildo db diff --check` exits
|
|
3584
|
+
* non-zero for every application without one. A MongoDB application is permanently in
|
|
3585
|
+
* this state (a collection exists on first write; there is no plan to drift from): a
|
|
3586
|
+
* pass that says it checked nothing. A PostgreSQL application in it has had no
|
|
3587
|
+
* migration create its tables and cannot boot: a FAILED check naming the initial
|
|
3588
|
+
* `wildo db generate`. A store that cannot be read is "we could not ask": it THROWS.
|
|
1345
3589
|
* 2. **No `backend-api/dist`** — the model is computed by IMPORTING the compiled
|
|
1346
3590
|
* modules registry, and the build lane only ever runs `tsc --noEmit`, which emits
|
|
1347
3591
|
* nothing. This is "we could not ask", not "the application has drifted", so it
|
|
@@ -1363,19 +3607,39 @@ let CodingAgentDispatchCompanionService = class CodingAgentDispatchCompanionServ
|
|
|
1363
3607
|
*/
|
|
1364
3608
|
async runSchemaPlanDriftVerification() {
|
|
1365
3609
|
const saasRoot = this.companionContext.saasRoot;
|
|
1366
|
-
const
|
|
1367
|
-
if (
|
|
3610
|
+
const assessment = await assessApplicationSchemaPlanObligation(saasRoot);
|
|
3611
|
+
if (assessment.obligation === ApplicationSchemaPlanObligation.NOT_OWED) {
|
|
1368
3612
|
return {
|
|
1369
3613
|
kind: VerificationKind.SCHEMA_PLAN_DRIFT,
|
|
1370
3614
|
path: null,
|
|
1371
3615
|
success: true,
|
|
1372
3616
|
// Says it checked NOTHING rather than reporting a clean plan — the same honesty the
|
|
1373
3617
|
// settings-placement sweep applies to an application with no authored rail.
|
|
1374
|
-
message:
|
|
3618
|
+
message: `no schema-plan lockfile, and ${assessment.declaredIn} does not declare PostgreSQL — this application has not adopted migrations, so there is no accepted plan to drift from (every MongoDB application is in this state permanently)`,
|
|
3619
|
+
stdoutTail: '',
|
|
3620
|
+
stderrTail: '',
|
|
3621
|
+
};
|
|
3622
|
+
}
|
|
3623
|
+
if (assessment.obligation === ApplicationSchemaPlanObligation.BASELINE_OWED) {
|
|
3624
|
+
/*
|
|
3625
|
+
* A FAILED check, not a pass (#1144). Until then no lockfile read as "not adopted" whatever the store,
|
|
3626
|
+
* so a PostgreSQL application whose initial migration was never generated verified green here — the
|
|
3627
|
+
* one check in the catalog that can see a missing table, answering for the one application that has
|
|
3628
|
+
* none of them.
|
|
3629
|
+
*/
|
|
3630
|
+
return {
|
|
3631
|
+
kind: VerificationKind.SCHEMA_PLAN_DRIFT,
|
|
3632
|
+
path: null,
|
|
3633
|
+
success: false,
|
|
3634
|
+
message: `no schema-plan baseline, but ${assessment.declaredIn} declares PostgreSQL — no migration has created this application's tables, so its backend cannot boot. Generate the initial migration with \`wildo db generate --name initial-schema\` (it writes the baseline in the same invocation) and commit both.`,
|
|
1375
3635
|
stdoutTail: '',
|
|
1376
3636
|
stderrTail: '',
|
|
1377
3637
|
};
|
|
1378
3638
|
}
|
|
3639
|
+
if (assessment.obligation === ApplicationSchemaPlanObligation.UNDETERMINED) {
|
|
3640
|
+
// Infrastructure, not drift: nothing about the model was asked.
|
|
3641
|
+
throw new Error(`Cannot check schema-plan drift: there is no schema-plan lockfile and ${assessment.reason}.`);
|
|
3642
|
+
}
|
|
1379
3643
|
const modulesRegistryPath = join(saasRoot, 'backend-api', 'dist', 'modules-registry.backend.js');
|
|
1380
3644
|
if (!existsSync(modulesRegistryPath)) {
|
|
1381
3645
|
// THROWN on purpose: `executeVerificationPlans` classifies a throw as an infrastructure
|
|
@@ -1398,6 +3662,25 @@ let CodingAgentDispatchCompanionService = class CodingAgentDispatchCompanionServ
|
|
|
1398
3662
|
// "wildo is not on PATH" is an absent tool, never a drifted schema.
|
|
1399
3663
|
throw new Error(`Cannot check schema-plan drift: the \`wildo\` CLI could not be executed (${outcome.message}).`);
|
|
1400
3664
|
}
|
|
3665
|
+
/*
|
|
3666
|
+
* COULD NOT ASK is not DRIFT, and `wildo db diff --check` cannot tell them apart by exit code —
|
|
3667
|
+
* it answers `{ success: false }` for both (`diff.command.ts`), so the message is the only
|
|
3668
|
+
* discriminator, exactly as it already is for the ENOENT case above.
|
|
3669
|
+
*
|
|
3670
|
+
* `computeCurrentLockfileJson` refuses before planning whenever the compiled model is STALE —
|
|
3671
|
+
* "shared-lib/dist is older than its sources … This is NOT drift: wait for the watcher to
|
|
3672
|
+
* rebuild" — or when `backend-api/dist` is absent. Reported as a failing check, both read as
|
|
3673
|
+
* "this application has drifted", which is a claim about a model that was never computed. On a
|
|
3674
|
+
* per-task check that matters twice over: the check runs seconds after an agent wrote the very
|
|
3675
|
+
* sources the watcher is still compiling, so the race is the COMMON case rather than the edge.
|
|
3676
|
+
*
|
|
3677
|
+
* Thrown, like every other infrastructure absence here, so `executeVerificationPlans` reports it
|
|
3678
|
+
* apart from a failing check and a BASELINE pass cannot read it as "already broken".
|
|
3679
|
+
*/
|
|
3680
|
+
if (!outcome.success && /Cannot compute the current schema plan/i.test(`${outcome.stdoutTail}\n${outcome.stderrTail}`)) {
|
|
3681
|
+
throw new Error('Cannot check schema-plan drift: the CLI refused to compute the current plan, so nothing about the model was '
|
|
3682
|
+
+ `asked. This is NOT drift. ${outcome.stderrTail.trim() || outcome.stdoutTail.trim()}`);
|
|
3683
|
+
}
|
|
1401
3684
|
return outcome;
|
|
1402
3685
|
}
|
|
1403
3686
|
/**
|
|
@@ -1415,6 +3698,7 @@ let CodingAgentDispatchCompanionService = class CodingAgentDispatchCompanionServ
|
|
|
1415
3698
|
*/
|
|
1416
3699
|
async executeVerificationPlans(plans) {
|
|
1417
3700
|
const verification = [];
|
|
3701
|
+
const unrunCheckRefs = [];
|
|
1418
3702
|
let infrastructureError = null;
|
|
1419
3703
|
for (const plan of plans) {
|
|
1420
3704
|
try {
|
|
@@ -1429,11 +3713,16 @@ let CodingAgentDispatchCompanionService = class CodingAgentDispatchCompanionServ
|
|
|
1429
3713
|
? await this.runSettingsPlacementContentVerification()
|
|
1430
3714
|
: plan.kind === VerificationKind.SCHEMA_PLAN_DRIFT
|
|
1431
3715
|
? await this.runSchemaPlanDriftVerification()
|
|
1432
|
-
:
|
|
3716
|
+
: this.absentWorkspacePackageOutcome(plan)
|
|
3717
|
+
?? await this.runVerification(this.buildVerificationPlan(plan.kind, plan.path ?? undefined)),
|
|
1433
3718
|
});
|
|
1434
3719
|
}
|
|
1435
3720
|
catch (error) {
|
|
1436
3721
|
infrastructureError ??= error;
|
|
3722
|
+
unrunCheckRefs.push(plan.checkRef);
|
|
3723
|
+
// A check that threw out of a subprocess still carries what that subprocess printed; keep it, or
|
|
3724
|
+
// the record says only "Bounded subprocess failed" while the cause is in hand.
|
|
3725
|
+
const details = error?.details;
|
|
1437
3726
|
verification.push({
|
|
1438
3727
|
checkRef: plan.checkRef,
|
|
1439
3728
|
outcome: {
|
|
@@ -1441,13 +3730,13 @@ let CodingAgentDispatchCompanionService = class CodingAgentDispatchCompanionServ
|
|
|
1441
3730
|
path: plan.path,
|
|
1442
3731
|
success: false,
|
|
1443
3732
|
message: describeCaughtError(error),
|
|
1444
|
-
stdoutTail: '',
|
|
1445
|
-
stderrTail: '',
|
|
3733
|
+
stdoutTail: (details?.stdout ?? '').slice(-OUTPUT_TAIL_CHARS),
|
|
3734
|
+
stderrTail: (details?.stderr ?? '').slice(-OUTPUT_TAIL_CHARS),
|
|
1446
3735
|
},
|
|
1447
3736
|
});
|
|
1448
3737
|
}
|
|
1449
3738
|
}
|
|
1450
|
-
return { verification, infrastructureError };
|
|
3739
|
+
return { verification, infrastructureError, unrunCheckRefs };
|
|
1451
3740
|
}
|
|
1452
3741
|
/**
|
|
1453
3742
|
* Run named verification checks against the application, outside any agent dispatch.
|
|
@@ -1463,6 +3752,33 @@ let CodingAgentDispatchCompanionService = class CodingAgentDispatchCompanionServ
|
|
|
1463
3752
|
async runApplicationVerificationChecks(checkRefs) {
|
|
1464
3753
|
return this.executeVerificationPlans(resolveApplicationCodingTaskVerificationPlans(checkRefs));
|
|
1465
3754
|
}
|
|
3755
|
+
/**
|
|
3756
|
+
* A typecheck of a workspace package the application does not have answers "nothing to check" (#1540).
|
|
3757
|
+
*
|
|
3758
|
+
* Required checks are derived from the paths a task may write, so a provider binding that may write
|
|
3759
|
+
* `website/src/provider-contributions.ts` owes the website typecheck, in every application, including
|
|
3760
|
+
* one with no website. Running `tsc` in a directory that is not a package would fail the task over a
|
|
3761
|
+
* package that does not exist. The honest answer is the one the settings sweep gives when no rail is
|
|
3762
|
+
* authored: checked, and nothing was there to check. That is stated in the outcome, never a silent pass.
|
|
3763
|
+
*
|
|
3764
|
+
* A package is its `package.json`. A directory holding one stray file, with no manifest, is not a
|
|
3765
|
+
* package that any typecheck could run in.
|
|
3766
|
+
*/
|
|
3767
|
+
absentWorkspacePackageOutcome(plan) {
|
|
3768
|
+
if (plan.kind !== VerificationKind.TYPECHECK || plan.path === null)
|
|
3769
|
+
return undefined;
|
|
3770
|
+
const packageDirectory = this.sanitizeRelativePath(plan.path);
|
|
3771
|
+
if (existsSync(join(this.companionContext.saasRoot, packageDirectory, 'package.json')))
|
|
3772
|
+
return undefined;
|
|
3773
|
+
return {
|
|
3774
|
+
kind: plan.kind,
|
|
3775
|
+
path: plan.path,
|
|
3776
|
+
success: true,
|
|
3777
|
+
message: `no ${packageDirectory} package in this application — nothing to typecheck`,
|
|
3778
|
+
stdoutTail: '',
|
|
3779
|
+
stderrTail: '',
|
|
3780
|
+
};
|
|
3781
|
+
}
|
|
1466
3782
|
async runVerification(plan) {
|
|
1467
3783
|
try {
|
|
1468
3784
|
const result = await executeBoundedSubprocess({
|
|
@@ -1503,7 +3819,13 @@ let CodingAgentDispatchCompanionService = class CodingAgentDispatchCompanionServ
|
|
|
1503
3819
|
* and a future admission check gets the same classification by being placed
|
|
1504
3820
|
* here rather than by remembering to.
|
|
1505
3821
|
*/
|
|
1506
|
-
|
|
3822
|
+
/**
|
|
3823
|
+
* `refusesTaskContract` marks the refusal as the task's OWN (#1581): set only by admission's two checks
|
|
3824
|
+
* of the task contract, so a dispatcher counts it as the task's attempt rather than the host's refusal.
|
|
3825
|
+
* The resume path's checks (an empty answer, a check the host no longer registers) are not the task
|
|
3826
|
+
* being dispatched and carry no mark.
|
|
3827
|
+
*/
|
|
3828
|
+
admitTypedInput(validate, message, options = {}) {
|
|
1507
3829
|
try {
|
|
1508
3830
|
return validate();
|
|
1509
3831
|
}
|
|
@@ -1513,6 +3835,8 @@ let CodingAgentDispatchCompanionService = class CodingAgentDispatchCompanionServ
|
|
|
1513
3835
|
context: {
|
|
1514
3836
|
message,
|
|
1515
3837
|
validationError: describeCaughtError(error),
|
|
3838
|
+
// The task's own contract was refused: a dispatcher counts this as its attempt (#1581).
|
|
3839
|
+
...(options.refusesTaskContract === true ? { [APPLICATION_CODING_CONTRACT_REFUSAL_MARKER]: true } : {}),
|
|
1516
3840
|
},
|
|
1517
3841
|
});
|
|
1518
3842
|
}
|
|
@@ -1675,12 +3999,21 @@ CodingAgentDispatchCompanionService = __decorate([
|
|
|
1675
3999
|
__param(5, inject(COMPANION_SERVICE_TYPES.ExecutionsService)),
|
|
1676
4000
|
__param(6, inject(COMPANION_SERVICE_TYPES.TraceabilityService)),
|
|
1677
4001
|
__param(7, inject(COMPANION_SERVICE_TYPES.IntrospectionService)),
|
|
4002
|
+
__param(8, inject(SAAS_SERVICE_TYPES.ActorsSystemBackendService)),
|
|
4003
|
+
__param(9, inject(COMPANION_SERVICE_TYPES.CodingRunWriteRegisterService)),
|
|
4004
|
+
__param(10, inject(COMPANION_SERVICE_TYPES.AcceptedChangeCommitService)),
|
|
4005
|
+
__param(11, inject(SAAS_SERVICE_TYPES.WorkerShutdownManagerService)),
|
|
4006
|
+
__param(11, optional()),
|
|
1678
4007
|
__metadata("design:paramtypes", [LoggerService,
|
|
1679
4008
|
ErrorBuilderBackendService, Object, AgentsBackendService,
|
|
1680
4009
|
GitChangeSetCompanionService,
|
|
1681
4010
|
CompanionExecutionsCompanionService,
|
|
1682
4011
|
CompanionTraceabilityService,
|
|
1683
|
-
CompanionIntrospectionService
|
|
4012
|
+
CompanionIntrospectionService,
|
|
4013
|
+
ActorsSystemBackendService,
|
|
4014
|
+
CodingRunWriteRegisterCompanionService,
|
|
4015
|
+
AcceptedChangeCommitCompanionService,
|
|
4016
|
+
WorkerShutdownManagerBackendService])
|
|
1684
4017
|
], CodingAgentDispatchCompanionService);
|
|
1685
4018
|
export { CodingAgentDispatchCompanionService };
|
|
1686
4019
|
/**
|