@wildo-ai/dev-companion 1.1.13 → 1.1.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/esm/.tsbuildinfo +1 -1
- package/dist/esm/claude-cli/models/coding-agent-dispatch.models.d.ts +89 -1
- 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 +114 -9
- package/dist/esm/claude-cli/models/coding-agent-dispatch.models.js.map +1 -1
- package/dist/esm/claude-cli/models/concurrent-coding-runs.models.d.ts +46 -1
- package/dist/esm/claude-cli/models/concurrent-coding-runs.models.d.ts.map +1 -1
- package/dist/esm/claude-cli/models/concurrent-coding-runs.models.js +39 -2
- package/dist/esm/claude-cli/models/concurrent-coding-runs.models.js.map +1 -1
- package/dist/esm/claude-cli/models/shared-tree-reconciliation.models.d.ts +6 -0
- package/dist/esm/claude-cli/models/shared-tree-reconciliation.models.d.ts.map +1 -1
- package/dist/esm/claude-cli/models/shared-tree-reconciliation.models.js.map +1 -1
- package/dist/esm/claude-cli/models/verification-tool-availability.models.d.ts +19 -5
- package/dist/esm/claude-cli/models/verification-tool-availability.models.d.ts.map +1 -1
- package/dist/esm/claude-cli/models/verification-tool-availability.models.js +17 -5
- package/dist/esm/claude-cli/models/verification-tool-availability.models.js.map +1 -1
- package/dist/esm/claude-cli/services/accepted-change-commit.companion.service.d.ts +16 -1
- package/dist/esm/claude-cli/services/accepted-change-commit.companion.service.d.ts.map +1 -1
- package/dist/esm/claude-cli/services/accepted-change-commit.companion.service.js +53 -6
- package/dist/esm/claude-cli/services/accepted-change-commit.companion.service.js.map +1 -1
- package/dist/esm/claude-cli/services/coding-agent-dispatch.companion.service.d.ts +145 -6
- package/dist/esm/claude-cli/services/coding-agent-dispatch.companion.service.d.ts.map +1 -1
- package/dist/esm/claude-cli/services/coding-agent-dispatch.companion.service.js +474 -47
- package/dist/esm/claude-cli/services/coding-agent-dispatch.companion.service.js.map +1 -1
- package/dist/esm/claude-cli/services/git-change-set.companion.service.d.ts +6 -2
- 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 +16 -39
- package/dist/esm/claude-cli/services/git-change-set.companion.service.js.map +1 -1
- package/dist/esm/claude-cli/services/research-evidence-store.companion.d.ts +14 -0
- 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 +35 -0
- package/dist/esm/claude-cli/services/research-evidence-store.companion.js.map +1 -1
- package/dist/esm/claude-cli/services/unrecorded-provider-directories.companion.d.ts +36 -0
- package/dist/esm/claude-cli/services/unrecorded-provider-directories.companion.d.ts.map +1 -0
- package/dist/esm/claude-cli/services/unrecorded-provider-directories.companion.js +134 -0
- package/dist/esm/claude-cli/services/unrecorded-provider-directories.companion.js.map +1 -0
- package/dist/esm/code-compliance-check/check-raw-feature-id-literals.companion.js +31 -2
- 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 +2 -0
- package/dist/esm/companion-api/companion-api.schemas.d.ts.map +1 -1
- package/dist/esm/companion-api/companion-api.schemas.js +8 -0
- package/dist/esm/companion-api/companion-api.schemas.js.map +1 -1
- package/dist/esm/companion-api/controllers/companion.controller.d.ts +7 -0
- package/dist/esm/companion-api/controllers/companion.controller.d.ts.map +1 -1
- package/dist/esm/companion-api/controllers/companion.controller.js +26 -12
- package/dist/esm/companion-api/controllers/companion.controller.js.map +1 -1
- package/dist/esm/companion-api/controllers/long-held-request.companion.d.ts +17 -0
- package/dist/esm/companion-api/controllers/long-held-request.companion.d.ts.map +1 -0
- package/dist/esm/companion-api/controllers/long-held-request.companion.js +33 -0
- package/dist/esm/companion-api/controllers/long-held-request.companion.js.map +1 -0
- package/dist/esm/core/introspection/resources/creation-home-projection.companion.d.ts +9 -0
- package/dist/esm/core/introspection/resources/creation-home-projection.companion.d.ts.map +1 -1
- package/dist/esm/core/introspection/resources/creation-home-projection.companion.js +12 -0
- package/dist/esm/core/introspection/resources/creation-home-projection.companion.js.map +1 -1
- package/dist/esm/core/introspection/resources/creation-plane-projection.companion.service.d.ts.map +1 -1
- package/dist/esm/core/introspection/resources/creation-plane-projection.companion.service.js +7 -1
- package/dist/esm/core/introspection/resources/creation-plane-projection.companion.service.js.map +1 -1
- package/dist/esm/core/introspection/services/introspection-source-state.companion.service.d.ts +8 -20
- 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 +37 -142
- package/dist/esm/core/introspection/services/introspection-source-state.companion.service.js.map +1 -1
- package/dist/esm/core/introspection/services/introspection-source-walk.worker.d.ts +64 -0
- package/dist/esm/core/introspection/services/introspection-source-walk.worker.d.ts.map +1 -0
- package/dist/esm/core/introspection/services/introspection-source-walk.worker.js +304 -0
- package/dist/esm/core/introspection/services/introspection-source-walk.worker.js.map +1 -0
- package/dist/esm/core/introspection/services/translation-placement.companion.service.d.ts +3 -2
- package/dist/esm/core/introspection/services/translation-placement.companion.service.d.ts.map +1 -1
- package/dist/esm/core/introspection/services/translation-placement.companion.service.js.map +1 -1
- package/dist/esm/core/introspection/subprocess/companion-introspection-behavior-handlers.d.ts.map +1 -1
- package/dist/esm/core/introspection/subprocess/companion-introspection-behavior-handlers.js +24 -14
- package/dist/esm/core/introspection/subprocess/companion-introspection-behavior-handlers.js.map +1 -1
- package/dist/esm/core/introspection/workspace-element-index.companion.d.ts +42 -0
- package/dist/esm/core/introspection/workspace-element-index.companion.d.ts.map +1 -1
- package/dist/esm/core/introspection/workspace-element-index.companion.js +42 -0
- package/dist/esm/core/introspection/workspace-element-index.companion.js.map +1 -1
- package/dist/esm/core/runtime/companion-language-model-route.d.ts +16 -1
- package/dist/esm/core/runtime/companion-language-model-route.d.ts.map +1 -1
- package/dist/esm/core/runtime/companion-language-model-route.js +23 -1
- package/dist/esm/core/runtime/companion-language-model-route.js.map +1 -1
- package/dist/esm/core/runtime/dev-compile-quiet.companion.d.ts +53 -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 +119 -2
- package/dist/esm/core/runtime/dev-compile-quiet.companion.js.map +1 -1
- 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 +16 -3
- package/dist/esm/core/runtime/services/start-companion-application.service.js.map +1 -1
- package/dist/esm/core/runtime/utils/companion-platform-config.companion.d.ts +2 -2
- 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 +6 -6
- package/dist/esm/core/runtime/utils/companion-platform-config.companion.js.map +1 -1
- package/dist/esm/core/utils/git-read-broker.companion.d.ts +62 -0
- package/dist/esm/core/utils/git-read-broker.companion.d.ts.map +1 -0
- package/dist/esm/core/utils/git-read-broker.companion.js +282 -0
- package/dist/esm/core/utils/git-read-broker.companion.js.map +1 -0
- package/dist/esm/core/utils/local-write-recording.companion.d.ts +8 -1
- package/dist/esm/core/utils/local-write-recording.companion.d.ts.map +1 -1
- package/dist/esm/core/utils/local-write-recording.companion.js +7 -23
- package/dist/esm/core/utils/local-write-recording.companion.js.map +1 -1
- package/dist/esm/email/services/email-template.companion.service.d.ts +5 -0
- package/dist/esm/email/services/email-template.companion.service.d.ts.map +1 -1
- package/dist/esm/email/services/email-template.companion.service.js +44 -11
- package/dist/esm/email/services/email-template.companion.service.js.map +1 -1
- package/dist/esm/email/utils/email-template-fs-discovery.utils.d.ts +26 -2
- package/dist/esm/email/utils/email-template-fs-discovery.utils.d.ts.map +1 -1
- package/dist/esm/email/utils/email-template-fs-discovery.utils.js +41 -2
- package/dist/esm/email/utils/email-template-fs-discovery.utils.js.map +1 -1
- package/dist/esm/email/utils/email-template-scanner-calls.companion.utils.d.ts +19 -0
- package/dist/esm/email/utils/email-template-scanner-calls.companion.utils.d.ts.map +1 -0
- package/dist/esm/email/utils/email-template-scanner-calls.companion.utils.js +171 -0
- package/dist/esm/email/utils/email-template-scanner-calls.companion.utils.js.map +1 -0
- package/dist/esm/email/utils/module-email-root.companion.utils.d.ts +75 -0
- package/dist/esm/email/utils/module-email-root.companion.utils.d.ts.map +1 -0
- package/dist/esm/email/utils/module-email-root.companion.utils.js +162 -0
- package/dist/esm/email/utils/module-email-root.companion.utils.js.map +1 -0
- package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_CHART_DASHBOARD_LAYOUT_EDITOR.en.d.ts +29 -0
- package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_CHART_DASHBOARD_LAYOUT_EDITOR.en.d.ts.map +1 -0
- package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_CHART_DASHBOARD_LAYOUT_EDITOR.en.js +29 -0
- package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_CHART_DASHBOARD_LAYOUT_EDITOR.en.js.map +1 -0
- package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_CHART_DASHBOARD_LAYOUT_EDITOR.fr.d.ts +29 -0
- package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_CHART_DASHBOARD_LAYOUT_EDITOR.fr.d.ts.map +1 -0
- package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_CHART_DASHBOARD_LAYOUT_EDITOR.fr.js +29 -0
- package/dist/esm/i18n/components/HIGH_LEVEL_VIEWS_CHART_DASHBOARD_LAYOUT_EDITOR.fr.js.map +1 -0
- package/dist/esm/i18n/components/LOW_LEVEL_AI_AGENT_CONFIG.en.d.ts +1 -0
- 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 +1 -0
- package/dist/esm/i18n/components/LOW_LEVEL_AI_AGENT_CONFIG.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_AGENT_CONFIG.fr.d.ts +1 -0
- package/dist/esm/i18n/components/LOW_LEVEL_AI_AGENT_CONFIG.fr.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_AGENT_CONFIG.fr.js +1 -0
- package/dist/esm/i18n/components/LOW_LEVEL_AI_AGENT_CONFIG.fr.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_APPROVAL.en.d.ts +1 -0
- 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 +2 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_APPROVAL.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_APPROVAL.fr.d.ts +1 -0
- package/dist/esm/i18n/components/LOW_LEVEL_AI_APPROVAL.fr.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_APPROVAL.fr.js +2 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_APPROVAL.fr.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_CONVERSATION_THREAD.en.d.ts +5 -2
- package/dist/esm/i18n/components/LOW_LEVEL_AI_CONVERSATION_THREAD.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_CONVERSATION_THREAD.en.js +5 -2
- package/dist/esm/i18n/components/LOW_LEVEL_AI_CONVERSATION_THREAD.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_CONVERSATION_THREAD.fr.d.ts +5 -2
- package/dist/esm/i18n/components/LOW_LEVEL_AI_CONVERSATION_THREAD.fr.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_AI_CONVERSATION_THREAD.fr.js +5 -2
- package/dist/esm/i18n/components/LOW_LEVEL_AI_CONVERSATION_THREAD.fr.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_APPROVAL_SEAL.en.d.ts +41 -0
- package/dist/esm/i18n/components/LOW_LEVEL_APPROVAL_SEAL.en.d.ts.map +1 -0
- package/dist/esm/i18n/components/LOW_LEVEL_APPROVAL_SEAL.en.js +41 -0
- package/dist/esm/i18n/components/LOW_LEVEL_APPROVAL_SEAL.en.js.map +1 -0
- package/dist/esm/i18n/components/LOW_LEVEL_APPROVAL_SEAL.fr.d.ts +41 -0
- package/dist/esm/i18n/components/LOW_LEVEL_APPROVAL_SEAL.fr.d.ts.map +1 -0
- package/dist/esm/i18n/components/LOW_LEVEL_APPROVAL_SEAL.fr.js +41 -0
- package/dist/esm/i18n/components/LOW_LEVEL_APPROVAL_SEAL.fr.js.map +1 -0
- package/dist/esm/i18n/components/LOW_LEVEL_CONTENT_SECTION_CONTAINER.en.d.ts +1 -0
- 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 +2 -1
- package/dist/esm/i18n/components/LOW_LEVEL_CONTENT_SECTION_CONTAINER.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_CONTENT_SECTION_CONTAINER.fr.d.ts +1 -0
- package/dist/esm/i18n/components/LOW_LEVEL_CONTENT_SECTION_CONTAINER.fr.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_CONTENT_SECTION_CONTAINER.fr.js +2 -1
- package/dist/esm/i18n/components/LOW_LEVEL_CONTENT_SECTION_CONTAINER.fr.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_STRING.en.d.ts +1 -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 +2 -1
- package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_STRING.en.js.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_STRING.fr.d.ts +1 -0
- package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_STRING.fr.d.ts.map +1 -1
- package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_STRING.fr.js +2 -1
- package/dist/esm/i18n/components/LOW_LEVEL_FORM_FIELD_STRING.fr.js.map +1 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_MFA_CHALLENGE.en.d.ts +1 -0
- 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 +2 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_MFA_CHALLENGE.en.js.map +1 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_MFA_CHALLENGE.fr.d.ts +1 -0
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_MFA_CHALLENGE.fr.d.ts.map +1 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_MFA_CHALLENGE.fr.js +2 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_MFA_CHALLENGE.fr.js.map +1 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_TERMS.en.d.ts +2 -0
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_TERMS.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_TERMS.en.js +3 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_TERMS.en.js.map +1 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_TERMS.fr.d.ts +2 -0
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_TERMS.fr.d.ts.map +1 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_TERMS.fr.js +3 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_TERMS.fr.js.map +1 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_AUTH.en.d.ts +1 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_AUTH.en.js +1 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_AUTH.en.js.map +1 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_AUTH.fr.d.ts +1 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_AUTH.fr.js +1 -1
- package/dist/esm/i18n/components/PUBLIC_LAYOUTS_USER_AUTH.fr.js.map +1 -1
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_FILTERS.en.d.ts +2 -0
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_FILTERS.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_FILTERS.en.js +3 -1
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_FILTERS.en.js.map +1 -1
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_FILTERS.fr.d.ts +3 -1
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_FILTERS.fr.d.ts.map +1 -1
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_FILTERS.fr.js +4 -2
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_FILTERS.fr.js.map +1 -1
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_LIST.en.d.ts +17 -0
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_LIST.en.d.ts.map +1 -1
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_LIST.en.js +18 -1
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_LIST.en.js.map +1 -1
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_LIST.fr.d.ts +17 -0
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_LIST.fr.d.ts.map +1 -1
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_LIST.fr.js +18 -1
- package/dist/esm/i18n/components/RESOURCES_LAYOUTS_LIST.fr.js.map +1 -1
- package/dist/esm/i18n/composite_views/app.creation-conversation.fr.d.ts +206 -195
- package/dist/esm/i18n/composite_views/app.creation-conversation.fr.d.ts.map +1 -1
- package/dist/esm/i18n/composite_views/app.creation-conversation.fr.js +206 -195
- package/dist/esm/i18n/composite_views/app.creation-conversation.fr.js.map +1 -1
- package/dist/esm/i18n/composite_views/app.creation-dossier.fr.d.ts +10 -0
- package/dist/esm/i18n/composite_views/app.creation-dossier.fr.d.ts.map +1 -1
- package/dist/esm/i18n/composite_views/app.creation-dossier.fr.js +12 -2
- package/dist/esm/i18n/composite_views/app.creation-dossier.fr.js.map +1 -1
- package/dist/esm/i18n/resources/wildoApplicationActorSystemExecutions.fr.d.ts +70 -0
- package/dist/esm/i18n/resources/wildoApplicationActorSystemExecutions.fr.d.ts.map +1 -1
- package/dist/esm/i18n/resources/wildoApplicationActorSystemExecutions.fr.js +70 -0
- package/dist/esm/i18n/resources/wildoApplicationActorSystemExecutions.fr.js.map +1 -1
- package/dist/esm/i18n/resources/wildoApplicationActorTasks.fr.d.ts +12 -2
- package/dist/esm/i18n/resources/wildoApplicationActorTasks.fr.d.ts.map +1 -1
- package/dist/esm/i18n/resources/wildoApplicationActorTasks.fr.js +12 -2
- package/dist/esm/i18n/resources/wildoApplicationActorTasks.fr.js.map +1 -1
- package/dist/esm/i18n/resources/wildoApplicationFlowSystemExecutions.fr.d.ts +10 -0
- package/dist/esm/i18n/resources/wildoApplicationFlowSystemExecutions.fr.d.ts.map +1 -1
- package/dist/esm/i18n/resources/wildoApplicationFlowSystemExecutions.fr.js +10 -0
- package/dist/esm/i18n/resources/wildoApplicationFlowSystemExecutions.fr.js.map +1 -1
- package/dist/esm/i18n/resources/workbenchAspects.en.d.ts.map +1 -1
- package/dist/esm/i18n/resources/workbenchAspects.en.js +4 -0
- package/dist/esm/i18n/resources/workbenchAspects.en.js.map +1 -1
- package/dist/esm/i18n/resources/workbenchBuildDispatchPlan.fr.d.ts +25 -20
- package/dist/esm/i18n/resources/workbenchBuildDispatchPlan.fr.d.ts.map +1 -1
- package/dist/esm/i18n/resources/workbenchBuildDispatchPlan.fr.js +25 -20
- package/dist/esm/i18n/resources/workbenchBuildDispatchPlan.fr.js.map +1 -1
- package/dist/esm/i18n/resources/workbenchBuildPlanTasks.fr.d.ts +32 -32
- package/dist/esm/i18n/resources/workbenchBuildPlanTasks.fr.js +32 -32
- package/dist/esm/i18n/resources/workbenchBuildPlanTasks.fr.js.map +1 -1
- package/dist/esm/i18n/resources/workbenchBuildTaskRecords.fr.d.ts +65 -65
- package/dist/esm/i18n/resources/workbenchBuildTaskRecords.fr.js +65 -65
- package/dist/esm/i18n/resources/workbenchBuildTaskRecords.fr.js.map +1 -1
- package/dist/esm/i18n/resources/workbenchDossierEntries.fr.d.ts +20 -0
- package/dist/esm/i18n/resources/workbenchDossierEntries.fr.d.ts.map +1 -1
- package/dist/esm/i18n/resources/workbenchDossierEntries.fr.js +20 -0
- package/dist/esm/i18n/resources/workbenchDossierEntries.fr.js.map +1 -1
- package/dist/esm/i18n/resources/workbenchGovernanceQuestions.fr.d.ts +12 -0
- package/dist/esm/i18n/resources/workbenchGovernanceQuestions.fr.d.ts.map +1 -1
- package/dist/esm/i18n/resources/workbenchGovernanceQuestions.fr.js +13 -1
- package/dist/esm/i18n/resources/workbenchGovernanceQuestions.fr.js.map +1 -1
- package/dist/esm/i18n/resources/workbenchSpecificationArtifacts.en.d.ts +35 -0
- package/dist/esm/i18n/resources/workbenchSpecificationArtifacts.en.d.ts.map +1 -1
- package/dist/esm/i18n/resources/workbenchSpecificationArtifacts.en.js +12 -0
- package/dist/esm/i18n/resources/workbenchSpecificationArtifacts.en.js.map +1 -1
- package/dist/esm/i18n/resources/workbenchSpecificationArtifacts.fr.d.ts +536 -531
- package/dist/esm/i18n/resources/workbenchSpecificationArtifacts.fr.d.ts.map +1 -1
- package/dist/esm/i18n/resources/workbenchSpecificationArtifacts.fr.js +536 -531
- package/dist/esm/i18n/resources/workbenchSpecificationArtifacts.fr.js.map +1 -1
- package/dist/esm/i18n/system_enums/application-creation.fr.d.ts +170 -170
- package/dist/esm/i18n/system_enums/application-creation.fr.js +170 -170
- package/dist/esm/i18n/system_enums/application-creation.fr.js.map +1 -1
- package/dist/esm/i18n/system_enums/flows-actors.fr.d.ts +22 -22
- package/dist/esm/i18n/system_enums/flows-actors.fr.js +22 -22
- package/dist/esm/i18n/system_enums/flows-actors.fr.js.map +1 -1
- package/dist/esm/i18n/system_enums/run-records.fr.d.ts +21 -21
- package/dist/esm/i18n/system_enums/run-records.fr.js +21 -21
- package/dist/esm/i18n/system_enums/run-records.fr.js.map +1 -1
- package/dist/esm/i18n/system_enums/workbench-build.en.d.ts +3 -2
- package/dist/esm/i18n/system_enums/workbench-build.en.d.ts.map +1 -1
- package/dist/esm/i18n/system_enums/workbench-build.en.js +3 -2
- package/dist/esm/i18n/system_enums/workbench-build.en.js.map +1 -1
- package/dist/esm/i18n/system_enums/workbench-build.fr.d.ts +37 -33
- package/dist/esm/i18n/system_enums/workbench-build.fr.d.ts.map +1 -1
- package/dist/esm/i18n/system_enums/workbench-build.fr.js +37 -33
- package/dist/esm/i18n/system_enums/workbench-build.fr.js.map +1 -1
- package/dist/esm/i18n/system_enums/workbench-creation-home.en.d.ts +1 -0
- package/dist/esm/i18n/system_enums/workbench-creation-home.en.d.ts.map +1 -1
- package/dist/esm/i18n/system_enums/workbench-creation-home.en.js +1 -0
- package/dist/esm/i18n/system_enums/workbench-creation-home.en.js.map +1 -1
- package/dist/esm/i18n/system_enums/workbench-creation-home.fr.d.ts +18 -17
- package/dist/esm/i18n/system_enums/workbench-creation-home.fr.d.ts.map +1 -1
- package/dist/esm/i18n/system_enums/workbench-creation-home.fr.js +18 -17
- package/dist/esm/i18n/system_enums/workbench-creation-home.fr.js.map +1 -1
- package/dist/esm/i18n/system_enums/workbench-dossier.fr.d.ts +7 -5
- package/dist/esm/i18n/system_enums/workbench-dossier.fr.d.ts.map +1 -1
- package/dist/esm/i18n/system_enums/workbench-dossier.fr.js +8 -6
- package/dist/esm/i18n/system_enums/workbench-dossier.fr.js.map +1 -1
- package/dist/esm/i18n/system_enums/workbench-secrets.fr.d.ts +12 -12
- package/dist/esm/i18n/system_enums/workbench-secrets.fr.js +12 -12
- package/dist/esm/i18n/system_enums/workbench-secrets.fr.js.map +1 -1
- package/dist/esm/i18n/system_enums/workbench-specification-artifact.fr.d.ts +1 -0
- package/dist/esm/i18n/system_enums/workbench-specification-artifact.fr.d.ts.map +1 -1
- package/dist/esm/i18n/system_enums/workbench-specification-artifact.fr.js +2 -1
- package/dist/esm/i18n/system_enums/workbench-specification-artifact.fr.js.map +1 -1
- package/dist/esm/i18n-labelling/services/email-template-labelling-units.companion.service.d.ts.map +1 -1
- package/dist/esm/i18n-labelling/services/email-template-labelling-units.companion.service.js +7 -3
- package/dist/esm/i18n-labelling/services/email-template-labelling-units.companion.service.js.map +1 -1
- package/dist/esm/i18n-labelling/services/labelling-planner.companion.service.d.ts.map +1 -1
- package/dist/esm/i18n-labelling/services/labelling-planner.companion.service.js +3 -4
- package/dist/esm/i18n-labelling/services/labelling-planner.companion.service.js.map +1 -1
- package/dist/esm/i18n-labelling/utils/declared-refusal-codes.utils.d.ts +11 -0
- package/dist/esm/i18n-labelling/utils/declared-refusal-codes.utils.d.ts.map +1 -1
- package/dist/esm/i18n-labelling/utils/declared-refusal-codes.utils.js +21 -0
- package/dist/esm/i18n-labelling/utils/declared-refusal-codes.utils.js.map +1 -1
- package/dist/esm/meta-workflows/models/creation-journey-timeline.models.d.ts +9 -0
- package/dist/esm/meta-workflows/models/creation-journey-timeline.models.d.ts.map +1 -1
- package/dist/esm/meta-workflows/models/creation-journey-timeline.models.js +18 -2
- package/dist/esm/meta-workflows/models/creation-journey-timeline.models.js.map +1 -1
- package/dist/esm/meta-workflows/services/application-build-dispatch.companion.service.d.ts +153 -22
- 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 +970 -208
- package/dist/esm/meta-workflows/services/application-build-dispatch.companion.service.js.map +1 -1
- package/dist/esm/meta-workflows/services/application-build-follow-up-derivation.companion.d.ts +115 -13
- package/dist/esm/meta-workflows/services/application-build-follow-up-derivation.companion.d.ts.map +1 -1
- package/dist/esm/meta-workflows/services/application-build-follow-up-derivation.companion.js +295 -56
- package/dist/esm/meta-workflows/services/application-build-follow-up-derivation.companion.js.map +1 -1
- package/dist/esm/meta-workflows/services/application-build-landing-projection.companion.d.ts +3 -3
- package/dist/esm/meta-workflows/services/application-build-landing-projection.companion.js +3 -3
- package/dist/esm/meta-workflows/services/application-build-landing-projection.companion.js.map +1 -1
- package/dist/esm/meta-workflows/services/application-build-task-closure.companion.d.ts +9 -0
- package/dist/esm/meta-workflows/services/application-build-task-closure.companion.d.ts.map +1 -1
- package/dist/esm/meta-workflows/services/application-build-task-closure.companion.js +19 -0
- package/dist/esm/meta-workflows/services/application-build-task-closure.companion.js.map +1 -1
- package/dist/esm/meta-workflows/services/application-build-task-coding-policy.companion.service.d.ts +1 -1
- 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 +48 -26
- package/dist/esm/meta-workflows/services/application-build-task-coding-policy.companion.service.js.map +1 -1
- package/dist/esm/meta-workflows/services/build-task-brief-application-facts.companion.d.ts +12 -0
- package/dist/esm/meta-workflows/services/build-task-brief-application-facts.companion.d.ts.map +1 -1
- package/dist/esm/meta-workflows/services/build-task-brief-application-facts.companion.js +30 -1
- package/dist/esm/meta-workflows/services/build-task-brief-application-facts.companion.js.map +1 -1
- package/dist/esm/meta-workflows/services/creation-intervention-ledger.companion.service.d.ts.map +1 -1
- package/dist/esm/meta-workflows/services/creation-intervention-ledger.companion.service.js +4 -5
- package/dist/esm/meta-workflows/services/creation-intervention-ledger.companion.service.js.map +1 -1
- package/dist/esm/meta-workflows/services/creation-run-report.companion.service.d.ts.map +1 -1
- package/dist/esm/meta-workflows/services/creation-run-report.companion.service.js +12 -1
- package/dist/esm/meta-workflows/services/creation-run-report.companion.service.js.map +1 -1
- 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 +6 -3
- package/dist/esm/meta-workflows/services/foundation-executor.companion.service.js.map +1 -1
- package/dist/esm/meta-workflows/services/playbook-run-write-register-window.companion.d.ts.map +1 -1
- package/dist/esm/meta-workflows/services/playbook-run-write-register-window.companion.js +3 -5
- package/dist/esm/meta-workflows/services/playbook-run-write-register-window.companion.js.map +1 -1
- package/dist/esm/meta-workflows/services/playbook-run.companion.service.d.ts +8 -1
- 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 +119 -25
- package/dist/esm/meta-workflows/services/playbook-run.companion.service.js.map +1 -1
- package/dist/esm/meta-workflows/services/provider-registry-brief.companion.utils.d.ts +55 -1
- package/dist/esm/meta-workflows/services/provider-registry-brief.companion.utils.d.ts.map +1 -1
- package/dist/esm/meta-workflows/services/provider-registry-brief.companion.utils.js +157 -10
- package/dist/esm/meta-workflows/services/provider-registry-brief.companion.utils.js.map +1 -1
- package/dist/esm/module-layout/module-layout-convention.companion.d.ts +158 -0
- package/dist/esm/module-layout/module-layout-convention.companion.d.ts.map +1 -0
- package/dist/esm/module-layout/module-layout-convention.companion.js +272 -0
- package/dist/esm/module-layout/module-layout-convention.companion.js.map +1 -0
- package/dist/esm/module-layout/module-layout-inspection.companion.d.ts +42 -0
- package/dist/esm/module-layout/module-layout-inspection.companion.d.ts.map +1 -0
- package/dist/esm/module-layout/module-layout-inspection.companion.js +290 -0
- package/dist/esm/module-layout/module-layout-inspection.companion.js.map +1 -0
- package/dist/esm/module-layout/module-source-files.companion.d.ts +3 -0
- package/dist/esm/module-layout/module-source-files.companion.d.ts.map +1 -0
- package/dist/esm/module-layout/module-source-files.companion.js +45 -0
- package/dist/esm/module-layout/module-source-files.companion.js.map +1 -0
- package/package.json +18 -18
|
@@ -27,5 +27,16 @@ export interface DeclaredRefusal {
|
|
|
27
27
|
}
|
|
28
28
|
export declare function collectDeclaredRefusals(specifications: Readonly<Record<string, unknown>>): readonly DeclaredRefusal[];
|
|
29
29
|
/** The label key a declared refusal's words live under. */
|
|
30
|
+
/**
|
|
31
|
+
* The generation purpose of a refusal code's words, from every `when` the specifications author for it, or `undefined`
|
|
32
|
+
* when none is authored.
|
|
33
|
+
*
|
|
34
|
+
* One code is often declared by several operations, each describing its own case, and the code has ONE word. Listed
|
|
35
|
+
* side by side, the cases read as alternatives, and the model words one of them: `SSO_DOMAIN_VERIFIED_ELSEWHERE` is
|
|
36
|
+
* refused by `claimDomain` when another scope has verified the domain and by `verifyDomain` also while another scope is
|
|
37
|
+
* still verifying it, and its word said "already verified" (#3838). So when there are several cases, the purpose says
|
|
38
|
+
* the word is read in EACH of them and must be true in all.
|
|
39
|
+
*/
|
|
40
|
+
export declare function refusalLabelPurpose(when: readonly string[]): string | undefined;
|
|
30
41
|
export declare function refusalLabelKey(code: string): string;
|
|
31
42
|
//# sourceMappingURL=declared-refusal-codes.utils.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"declared-refusal-codes.utils.d.ts","sourceRoot":"","sources":["../../../../src/i18n-labelling/utils/declared-refusal-codes.utils.ts"],"names":[],"mappings":"AAGA;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,MAAM,WAAW,eAAe;IAC9B,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,6EAA6E;IAC7E,QAAQ,CAAC,IAAI,EAAE,SAAS,MAAM,EAAE,CAAC;CAClC;AAOD,wBAAgB,uBAAuB,CAAC,cAAc,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,GAAG,SAAS,eAAe,EAAE,CAwBrH;AAED,2DAA2D;AAC3D,wBAAgB,eAAe,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAEpD"}
|
|
1
|
+
{"version":3,"file":"declared-refusal-codes.utils.d.ts","sourceRoot":"","sources":["../../../../src/i18n-labelling/utils/declared-refusal-codes.utils.ts"],"names":[],"mappings":"AAGA;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,MAAM,WAAW,eAAe;IAC9B,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,6EAA6E;IAC7E,QAAQ,CAAC,IAAI,EAAE,SAAS,MAAM,EAAE,CAAC;CAClC;AAOD,wBAAgB,uBAAuB,CAAC,cAAc,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,GAAG,SAAS,eAAe,EAAE,CAwBrH;AAED,2DAA2D;AAC3D;;;;;;;;;GASG;AACH,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,SAAS,MAAM,EAAE,GAAG,MAAM,GAAG,SAAS,CAQ/E;AAED,wBAAgB,eAAe,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAEpD"}
|
|
@@ -38,6 +38,27 @@ export function collectDeclaredRefusals(specifications) {
|
|
|
38
38
|
.map(([code, when]) => ({ code, when: when.slice(0, MAX_WHEN_TEXTS_PER_CODE) }));
|
|
39
39
|
}
|
|
40
40
|
/** The label key a declared refusal's words live under. */
|
|
41
|
+
/**
|
|
42
|
+
* The generation purpose of a refusal code's words, from every `when` the specifications author for it, or `undefined`
|
|
43
|
+
* when none is authored.
|
|
44
|
+
*
|
|
45
|
+
* One code is often declared by several operations, each describing its own case, and the code has ONE word. Listed
|
|
46
|
+
* side by side, the cases read as alternatives, and the model words one of them: `SSO_DOMAIN_VERIFIED_ELSEWHERE` is
|
|
47
|
+
* refused by `claimDomain` when another scope has verified the domain and by `verifyDomain` also while another scope is
|
|
48
|
+
* still verifying it, and its word said "already verified" (#3838). So when there are several cases, the purpose says
|
|
49
|
+
* the word is read in EACH of them and must be true in all.
|
|
50
|
+
*/
|
|
51
|
+
export function refusalLabelPurpose(when) {
|
|
52
|
+
const cases = [...new Set(when.map((text) => text.trim()).filter((text) => text.length > 0))];
|
|
53
|
+
if (cases.length === 0)
|
|
54
|
+
return undefined;
|
|
55
|
+
const lead = 'Tell the person why their request was refused and what to do instead.';
|
|
56
|
+
if (cases.length === 1)
|
|
57
|
+
return `${lead} The refusal, as the application documents it: ${cases[0]}`;
|
|
58
|
+
return `${lead} The same refusal answers ${cases.length} different cases, and a person in ANY of them reads these words, `
|
|
59
|
+
+ 'so they must be true in every case: never describe only one of them. The cases, as the application documents them: '
|
|
60
|
+
+ cases.map((text, index) => `(${index + 1}) ${text}`).join(' ');
|
|
61
|
+
}
|
|
41
62
|
export function refusalLabelKey(code) {
|
|
42
63
|
return `${LabellingTypes.ERRORS_REFUSALS}.${code}.msg`;
|
|
43
64
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"declared-refusal-codes.utils.js","sourceRoot":"","sources":["../../../../src/i18n-labelling/utils/declared-refusal-codes.utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,2BAA2B,EAAE,MAAM,uBAAuB,CAAC;AACpE,OAAO,EAAE,cAAc,EAAE,MAAM,qCAAqC,CAAC;AA8BrE,MAAM,8BAA8B,GAAwB,IAAI,GAAG,CAAC,MAAM,CAAC,MAAM,CAAC,2BAA2B,CAAC,CAAC,CAAC;AAEhH,4GAA4G;AAC5G,MAAM,uBAAuB,GAAG,CAAC,CAAC;AAElC,MAAM,UAAU,uBAAuB,CAAC,cAAiD;IACvF,MAAM,MAAM,GAAG,IAAI,GAAG,EAAoB,CAAC;IAC3C,MAAM,KAAK,GAAG,CAAC,IAAa,EAAE,KAAa,EAAQ,EAAE;QACnD,IAAI,KAAK,GAAG,EAAE,IAAI,IAAI,KAAK,IAAI,IAAI,OAAO,IAAI,KAAK,QAAQ;YAAE,OAAO;QACpE,IAAI,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE,CAAC;YAAC,KAAK,MAAM,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CAAC,EAAE,CAAC,KAAK,CAAC,EAAE,EAAE,CAAC,IAAI,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC;SACpD,GAAG,CAAC,CAAC,CAAC,IAAI,EAAE,IAAI,CAAC,EAAE,EAAE,CAAC,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,KAAK,CAAC,CAAC,EAAE,uBAAuB,CAAC,EAAE,CAAC,CAAC,CAAC;AACrF,CAAC;AAED,2DAA2D;AAC3D,MAAM,UAAU,eAAe,CAAC,IAAY;IAC1C,OAAO,GAAG,cAAc,CAAC,eAAe,IAAI,IAAI,MAAM,CAAC;AACzD,CAAC","sourcesContent":["import { ErrorCustomMessageReference } from '@wildo-ai/saas-models';\nimport { LabellingTypes } from '@wildo-ai/presets-components-models';\n\n/**\n * The DECLARED refusal codes of an application's resources, and what each one means (#1048).\n *\n * A resource specification documents each failure mode of an operation as an `errorScenarios[]` entry:\n * `{ code, when, errorType?, customMessageReference?, errorCode? }`. `errorCode` is the operation's own\n * refusal code, returned as `error.code`, and `when` is the business-language trigger — for a custom\n * refusal, usually the REMEDY\n * (\"name the slot by its contract key\"). Nothing gave those codes words, so a form refused with one\n * showed only the generic validation sentence, and the remedy the specification documents never reached\n * the person.\n *\n * Collected by WALKING each specification for `errorScenarios` arrays rather than by naming the path to\n * them, because a scenario is authored on an operation or on one of its variants; a walker cannot miss a\n * nesting level a named path would.\n *\n * TOTAL over the declared `error.code` values. Only `errorCode` is read: a `customMessageReference` has its\n * words in `errors_messages` already, and an `errorType` is a framework vocabulary with its own labels.\n * Until those were separate fields (#1620) this planned words for `VALIDATION_FAILED`, `CONFLICT` and\n * uppercase enum KEYS — codes no error ever carried, so no refusal ever looked their words up. The\n * {@link ErrorCustomMessageReference} exclusion below stays as a guard against a value authored in the\n * wrong field.\n */\nexport interface DeclaredRefusal {\n readonly code: string;\n /** The distinct `when` texts authored for this code, in first-seen order. */\n readonly when: readonly string[];\n}\n\nconst ERROR_MESSAGE_REFERENCE_VALUES: ReadonlySet<string> = new Set(Object.values(ErrorCustomMessageReference));\n\n/** How many distinct `when` texts to carry into generation — enough to show the code's meaning, bounded. */\nconst MAX_WHEN_TEXTS_PER_CODE = 3;\n\nexport function collectDeclaredRefusals(specifications: Readonly<Record<string, unknown>>): readonly DeclaredRefusal[] {\n const byCode = new Map<string, string[]>();\n const visit = (node: unknown, depth: number): void => {\n if (depth > 12 || node === null || typeof node !== 'object') return;\n if (Array.isArray(node)) { for (const item of node) visit(item, depth + 1); return; }\n for (const [key, value] of Object.entries(node)) {\n if (key === 'errorScenarios' && Array.isArray(value)) {\n for (const scenario of value) {\n const { errorCode, when } = (scenario ?? {}) as { errorCode?: unknown; when?: unknown };\n if (typeof errorCode !== 'string' || errorCode.length === 0) continue;\n if (ERROR_MESSAGE_REFERENCE_VALUES.has(errorCode)) continue;\n const texts = byCode.get(errorCode) ?? [];\n if (typeof when === 'string' && when.length > 0 && !texts.includes(when)) texts.push(when);\n byCode.set(errorCode, texts);\n }\n continue;\n }\n visit(value, depth + 1);\n }\n };\n for (const specification of Object.values(specifications)) visit(specification, 0);\n return [...byCode.entries()]\n .sort(([left], [right]) => left.localeCompare(right))\n .map(([code, when]) => ({ code, when: when.slice(0, MAX_WHEN_TEXTS_PER_CODE) }));\n}\n\n/** The label key a declared refusal's words live under. */\nexport function refusalLabelKey(code: string): string {\n return `${LabellingTypes.ERRORS_REFUSALS}.${code}.msg`;\n}\n"]}
|
|
1
|
+
{"version":3,"file":"declared-refusal-codes.utils.js","sourceRoot":"","sources":["../../../../src/i18n-labelling/utils/declared-refusal-codes.utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,2BAA2B,EAAE,MAAM,uBAAuB,CAAC;AACpE,OAAO,EAAE,cAAc,EAAE,MAAM,qCAAqC,CAAC;AA8BrE,MAAM,8BAA8B,GAAwB,IAAI,GAAG,CAAC,MAAM,CAAC,MAAM,CAAC,2BAA2B,CAAC,CAAC,CAAC;AAEhH,4GAA4G;AA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EAAmE;UACtH,qHAAqH;UACrH,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,KAAK,EAAE,EAAE,CAAC,IAAI,KAAK,GAAG,CAAC,KAAK,IAAI,EAAE,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AACrE,CAAC;AAED,MAAM,UAAU,eAAe,CAAC,IAAY;IAC1C,OAAO,GAAG,cAAc,CAAC,eAAe,IAAI,IAAI,MAAM,CAAC;AACzD,CAAC","sourcesContent":["import { ErrorCustomMessageReference } from '@wildo-ai/saas-models';\nimport { LabellingTypes } from '@wildo-ai/presets-components-models';\n\n/**\n * The DECLARED refusal codes of an application's resources, and what each one means (#1048).\n *\n * A resource specification documents each failure mode of an operation as an `errorScenarios[]` entry:\n * `{ code, when, errorType?, customMessageReference?, errorCode? }`. `errorCode` is the operation's own\n * refusal code, returned as `error.code`, and `when` is the business-language trigger — for a custom\n * refusal, usually the REMEDY\n * (\"name the slot by its contract key\"). Nothing gave those codes words, so a form refused with one\n * showed only the generic validation sentence, and the remedy the specification documents never reached\n * the person.\n *\n * Collected by WALKING each specification for `errorScenarios` arrays rather than by naming the path to\n * them, because a scenario is authored on an operation or on one of its variants; a walker cannot miss a\n * nesting level a named path would.\n *\n * TOTAL over the declared `error.code` values. Only `errorCode` is read: a `customMessageReference` has its\n * words in `errors_messages` already, and an `errorType` is a framework vocabulary with its own labels.\n * Until those were separate fields (#1620) this planned words for `VALIDATION_FAILED`, `CONFLICT` and\n * uppercase enum KEYS — codes no error ever carried, so no refusal ever looked their words up. The\n * {@link ErrorCustomMessageReference} exclusion below stays as a guard against a value authored in the\n * wrong field.\n */\nexport interface DeclaredRefusal {\n readonly code: string;\n /** The distinct `when` texts authored for this code, in first-seen order. */\n readonly when: readonly string[];\n}\n\nconst ERROR_MESSAGE_REFERENCE_VALUES: ReadonlySet<string> = new Set(Object.values(ErrorCustomMessageReference));\n\n/** How many distinct `when` texts to carry into generation — enough to show the code's meaning, bounded. */\nconst MAX_WHEN_TEXTS_PER_CODE = 3;\n\nexport function collectDeclaredRefusals(specifications: Readonly<Record<string, unknown>>): readonly DeclaredRefusal[] {\n const byCode = new Map<string, string[]>();\n const visit = (node: unknown, depth: number): void => {\n if (depth > 12 || node === null || typeof node !== 'object') return;\n if (Array.isArray(node)) { for (const item of node) visit(item, depth + 1); return; }\n for (const [key, value] of Object.entries(node)) {\n if (key === 'errorScenarios' && Array.isArray(value)) {\n for (const scenario of value) {\n const { errorCode, when } = (scenario ?? {}) as { errorCode?: unknown; when?: unknown };\n if (typeof errorCode !== 'string' || errorCode.length === 0) continue;\n if (ERROR_MESSAGE_REFERENCE_VALUES.has(errorCode)) continue;\n const texts = byCode.get(errorCode) ?? [];\n if (typeof when === 'string' && when.length > 0 && !texts.includes(when)) texts.push(when);\n byCode.set(errorCode, texts);\n }\n continue;\n }\n visit(value, depth + 1);\n }\n };\n for (const specification of Object.values(specifications)) visit(specification, 0);\n return [...byCode.entries()]\n .sort(([left], [right]) => left.localeCompare(right))\n .map(([code, when]) => ({ code, when: when.slice(0, MAX_WHEN_TEXTS_PER_CODE) }));\n}\n\n/** The label key a declared refusal's words live under. */\n/**\n * The generation purpose of a refusal code's words, from every `when` the specifications author for it, or `undefined`\n * when none is authored.\n *\n * One code is often declared by several operations, each describing its own case, and the code has ONE word. Listed\n * side by side, the cases read as alternatives, and the model words one of them: `SSO_DOMAIN_VERIFIED_ELSEWHERE` is\n * refused by `claimDomain` when another scope has verified the domain and by `verifyDomain` also while another scope is\n * still verifying it, and its word said \"already verified\" (#3838). So when there are several cases, the purpose says\n * the word is read in EACH of them and must be true in all.\n */\nexport function refusalLabelPurpose(when: readonly string[]): string | undefined {\n const cases = [...new Set(when.map((text) => text.trim()).filter((text) => text.length > 0))];\n if (cases.length === 0) return undefined;\n const lead = 'Tell the person why their request was refused and what to do instead.';\n if (cases.length === 1) return `${lead} The refusal, as the application documents it: ${cases[0]}`;\n return `${lead} The same refusal answers ${cases.length} different cases, and a person in ANY of them reads these words, `\n + 'so they must be true in every case: never describe only one of them. The cases, as the application documents them: '\n + cases.map((text, index) => `(${index + 1}) ${text}`).join(' ');\n}\n\nexport function refusalLabelKey(code: string): string {\n return `${LabellingTypes.ERRORS_REFUSALS}.${code}.msg`;\n}\n"]}
|
|
@@ -88,6 +88,15 @@ export declare function classifyPlaybookRefsByJourneyPhase(admitsOf: (ref: strin
|
|
|
88
88
|
export declare function deriveCreationJourneyTimeline(input: {
|
|
89
89
|
readonly now: Date;
|
|
90
90
|
readonly playbookRuns: readonly CreationJourneyPlaybookRun[];
|
|
91
|
+
/**
|
|
92
|
+
* Completed research turns (#3896), from their evidence records: a research child writes no playbook-run row, so a phase
|
|
93
|
+
* whose first work is research would otherwise start at its first OTHER run. Absent means none were read.
|
|
94
|
+
*/
|
|
95
|
+
readonly researchTurns?: readonly {
|
|
96
|
+
readonly playbookRef: string;
|
|
97
|
+
readonly startedAt: string;
|
|
98
|
+
readonly elapsedMs: number;
|
|
99
|
+
}[];
|
|
91
100
|
readonly buildAttempts: readonly CreationJourneyBuildAttempt[];
|
|
92
101
|
readonly phaseOf: ReadonlyMap<string, CreationJourneyPhase>;
|
|
93
102
|
readonly ambiguousPlaybookRefs: readonly string[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"creation-journey-timeline.models.d.ts","sourceRoot":"","sources":["../../../../src/meta-workflows/models/creation-journey-timeline.models.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAC3D,OAAO,EACL,6BAA6B,EAI7B,oBAAoB,EAEpB,KAAK,6BAA6B,EAGlC,KAAK,wBAAwB,EAC9B,MAAM,gCAAgC,CAAC;AAExC;;;;;;;GAOG;AAEH,0FAA0F;AAC1F,MAAM,WAAW,0BAA0B;IACzC,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IAC7B,QAAQ,CAAC,SAAS,EAAE,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AAG;IAChG,QAAQ,CAAC,OAAO,EAAE,WAAW,CAAC,MAAM,EAAE,oBAAoB,CAAC,CAAC;IAC5D,QAAQ,CAAC,qBAAqB,EAAE,SAAS,MAAM,EAAE,CAAC;CACnD,CAoBA;
|
|
1
|
+
{"version":3,"file":"creation-journey-timeline.models.d.ts","sourceRoot":"","sources":["../../../../src/meta-workflows/models/creation-journey-timeline.models.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAC3D,OAAO,EACL,6BAA6B,EAI7B,oBAAoB,EAEpB,KAAK,6BAA6B,EAGlC,KAAK,wBAAwB,EAC9B,MAAM,gCAAgC,CAAC;AAExC;;;;;;;GAOG;AAEH,0FAA0F;AAC1F,MAAM,WAAW,0BAA0B;IACzC,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IAC7B,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,UAAU,CAAC,EAAE,MAAM,CAAC;IAC7B,QAAQ,CAAC,MAAM,EAAE,kBAAkB,CAAC;IACpC,iEAAiE;IACjE,QAAQ,CAAC,WAAW,CAAC,EAAE,MAAM,CAAC;CAC/B;AAED;;;;;;;;;GASG;AACH,MAAM,WAAW,2BAA2B;IAC1C,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;IAC5B,QAAQ,CAAC,oBAAoB,CAAC,EAAE,MAAM,CAAC;IACvC,QAAQ,CAAC,UAAU,CAAC,EAAE,MAAM,CAAC;IAC7B,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAC;IAC5B,2FAA2F;IAC3F,QAAQ,CAAC,oBAAoB,CAAC,EAAE,MAAM,CAAC;IACvC;;;OAGG;IACH,QAAQ,CAAC,uBAAuB,EAAE,OAAO,CAAC;IAC1C,QAAQ,CAAC,cAAc,E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CAAC,MAAM,EAAE,oBAAoB,CAAC,CAAC;IAC5D,QAAQ,CAAC,qBAAqB,EAAE,SAAS,MAAM,EAAE,CAAC;IAClD,yHAAyH;IACzH,QAAQ,CAAC,cAAc,EAAE,SAAS,6BAA6B,EAAE,GAAG,IAAI,CAAC;IACzE,QAAQ,CAAC,UAAU,EAAE,SAAS,MAAM,EAAE,CAAC;CACxC,GAAG,wBAAwB,CA4I3B"}
|
|
@@ -112,8 +112,8 @@ function playbookRunWindow(run, nowMs) {
|
|
|
112
112
|
*/
|
|
113
113
|
export function deriveCreationJourneyTimeline(input) {
|
|
114
114
|
const nowMs = input.now.getTime();
|
|
115
|
-
const spans = new Map(CREATION_JOURNEY_PHASE_ORDER.map((phase) => [phase, { inFlight: false, waitingOnPerson: false, playbookRuns: 0, buildAttempts: 0 }]));
|
|
116
|
-
const wall = { inFlight: false, waitingOnPerson: false, playbookRuns: 0, buildAttempts: 0 };
|
|
115
|
+
const spans = new Map(CREATION_JOURNEY_PHASE_ORDER.map((phase) => [phase, { inFlight: false, waitingOnPerson: false, playbookRuns: 0, researchTurns: 0, buildAttempts: 0 }]));
|
|
116
|
+
const wall = { inFlight: false, waitingOnPerson: false, playbookRuns: 0, researchTurns: 0, buildAttempts: 0 };
|
|
117
117
|
let outsidePhasePlaybookRuns = 0;
|
|
118
118
|
for (const run of input.playbookRuns) {
|
|
119
119
|
const window = playbookRunWindow(run, nowMs);
|
|
@@ -132,6 +132,21 @@ export function deriveCreationJourneyTimeline(input) {
|
|
|
132
132
|
span.waitingOnPerson ||= window.waitingOnPerson;
|
|
133
133
|
span.playbookRuns += 1;
|
|
134
134
|
}
|
|
135
|
+
// A research turn widens its phase like a playbook run does, and the wall clock with it (#3896). Never in flight: only
|
|
136
|
+
// a completed turn writes its record.
|
|
137
|
+
for (const turn of input.researchTurns ?? []) {
|
|
138
|
+
const startMs = instantMs(turn.startedAt);
|
|
139
|
+
if (startMs === undefined)
|
|
140
|
+
continue;
|
|
141
|
+
const endMs = startMs + Math.max(0, turn.elapsedMs);
|
|
142
|
+
widen(wall, startMs, endMs);
|
|
143
|
+
const phase = input.phaseOf.get(turn.playbookRef);
|
|
144
|
+
if (phase === undefined)
|
|
145
|
+
continue;
|
|
146
|
+
const span = spans.get(phase);
|
|
147
|
+
widen(span, startMs, endMs);
|
|
148
|
+
span.researchTurns += 1;
|
|
149
|
+
}
|
|
135
150
|
const byTask = new Map();
|
|
136
151
|
const build = spans.get(CreationJourneyPhase.BUILD);
|
|
137
152
|
const attemptTimings = [];
|
|
@@ -190,6 +205,7 @@ export function deriveCreationJourneyTimeline(input) {
|
|
|
190
205
|
inFlight: span.inFlight,
|
|
191
206
|
waitingOnPerson: span.waitingOnPerson,
|
|
192
207
|
playbookRuns: span.playbookRuns,
|
|
208
|
+
researchTurns: span.researchTurns,
|
|
193
209
|
buildAttempts: span.buildAttempts,
|
|
194
210
|
};
|
|
195
211
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"creation-journey-timeline.models.js","sourceRoot":"","sources":["../../../../src/meta-workflows/models/creation-journey-timeline.models.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAC3D,OAAO,EACL,6BAA6B,EAC7B,gCAAgC,EAChC,4BAA4B,EAC5B,yCAAyC,EACzC,oBAAoB,GAMrB,MAAM,gCAAgC,CAAC;AA2DxC,kFAAkF;AAClF,SAAS,SAAS,CAAC,KAAyB;IAC1C,IAAI,KAAK,KAAK,SAAS;QAAE,OAAO,SAAS,CAAC;IAC1C,MAAM,EAAE,GAAG,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;IAC7B,OAAO,MAAM,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC;AAC9C,CAAC;AAED;;;;;;;;;GASG;AACH,MAAM,UAAU,mBAAmB,CAAC,OAAoC,EAAE,KAAa;IACrF,MA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AI,CAAC,QAAQ;SACxB;QACD,MAAM;QACN,iBAAiB;QACjB,mBAAmB,EAAE,MAAM,CAAC,IAAI;QAChC,mBAAmB,EAAE,cAAc;aAChC,IAAI,CAAC,CAAC,IAAI,EAAE,KAAK,EAAE,EAAE,CAAC,IAAI,CAAC,WAAW,GAAG,KAAK,CAAC,WAAW,IAAI,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,aAAa,CAAC,KAAK,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;aACpH,GAAG,CAAC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,KAAK,CAAC;QAC5B,cAAc,EAAE,KAAK,CAAC,cAAc,KAAK,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC,cAAc,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC,EAAE,OAAO,EAAE,IAAI,CAAC,OAAO,EAAE,oBAAoB,EAAE,CAAC,GAAG,IAAI,CAAC,oBAAoB,CAAC,EAAE,CAAC,CAAC;QAC5K,wBAAwB;QACxB,qBAAqB,EAAE,CAAC,GAAG,KAAK,CAAC,qBAAqB,CAAC;QACvD,UAAU,EAAE,CAAC,GAAG,KAAK,CAAC,UAAU,CAAC;KAClC,CAAC;AACJ,CAAC","sourcesContent":["import { FlowsActors_Status } from '@wildo-ai/saas-models';\nimport {\n BuildDispatchWaitMeasuredFrom,\n CREATION_JOURNEY_PHASE_LANE_REFS,\n CREATION_JOURNEY_PHASE_ORDER,\n CREATION_JOURNEY_SLOWEST_BUILD_TASK_COUNT,\n CreationJourneyPhase,\n type CreationJourney_BuildAttemptTiming,\n type CreationJourney_BuildPlanTask,\n type CreationJourney_PhaseSpan,\n type CreationJourney_SlowBuildTask,\n type CreationJourney_Timeline,\n} from '@wildo-ai/platform-core-shared';\n\n/**\n * The creation journey's timeline, derived from rows (#3206, epic #3204): per-phase spans, the wall clock, and the\n * build tasks that took longest, each split into its dispatch wait and its run time.\n *\n * Pure: the companion's run-report service reads the rows and the catalog, and this function decides nothing a row\n * does not say. Nothing is stored: the playbook runs' executions and each build attempt's row ARE the record, and a\n * restart loses no figure, because every instant used here is on a row (the attempt's preparation start since #3206).\n */\n\n/** One playbook run as the timeline reads it: its execution row's instants and status. */\nexport interface CreationJourneyPlaybookRun {\n readonly runId: string;\n readonly playbookRef: string;\n readonly startedAt: string;\n readonly finishedAt?: string;\n readonly status: FlowsActors_Status;\n /** When it stopped to ask a person, for a run waiting on one. */\n readonly suspendedAt?: string;\n}\n\n/**\n * One build-task attempt's instants, as its execution and task rows record them.\n *\n * - `selectedAt` — the execution row's creation: the task was chosen and its brief composed.\n * - `preparationStartedAt` — the door that dispatched it began preparing it: a wave's slot, or a single-task door's\n * read of the plan (stamped on the task's input since #3206; absent only on an older row).\n * - `admittedAt` — the task row's start instant: the coding lane admitted the run, or a generation step began.\n * Absent for a run that never started (a refusal at admission).\n * - `settledAt` — the execution's finish instant; absent while it waits or runs.\n */\nexport interface CreationJourneyBuildAttempt {\n readonly taskRef: string;\n readonly selectedAt: string;\n readonly preparationStartedAt?: string;\n readonly admittedAt?: string;\n readonly settledAt?: string;\n /** When it parked on a question to a person, for an attempt that is waiting on one now. */\n readonly waitingOnPersonSince?: string;\n /**\n * The startup sweep of a later companion process settled it: `settledAt` is that restart, not when the run stopped,\n * which no row records. Its time is still counted, and marked.\n */\n readonly endedByCompanionRestart: boolean;\n readonly generationStep: boolean;\n}\n\n/** One attempt's time, split. */\nexport interface BuildAttemptTiming {\n readonly startedAtMs: number;\n readonly endedAtMs: number;\n readonly dispatchWaitMs: number;\n readonly runMs: number;\n readonly measuredFrom: BuildDispatchWaitMeasuredFrom;\n readonly inFlight: boolean;\n readonly waitingOnPerson: boolean;\n}\n\n/** Milliseconds of an ISO instant, or `undefined` for one that does not parse. */\nfunction instantMs(value: string | undefined): number | undefined {\n if (value === undefined) return undefined;\n const ms = Date.parse(value);\n return Number.isFinite(ms) ? ms : undefined;\n}\n\n/**\n * Split one attempt's time into the wait for its dispatch and its run.\n *\n * The wait runs from the slot's preparation start (else the row's opening, a floor) to admission; the run from\n * admission to settling. An attempt that was never admitted spent all its time waiting: it is a selection that never\n * became a run, and that time is exactly the gap #3206 could not see. An attempt parked on a question ends where it\n * parked: the time since is a person's, as a playbook run waiting on one is. Instants that disagree (an admission\n * recorded before its own preparation) are clamped rather than producing a negative duration. `undefined` when the\n * attempt carries no readable start.\n */\nexport function measureBuildAttempt(attempt: CreationJourneyBuildAttempt, nowMs: number): BuildAttemptTiming | undefined {\n const preparationMs = instantMs(attempt.preparationStartedAt);\n const selectedMs = instantMs(attempt.selectedAt);\n const waitFromMs = preparationMs ?? selectedMs;\n if (waitFromMs === undefined) return undefined;\n const measuredFrom = preparationMs !== undefined ? BuildDispatchWaitMeasuredFrom.PREPARATION : BuildDispatchWaitMeasuredFrom.SELECTION;\n const settledMs = instantMs(attempt.settledAt);\n const parkedMs = settledMs === undefined ? instantMs(attempt.waitingOnPersonSince) : undefined;\n const waitingOnPerson = parkedMs !== undefined;\n const inFlight = settledMs === undefined && !waitingOnPerson;\n const endedAtMs = Math.max(waitFromMs, settledMs ?? parkedMs ?? nowMs);\n const admittedMs = instantMs(attempt.admittedAt);\n if (admittedMs === undefined) {\n return { startedAtMs: waitFromMs, endedAtMs, dispatchWaitMs: endedAtMs - waitFromMs, runMs: 0, measuredFrom, inFlight, waitingOnPerson };\n }\n const admittedClampedMs = Math.min(Math.max(admittedMs, waitFromMs), endedAtMs);\n return {\n startedAtMs: waitFromMs,\n endedAtMs,\n dispatchWaitMs: admittedClampedMs - waitFromMs,\n runMs: endedAtMs - admittedClampedMs,\n measuredFrom,\n inFlight,\n waitingOnPerson,\n };\n}\n\n/**\n * Which phase each playbook ref is the work of: every ref a lane's choreography admits, transitively, and the lane\n * itself. A ref two lanes admit is placed in NEITHER and reported: its row names no lane (a nested run records only\n * its tree's root, the umbrella), so placing it would be a guess. One since 2026-11-06: `top_down.expert-personas`, which\n * the conception lane staffs with and the build lane re-runs when a panel's charters go stale (#3204).\n */\nexport function classifyPlaybookRefsByJourneyPhase(admitsOf: (ref: string) => readonly string[]): {\n readonly phaseOf: ReadonlyMap<string, CreationJourneyPhase>;\n readonly ambiguousPlaybookRefs: readonly string[];\n} {\n const lanesOf = new Map<string, CreationJourneyPhase[]>();\n for (const phase of CREATION_JOURNEY_PHASE_ORDER) {\n const seen = new Set<string>();\n const pending = [CREATION_JOURNEY_PHASE_LANE_REFS[phase]];\n while (pending.length > 0) {\n const ref = pending.pop()!;\n if (seen.has(ref)) continue;\n seen.add(ref);\n pending.push(...admitsOf(ref));\n }\n for (const ref of seen) lanesOf.set(ref, [...(lanesOf.get(ref) ?? []), phase]);\n }\n const phaseOf = new Map<string, CreationJourneyPhase>();\n const ambiguousPlaybookRefs: string[] = [];\n for (const [ref, phases] of lanesOf) {\n if (phases.length === 1) phaseOf.set(ref, phases[0]!);\n else ambiguousPlaybookRefs.push(ref);\n }\n return { phaseOf, ambiguousPlaybookRefs: ambiguousPlaybookRefs.sort() };\n}\n\n/** A span being accumulated. */\ninterface SpanAccumulator {\n startMs?: number;\n endMs?: number;\n inFlight: boolean;\n waitingOnPerson: boolean;\n playbookRuns: number;\n buildAttempts: number;\n}\n\nfunction widen(span: SpanAccumulator, startMs: number, endMs: number): void {\n span.startMs = span.startMs === undefined ? startMs : Math.min(span.startMs, startMs);\n span.endMs = span.endMs === undefined ? endMs : Math.max(span.endMs, endMs);\n}\n\n/** Whether a row still has work under way: PENDING (selected, not started) or PROCESSING. */\nfunction isUnderWay(status: FlowsActors_Status): boolean {\n return status === FlowsActors_Status.PENDING || status === FlowsActors_Status.PROCESSING;\n}\n\n/**\n * The window of one playbook run: its row's creation to its finish. One still under way ends at the read's instant;\n * one waiting on a person ends where it began waiting (time spent waiting for an answer is the person's, and the\n * phase is marked as waiting rather than stretched to now).\n */\nfunction playbookRunWindow(run: CreationJourneyPlaybookRun, nowMs: number): { startMs: number; endMs: number; inFlight: boolean; waitingOnPerson: boolean } | undefined {\n const startMs = instantMs(run.startedAt);\n if (startMs === undefined) return undefined;\n if (isUnderWay(run.status)) return { startMs, endMs: Math.max(startMs, nowMs), inFlight: true, waitingOnPerson: false };\n if (run.status === FlowsActors_Status.AWAITING_APPROVAL) {\n return { startMs, endMs: Math.max(startMs, instantMs(run.suspendedAt) ?? startMs), inFlight: false, waitingOnPerson: true };\n }\n return { startMs, endMs: Math.max(startMs, instantMs(run.finishedAt) ?? startMs), inFlight: false, waitingOnPerson: false };\n}\n\n/**\n * Derive the timeline: each phase's first start to its last settle, the wall clock over everything, and the\n * {@link CREATION_JOURNEY_SLOWEST_BUILD_TASK_COUNT} build tasks with the most wait plus run time.\n *\n * The BUILD phase's span covers its lane's playbook runs AND every build-task attempt, whoever started it: a single-task\n * dispatch (`wildo build run --single`, the workbench, a named run) starts no build-lane playbook, and its runs are\n * still the build. The wall clock covers every playbook run (a phase's or not) and every attempt.\n *\n * A run a companion restart ended is measured to that restart, because no row records when it really stopped: a build\n * attempt says so on its task line, and a playbook run cannot, so a phase that a restart interrupted may run long.\n */\nexport function deriveCreationJourneyTimeline(input: {\n readonly now: Date;\n readonly playbookRuns: readonly CreationJourneyPlaybookRun[];\n readonly buildAttempts: readonly CreationJourneyBuildAttempt[];\n readonly phaseOf: ReadonlyMap<string, CreationJourneyPhase>;\n readonly ambiguousPlaybookRefs: readonly string[];\n /** The accepted build plan's graph, carried through for a budget reader; NULL when there is none or it is unreadable. */\n readonly buildPlanGraph: readonly CreationJourney_BuildPlanTask[] | null;\n readonly notChecked: readonly string[];\n}): CreationJourney_Timeline {\n const nowMs = input.now.getTime();\n const spans = new Map<CreationJourneyPhase, SpanAccumulator>(\n CREATION_JOURNEY_PHASE_ORDER.map((phase) => [phase, { inFlight: false, waitingOnPerson: false, playbookRuns: 0, buildAttempts: 0 }]),\n );\n const wall: SpanAccumulator = { inFlight: false, waitingOnPerson: false, playbookRuns: 0, buildAttempts: 0 };\n let outsidePhasePlaybookRuns = 0;\n\n for (const run of input.playbookRuns) {\n const window = playbookRunWindow(run, nowMs);\n if (window === undefined) continue;\n widen(wall, window.startMs, window.endMs);\n wall.inFlight ||= window.inFlight;\n const phase = input.phaseOf.get(run.playbookRef);\n if (phase === undefined) {\n outsidePhasePlaybookRuns += 1;\n continue;\n }\n const span = spans.get(phase)!;\n widen(span, window.startMs, window.endMs);\n span.inFlight ||= window.inFlight;\n span.waitingOnPerson ||= window.waitingOnPerson;\n span.playbookRuns += 1;\n }\n\n const byTask = new Map<string, {\n attempts: number; dispatchWaitMs: number; runMs: number; fromSelection: boolean; inFlight: boolean; waitingOnPerson: boolean;\n endedByCompanionRestart: boolean; generationStep: boolean;\n }>();\n const build = spans.get(CreationJourneyPhase.BUILD)!;\n const attemptTimings: { readonly startedAtMs: number; readonly entry: CreationJourney_BuildAttemptTiming }[] = [];\n for (const attempt of input.buildAttempts) {\n const timing = measureBuildAttempt(attempt, nowMs);\n if (timing === undefined) continue;\n /*\n * The same split as the task totals below, per attempt (#3204's budget): a p95 is a statement about attempts, and a\n * task's sum over several attempts would hide a fast retry behind a slow first run. The admission instant is the\n * clamped one the split used, so `startedAt + dispatchWaitMs` is always `admittedAt`.\n */\n const admittedAtMs = instantMs(attempt.admittedAt) === undefined ? undefined : timing.startedAtMs + timing.dispatchWaitMs;\n attemptTimings.push({\n startedAtMs: timing.startedAtMs,\n entry: {\n taskRef: attempt.taskRef,\n startedAt: new Date(timing.startedAtMs).toISOString(),\n ...(admittedAtMs !== undefined ? { admittedAt: new Date(admittedAtMs).toISOString() } : {}),\n endedAt: new Date(timing.endedAtMs).toISOString(),\n dispatchWaitMs: timing.dispatchWaitMs,\n runMs: timing.runMs,\n dispatchWaitMeasuredFrom: timing.measuredFrom,\n inFlight: timing.inFlight,\n waitingOnPerson: timing.waitingOnPerson,\n endedByCompanionRestart: attempt.endedByCompanionRestart,\n generationStep: attempt.generationStep,\n },\n });\n widen(build, timing.startedAtMs, timing.endedAtMs);\n widen(wall, timing.startedAtMs, timing.endedAtMs);\n build.inFlight ||= timing.inFlight;\n build.waitingOnPerson ||= timing.waitingOnPerson;\n wall.inFlight ||= timing.inFlight;\n build.buildAttempts += 1;\n const task = byTask.get(attempt.taskRef) ?? {\n attempts: 0, dispatchWaitMs: 0, runMs: 0, fromSelection: false, inFlight: false, waitingOnPerson: false, endedByCompanionRestart: false, generationStep: false,\n };\n task.attempts += 1;\n task.dispatchWaitMs += timing.dispatchWaitMs;\n task.runMs += timing.runMs;\n task.fromSelection ||= timing.measuredFrom === BuildDispatchWaitMeasuredFrom.SELECTION;\n task.inFlight ||= timing.inFlight;\n task.waitingOnPerson ||= timing.waitingOnPerson;\n task.endedByCompanionRestart ||= attempt.endedByCompanionRestart;\n task.generationStep ||= attempt.generationStep;\n byTask.set(attempt.taskRef, task);\n }\n\n const phases: CreationJourney_PhaseSpan[] = CREATION_JOURNEY_PHASE_ORDER.map((phase) => {\n const span = spans.get(phase)!;\n const ran = span.startMs !== undefined && span.endMs !== undefined;\n return {\n phase,\n laneRef: CREATION_JOURNEY_PHASE_LANE_REFS[phase],\n ...(ran ? { startedAt: new Date(span.startMs!).toISOString(), endedAt: new Date(span.endMs!).toISOString(), durationMs: span.endMs! - span.startMs! } : {}),\n inFlight: span.inFlight,\n waitingOnPerson: span.waitingOnPerson,\n playbookRuns: span.playbookRuns,\n buildAttempts: span.buildAttempts,\n };\n });\n\n const slowestBuildTasks: CreationJourney_SlowBuildTask[] = [...byTask]\n .map(([taskRef, task]) => ({\n taskRef,\n attempts: task.attempts,\n dispatchWaitMs: task.dispatchWaitMs,\n runMs: task.runMs,\n totalMs: task.dispatchWaitMs + task.runMs,\n dispatchWaitMeasuredFrom: task.fromSelection ? BuildDispatchWaitMeasuredFrom.SELECTION : BuildDispatchWaitMeasuredFrom.PREPARATION,\n inFlight: task.inFlight,\n waitingOnPerson: task.waitingOnPerson,\n endedByCompanionRestart: task.endedByCompanionRestart,\n generationStep: task.generationStep,\n }))\n .sort((left, right) => right.totalMs - left.totalMs || left.taskRef.localeCompare(right.taskRef))\n .slice(0, CREATION_JOURNEY_SLOWEST_BUILD_TASK_COUNT);\n\n return {\n generatedAt: input.now.toISOString(),\n wallClock: wall.startMs === undefined || wall.endMs === undefined ? null : {\n startedAt: new Date(wall.startMs).toISOString(),\n endedAt: new Date(wall.endMs).toISOString(),\n durationMs: wall.endMs - wall.startMs,\n inFlight: wall.inFlight,\n },\n phases,\n slowestBuildTasks,\n attemptedBuildTasks: byTask.size,\n buildAttemptTimings: attemptTimings\n .sort((left, right) => left.startedAtMs - right.startedAtMs || left.entry.taskRef.localeCompare(right.entry.taskRef))\n .map(({ entry }) => entry),\n buildPlanGraph: input.buildPlanGraph === null ? null : input.buildPlanGraph.map((task) => ({ taskRef: task.taskRef, prerequisiteTaskRefs: [...task.prerequisiteTaskRefs] })),\n outsidePhasePlaybookRuns,\n ambiguousPlaybookRefs: [...input.ambiguousPlaybookRefs],\n notChecked: [...input.notChecked],\n };\n}\n"]}
|
|
1
|
+
{"version":3,"file":"creation-journey-timeline.models.js","sourceRoot":"","sources":["../../../../src/meta-workflows/models/creation-journey-timeline.models.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAC3D,OAAO,EACL,6BAA6B,EAC7B,gCAAgC,EAChC,4BAA4B,EAC5B,yCAAyC,EACzC,oBAAoB,GAMrB,MAAM,gCAAgC,CAAC;AA2DxC,kFAAkF;AAClF,SAAS,SAAS,CAAC,KAAyB;IAC1C,IAAI,KAAK,KAAK,SAAS;QAAE,OAAO,SAAS,CAAC;IAC1C,MAAM,EAAE,GAAG,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;IAC7B,OAAO,MAAM,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC;AAC9C,CAAC;AAED;;;;;;;;;GASG;AACH,MAAM,UAAU,mBAAmB,CAAC,OAAoC,EA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CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC,cAAc,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC,EAAE,OAAO,EAAE,IAAI,CAAC,OAAO,EAAE,oBAAoB,EAAE,CAAC,GAAG,IAAI,CAAC,oBAAoB,CAAC,EAAE,CAAC,CAAC;QAC5K,wBAAwB;QACxB,qBAAqB,EAAE,CAAC,GAAG,KAAK,CAAC,qBAAqB,CAAC;QACvD,UAAU,EAAE,CAAC,GAAG,KAAK,CAAC,UAAU,CAAC;KAClC,CAAC;AACJ,CAAC","sourcesContent":["import { FlowsActors_Status } from '@wildo-ai/saas-models';\nimport {\n BuildDispatchWaitMeasuredFrom,\n CREATION_JOURNEY_PHASE_LANE_REFS,\n CREATION_JOURNEY_PHASE_ORDER,\n CREATION_JOURNEY_SLOWEST_BUILD_TASK_COUNT,\n CreationJourneyPhase,\n type CreationJourney_BuildAttemptTiming,\n type CreationJourney_BuildPlanTask,\n type CreationJourney_PhaseSpan,\n type CreationJourney_SlowBuildTask,\n type CreationJourney_Timeline,\n} from '@wildo-ai/platform-core-shared';\n\n/**\n * The creation journey's timeline, derived from rows (#3206, epic #3204): per-phase spans, the wall clock, and the\n * build tasks that took longest, each split into its dispatch wait and its run time.\n *\n * Pure: the companion's run-report service reads the rows and the catalog, and this function decides nothing a row\n * does not say. Nothing is stored: the playbook runs' executions and each build attempt's row ARE the record, and a\n * restart loses no figure, because every instant used here is on a row (the attempt's preparation start since #3206).\n */\n\n/** One playbook run as the timeline reads it: its execution row's instants and status. */\nexport interface CreationJourneyPlaybookRun {\n readonly runId: string;\n readonly playbookRef: string;\n readonly startedAt: string;\n readonly finishedAt?: string;\n readonly status: FlowsActors_Status;\n /** When it stopped to ask a person, for a run waiting on one. */\n readonly suspendedAt?: string;\n}\n\n/**\n * One build-task attempt's instants, as its execution and task rows record them.\n *\n * - `selectedAt` — the execution row's creation: the task was chosen and its brief composed.\n * - `preparationStartedAt` — the door that dispatched it began preparing it: a wave's slot, or a single-task door's\n * read of the plan (stamped on the task's input since #3206; absent only on an older row).\n * - `admittedAt` — the task row's start instant: the coding lane admitted the run, or a generation step began.\n * Absent for a run that never started (a refusal at admission).\n * - `settledAt` — the execution's finish instant; absent while it waits or runs.\n */\nexport interface CreationJourneyBuildAttempt {\n readonly taskRef: string;\n readonly selectedAt: string;\n readonly preparationStartedAt?: string;\n readonly admittedAt?: string;\n readonly settledAt?: string;\n /** When it parked on a question to a person, for an attempt that is waiting on one now. */\n readonly waitingOnPersonSince?: string;\n /**\n * The startup sweep of a later companion process settled it: `settledAt` is that restart, not when the run stopped,\n * which no row records. Its time is still counted, and marked.\n */\n readonly endedByCompanionRestart: boolean;\n readonly generationStep: boolean;\n}\n\n/** One attempt's time, split. */\nexport interface BuildAttemptTiming {\n readonly startedAtMs: number;\n readonly endedAtMs: number;\n readonly dispatchWaitMs: number;\n readonly runMs: number;\n readonly measuredFrom: BuildDispatchWaitMeasuredFrom;\n readonly inFlight: boolean;\n readonly waitingOnPerson: boolean;\n}\n\n/** Milliseconds of an ISO instant, or `undefined` for one that does not parse. */\nfunction instantMs(value: string | undefined): number | undefined {\n if (value === undefined) return undefined;\n const ms = Date.parse(value);\n return Number.isFinite(ms) ? ms : undefined;\n}\n\n/**\n * Split one attempt's time into the wait for its dispatch and its run.\n *\n * The wait runs from the slot's preparation start (else the row's opening, a floor) to admission; the run from\n * admission to settling. An attempt that was never admitted spent all its time waiting: it is a selection that never\n * became a run, and that time is exactly the gap #3206 could not see. An attempt parked on a question ends where it\n * parked: the time since is a person's, as a playbook run waiting on one is. Instants that disagree (an admission\n * recorded before its own preparation) are clamped rather than producing a negative duration. `undefined` when the\n * attempt carries no readable start.\n */\nexport function measureBuildAttempt(attempt: CreationJourneyBuildAttempt, nowMs: number): BuildAttemptTiming | undefined {\n const preparationMs = instantMs(attempt.preparationStartedAt);\n const selectedMs = instantMs(attempt.selectedAt);\n const waitFromMs = preparationMs ?? selectedMs;\n if (waitFromMs === undefined) return undefined;\n const measuredFrom = preparationMs !== undefined ? BuildDispatchWaitMeasuredFrom.PREPARATION : BuildDispatchWaitMeasuredFrom.SELECTION;\n const settledMs = instantMs(attempt.settledAt);\n const parkedMs = settledMs === undefined ? instantMs(attempt.waitingOnPersonSince) : undefined;\n const waitingOnPerson = parkedMs !== undefined;\n const inFlight = settledMs === undefined && !waitingOnPerson;\n const endedAtMs = Math.max(waitFromMs, settledMs ?? parkedMs ?? nowMs);\n const admittedMs = instantMs(attempt.admittedAt);\n if (admittedMs === undefined) {\n return { startedAtMs: waitFromMs, endedAtMs, dispatchWaitMs: endedAtMs - waitFromMs, runMs: 0, measuredFrom, inFlight, waitingOnPerson };\n }\n const admittedClampedMs = Math.min(Math.max(admittedMs, waitFromMs), endedAtMs);\n return {\n startedAtMs: waitFromMs,\n endedAtMs,\n dispatchWaitMs: admittedClampedMs - waitFromMs,\n runMs: endedAtMs - admittedClampedMs,\n measuredFrom,\n inFlight,\n waitingOnPerson,\n };\n}\n\n/**\n * Which phase each playbook ref is the work of: every ref a lane's choreography admits, transitively, and the lane\n * itself. A ref two lanes admit is placed in NEITHER and reported: its row names no lane (a nested run records only\n * its tree's root, the umbrella), so placing it would be a guess. One since 2026-11-06: `top_down.expert-personas`, which\n * the conception lane staffs with and the build lane re-runs when a panel's charters go stale (#3204).\n */\nexport function classifyPlaybookRefsByJourneyPhase(admitsOf: (ref: string) => readonly string[]): {\n readonly phaseOf: ReadonlyMap<string, CreationJourneyPhase>;\n readonly ambiguousPlaybookRefs: readonly string[];\n} {\n const lanesOf = new Map<string, CreationJourneyPhase[]>();\n for (const phase of CREATION_JOURNEY_PHASE_ORDER) {\n const seen = new Set<string>();\n const pending = [CREATION_JOURNEY_PHASE_LANE_REFS[phase]];\n while (pending.length > 0) {\n const ref = pending.pop()!;\n if (seen.has(ref)) continue;\n seen.add(ref);\n pending.push(...admitsOf(ref));\n }\n for (const ref of seen) lanesOf.set(ref, [...(lanesOf.get(ref) ?? []), phase]);\n }\n const phaseOf = new Map<string, CreationJourneyPhase>();\n const ambiguousPlaybookRefs: string[] = [];\n for (const [ref, phases] of lanesOf) {\n if (phases.length === 1) phaseOf.set(ref, phases[0]!);\n else ambiguousPlaybookRefs.push(ref);\n }\n return { phaseOf, ambiguousPlaybookRefs: ambiguousPlaybookRefs.sort() };\n}\n\n/** A span being accumulated. */\ninterface SpanAccumulator {\n startMs?: number;\n endMs?: number;\n inFlight: boolean;\n waitingOnPerson: boolean;\n playbookRuns: number;\n researchTurns: number;\n buildAttempts: number;\n}\n\nfunction widen(span: SpanAccumulator, startMs: number, endMs: number): void {\n span.startMs = span.startMs === undefined ? startMs : Math.min(span.startMs, startMs);\n span.endMs = span.endMs === undefined ? endMs : Math.max(span.endMs, endMs);\n}\n\n/** Whether a row still has work under way: PENDING (selected, not started) or PROCESSING. */\nfunction isUnderWay(status: FlowsActors_Status): boolean {\n return status === FlowsActors_Status.PENDING || status === FlowsActors_Status.PROCESSING;\n}\n\n/**\n * The window of one playbook run: its row's creation to its finish. One still under way ends at the read's instant;\n * one waiting on a person ends where it began waiting (time spent waiting for an answer is the person's, and the\n * phase is marked as waiting rather than stretched to now).\n */\nfunction playbookRunWindow(run: CreationJourneyPlaybookRun, nowMs: number): { startMs: number; endMs: number; inFlight: boolean; waitingOnPerson: boolean } | undefined {\n const startMs = instantMs(run.startedAt);\n if (startMs === undefined) return undefined;\n if (isUnderWay(run.status)) return { startMs, endMs: Math.max(startMs, nowMs), inFlight: true, waitingOnPerson: false };\n if (run.status === FlowsActors_Status.AWAITING_APPROVAL) {\n return { startMs, endMs: Math.max(startMs, instantMs(run.suspendedAt) ?? startMs), inFlight: false, waitingOnPerson: true };\n }\n return { startMs, endMs: Math.max(startMs, instantMs(run.finishedAt) ?? startMs), inFlight: false, waitingOnPerson: false };\n}\n\n/**\n * Derive the timeline: each phase's first start to its last settle, the wall clock over everything, and the\n * {@link CREATION_JOURNEY_SLOWEST_BUILD_TASK_COUNT} build tasks with the most wait plus run time.\n *\n * The BUILD phase's span covers its lane's playbook runs AND every build-task attempt, whoever started it: a single-task\n * dispatch (`wildo build run --single`, the workbench, a named run) starts no build-lane playbook, and its runs are\n * still the build. The wall clock covers every playbook run (a phase's or not) and every attempt.\n *\n * A run a companion restart ended is measured to that restart, because no row records when it really stopped: a build\n * attempt says so on its task line, and a playbook run cannot, so a phase that a restart interrupted may run long.\n */\nexport function deriveCreationJourneyTimeline(input: {\n readonly now: Date;\n readonly playbookRuns: readonly CreationJourneyPlaybookRun[];\n /**\n * Completed research turns (#3896), from their evidence records: a research child writes no playbook-run row, so a phase\n * whose first work is research would otherwise start at its first OTHER run. Absent means none were read.\n */\n readonly researchTurns?: readonly { readonly playbookRef: string; readonly startedAt: string; readonly elapsedMs: number }[];\n readonly buildAttempts: readonly CreationJourneyBuildAttempt[];\n readonly phaseOf: ReadonlyMap<string, CreationJourneyPhase>;\n readonly ambiguousPlaybookRefs: readonly string[];\n /** The accepted build plan's graph, carried through for a budget reader; NULL when there is none or it is unreadable. */\n readonly buildPlanGraph: readonly CreationJourney_BuildPlanTask[] | null;\n readonly notChecked: readonly string[];\n}): CreationJourney_Timeline {\n const nowMs = input.now.getTime();\n const spans = new Map<CreationJourneyPhase, SpanAccumulator>(\n CREATION_JOURNEY_PHASE_ORDER.map((phase) => [phase, { inFlight: false, waitingOnPerson: false, playbookRuns: 0, researchTurns: 0, buildAttempts: 0 }]),\n );\n const wall: SpanAccumulator = { inFlight: false, waitingOnPerson: false, playbookRuns: 0, researchTurns: 0, buildAttempts: 0 };\n let outsidePhasePlaybookRuns = 0;\n\n for (const run of input.playbookRuns) {\n const window = playbookRunWindow(run, nowMs);\n if (window === undefined) continue;\n widen(wall, window.startMs, window.endMs);\n wall.inFlight ||= window.inFlight;\n const phase = input.phaseOf.get(run.playbookRef);\n if (phase === undefined) {\n outsidePhasePlaybookRuns += 1;\n continue;\n }\n const span = spans.get(phase)!;\n widen(span, window.startMs, window.endMs);\n span.inFlight ||= window.inFlight;\n span.waitingOnPerson ||= window.waitingOnPerson;\n span.playbookRuns += 1;\n }\n\n // A research turn widens its phase like a playbook run does, and the wall clock with it (#3896). Never in flight: only\n // a completed turn writes its record.\n for (const turn of input.researchTurns ?? []) {\n const startMs = instantMs(turn.startedAt);\n if (startMs === undefined) continue;\n const endMs = startMs + Math.max(0, turn.elapsedMs);\n widen(wall, startMs, endMs);\n const phase = input.phaseOf.get(turn.playbookRef);\n if (phase === undefined) continue;\n const span = spans.get(phase)!;\n widen(span, startMs, endMs);\n span.researchTurns += 1;\n }\n\n const byTask = new Map<string, {\n attempts: number; dispatchWaitMs: number; runMs: number; fromSelection: boolean; inFlight: boolean; waitingOnPerson: boolean;\n endedByCompanionRestart: boolean; generationStep: boolean;\n }>();\n const build = spans.get(CreationJourneyPhase.BUILD)!;\n const attemptTimings: { readonly startedAtMs: number; readonly entry: CreationJourney_BuildAttemptTiming }[] = [];\n for (const attempt of input.buildAttempts) {\n const timing = measureBuildAttempt(attempt, nowMs);\n if (timing === undefined) continue;\n /*\n * The same split as the task totals below, per attempt (#3204's budget): a p95 is a statement about attempts, and a\n * task's sum over several attempts would hide a fast retry behind a slow first run. The admission instant is the\n * clamped one the split used, so `startedAt + dispatchWaitMs` is always `admittedAt`.\n */\n const admittedAtMs = instantMs(attempt.admittedAt) === undefined ? undefined : timing.startedAtMs + timing.dispatchWaitMs;\n attemptTimings.push({\n startedAtMs: timing.startedAtMs,\n entry: {\n taskRef: attempt.taskRef,\n startedAt: new Date(timing.startedAtMs).toISOString(),\n ...(admittedAtMs !== undefined ? { admittedAt: new Date(admittedAtMs).toISOString() } : {}),\n endedAt: new Date(timing.endedAtMs).toISOString(),\n dispatchWaitMs: timing.dispatchWaitMs,\n runMs: timing.runMs,\n dispatchWaitMeasuredFrom: timing.measuredFrom,\n inFlight: timing.inFlight,\n waitingOnPerson: timing.waitingOnPerson,\n endedByCompanionRestart: attempt.endedByCompanionRestart,\n generationStep: attempt.generationStep,\n },\n });\n widen(build, timing.startedAtMs, timing.endedAtMs);\n widen(wall, timing.startedAtMs, timing.endedAtMs);\n build.inFlight ||= timing.inFlight;\n build.waitingOnPerson ||= timing.waitingOnPerson;\n wall.inFlight ||= timing.inFlight;\n build.buildAttempts += 1;\n const task = byTask.get(attempt.taskRef) ?? {\n attempts: 0, dispatchWaitMs: 0, runMs: 0, fromSelection: false, inFlight: false, waitingOnPerson: false, endedByCompanionRestart: false, generationStep: false,\n };\n task.attempts += 1;\n task.dispatchWaitMs += timing.dispatchWaitMs;\n task.runMs += timing.runMs;\n task.fromSelection ||= timing.measuredFrom === BuildDispatchWaitMeasuredFrom.SELECTION;\n task.inFlight ||= timing.inFlight;\n task.waitingOnPerson ||= timing.waitingOnPerson;\n task.endedByCompanionRestart ||= attempt.endedByCompanionRestart;\n task.generationStep ||= attempt.generationStep;\n byTask.set(attempt.taskRef, task);\n }\n\n const phases: CreationJourney_PhaseSpan[] = CREATION_JOURNEY_PHASE_ORDER.map((phase) => {\n const span = spans.get(phase)!;\n const ran = span.startMs !== undefined && span.endMs !== undefined;\n return {\n phase,\n laneRef: CREATION_JOURNEY_PHASE_LANE_REFS[phase],\n ...(ran ? { startedAt: new Date(span.startMs!).toISOString(), endedAt: new Date(span.endMs!).toISOString(), durationMs: span.endMs! - span.startMs! } : {}),\n inFlight: span.inFlight,\n waitingOnPerson: span.waitingOnPerson,\n playbookRuns: span.playbookRuns,\n researchTurns: span.researchTurns,\n buildAttempts: span.buildAttempts,\n };\n });\n\n const slowestBuildTasks: CreationJourney_SlowBuildTask[] = [...byTask]\n .map(([taskRef, task]) => ({\n taskRef,\n attempts: task.attempts,\n dispatchWaitMs: task.dispatchWaitMs,\n runMs: task.runMs,\n totalMs: task.dispatchWaitMs + task.runMs,\n dispatchWaitMeasuredFrom: task.fromSelection ? BuildDispatchWaitMeasuredFrom.SELECTION : BuildDispatchWaitMeasuredFrom.PREPARATION,\n inFlight: task.inFlight,\n waitingOnPerson: task.waitingOnPerson,\n endedByCompanionRestart: task.endedByCompanionRestart,\n generationStep: task.generationStep,\n }))\n .sort((left, right) => right.totalMs - left.totalMs || left.taskRef.localeCompare(right.taskRef))\n .slice(0, CREATION_JOURNEY_SLOWEST_BUILD_TASK_COUNT);\n\n return {\n generatedAt: input.now.toISOString(),\n wallClock: wall.startMs === undefined || wall.endMs === undefined ? null : {\n startedAt: new Date(wall.startMs).toISOString(),\n endedAt: new Date(wall.endMs).toISOString(),\n durationMs: wall.endMs - wall.startMs,\n inFlight: wall.inFlight,\n },\n phases,\n slowestBuildTasks,\n attemptedBuildTasks: byTask.size,\n buildAttemptTimings: attemptTimings\n .sort((left, right) => left.startedAtMs - right.startedAtMs || left.entry.taskRef.localeCompare(right.entry.taskRef))\n .map(({ entry }) => entry),\n buildPlanGraph: input.buildPlanGraph === null ? null : input.buildPlanGraph.map((task) => ({ taskRef: task.taskRef, prerequisiteTaskRefs: [...task.prerequisiteTaskRefs] })),\n outsidePhasePlaybookRuns,\n ambiguousPlaybookRefs: [...input.ambiguousPlaybookRefs],\n notChecked: [...input.notChecked],\n };\n}\n"]}
|
|
@@ -28,7 +28,7 @@ import { type BuildTaskInterference, type BuildTaskLandedOverride, type BuildTas
|
|
|
28
28
|
import { ApplicationBuildGenerationStepCompanionService, type ApplicationBuildGenerationStepRunResult, GenerationStepFailureOwner } from './application-build-generation-step.companion.service';
|
|
29
29
|
import { type BuildTaskLandingAdvisory, type BuildPlanTaskLandedProbe } from './application-build-task-coding-policy.companion.service';
|
|
30
30
|
import { BuildTaskDecisionsStanding, type BuildFollowUpApproval, type BuildTaskClosure } from './application-build-task-closure.companion';
|
|
31
|
-
import { type OpenReportedGap } from './application-build-follow-up-derivation.companion';
|
|
31
|
+
import { type OpenReportedGap, type FollowUpGap } from './application-build-follow-up-derivation.companion';
|
|
32
32
|
import { type AssemblyCheckFailure, type AssemblyRepairWithheldReason } from './application-assembly-repair.companion.utils';
|
|
33
33
|
export declare class ApplicationBuildPlanUnavailableError extends Error {
|
|
34
34
|
}
|
|
@@ -485,10 +485,22 @@ export interface ApplicationBuildTaskRecord {
|
|
|
485
485
|
/**
|
|
486
486
|
* The follow-up tasks the host derived from this task's reported unmet requirements (#2496), as the plan carries them.
|
|
487
487
|
* Named here so a reader never has to restate the derivation: absent means none was derived, whatever the attempts say.
|
|
488
|
+
* Includes a follow-up that carries this task's report among others' (#3204).
|
|
488
489
|
*/
|
|
489
490
|
readonly followUpTaskRefs?: readonly string[];
|
|
490
491
|
/** Present on a follow-up task: the task whose reported gap derived it (#2496). */
|
|
491
492
|
readonly followUpOf?: string;
|
|
493
|
+
/**
|
|
494
|
+
* On a derived follow-up whose objective was derived: the reports a decision on it would cover NOW (#3833), each with
|
|
495
|
+
* the reference a person is shown (`followUpReportRefOf`) and what it said is missing. A decision may send back the
|
|
496
|
+
* references the person saw (`coveredReportRefs`), and is refused when the follow-up has absorbed another since.
|
|
497
|
+
*/
|
|
498
|
+
readonly coveredReports?: readonly {
|
|
499
|
+
readonly ref: string;
|
|
500
|
+
readonly originTaskRef: string;
|
|
501
|
+
readonly requirementRef: string;
|
|
502
|
+
readonly missing: string;
|
|
503
|
+
}[];
|
|
492
504
|
/**
|
|
493
505
|
* Landed by a person's committed closure, not by its own probe (#3224, #3227): what satisfied it, or that it was
|
|
494
506
|
* declined, and why. A reader must never take it for a proven product.
|
|
@@ -614,6 +626,14 @@ export interface ApplicationBuildTaskRecords {
|
|
|
614
626
|
*/
|
|
615
627
|
readonly repairsOwed: readonly ApplicationBuildRepairOwed[];
|
|
616
628
|
}
|
|
629
|
+
/**
|
|
630
|
+
* Every reported gap a decision on a follow-up covers, for the door's reply (#3832): one per line, with the task that
|
|
631
|
+
* reported it, so a decision that took in a report the person had not seen yet says so. For a follow-up whose objective
|
|
632
|
+
* was not matched, says it covers its own report only; empty for any other task.
|
|
633
|
+
*/
|
|
634
|
+
export declare function describeFollowUpDecisionCoverage(gaps: readonly FollowUpGap[], verb: 'closes' | 'lets run', taskRef: string): string;
|
|
635
|
+
/** The reporting tasks a follow-up decision covers beyond its own, for the commit's one-line summary (#3832). */
|
|
636
|
+
export declare function describeFollowUpDecisionOrigins(gaps: readonly FollowUpGap[]): string;
|
|
617
637
|
/**
|
|
618
638
|
* How far back the BUILD RECORD reads each coding system's runs (#2530): the record is every attempt at every task, and a
|
|
619
639
|
* window of the newest 200 is not that. On a long build that window held only the latest runs, so an early task attempted
|
|
@@ -751,21 +771,40 @@ export interface ApplicationBuildDispatchPlan {
|
|
|
751
771
|
/** Whether two write sets may touch one file: an equal path, or a path under the other's directory. */
|
|
752
772
|
export declare function productWritePathsMeet(left: readonly string[], right: readonly string[]): boolean;
|
|
753
773
|
/**
|
|
754
|
-
* Dispatches one wave call may make per slot before it returns
|
|
755
|
-
*
|
|
756
|
-
*
|
|
757
|
-
*
|
|
758
|
-
*
|
|
774
|
+
* Dispatches one wave call may make per slot before it returns: the outer bound, no longer the loop's only turn (#3884). A
|
|
775
|
+
* wave returns only once its live runs have drained, so each drain costs the tail of its slowest run: on reference run
|
|
776
|
+
* 43691253927 every drain at the former 8 per slot held about 20 minutes with 0 to 5 sessions running. The loop now asks for
|
|
777
|
+
* a yield when a playbook the wave holds back needs the turn (`YIELD_REQUESTED`, honoured from
|
|
778
|
+
* {@link WAVE_DISPATCHES_BEFORE_A_YIELD_PER_DEGREE}), and a held restart stops the filling on its own (`RESTART_PENDING`).
|
|
779
|
+
*
|
|
780
|
+
* Not higher (review M2), for two costs that grow with a wave: a run that failed its checks beside its siblings waits for
|
|
781
|
+
* the wave's END to be re-checked alone (`AWAITING_ISOLATED_RECHECK`), its dependents with it; and every dispatch entry of
|
|
782
|
+
* the wave's result carries the plan's ready and landed lists. Raised from 4 to 8 with #3204, and to 16 with #3884.
|
|
783
|
+
*/
|
|
784
|
+
export declare const WAVE_DISPATCHES_PER_DEGREE = 16;
|
|
785
|
+
/**
|
|
786
|
+
* The dispatches per slot a wave starts before it honours a yield the loop asked for (#3884 review H2): the former cap, so a
|
|
787
|
+
* playbook the loop holds back but never chooses can shorten a wave to what it was before #3884, and no further.
|
|
759
788
|
*/
|
|
760
|
-
export declare const
|
|
789
|
+
export declare const WAVE_DISPATCHES_BEFORE_A_YIELD_PER_DEGREE = 8;
|
|
761
790
|
/** Why a wave stopped taking new tasks — it always still drains the runs already live. */
|
|
762
791
|
export declare enum ApplicationBuildWaveStop {
|
|
763
792
|
/** No task is ready and no run is live: the plan is done, blocked, or every ready task is stuck. */
|
|
764
793
|
NOTHING_READY = "nothing-ready",
|
|
765
794
|
/** The call reached its dispatch cap; the next call continues. */
|
|
766
795
|
DISPATCH_CAP = "dispatch-cap",
|
|
767
|
-
/**
|
|
796
|
+
/**
|
|
797
|
+
* The selection offered a generation step this wave had already run. It should be unreachable: since #3885 the selection
|
|
798
|
+
* passes over such a step (`ran_this_wave`) and the slots keep filling. It is kept as a backstop, because the fill's
|
|
799
|
+
* termination rests on that pass-over; without it a step whose landing stays unmet would be selected again forever.
|
|
800
|
+
*/
|
|
768
801
|
GENERATION_STEP_REPEATED = "generation-step-repeated",
|
|
802
|
+
/**
|
|
803
|
+
* The playbook loop asked the wave to yield (#3884): a playbook it holds back writes what the wave's lane writes, so the
|
|
804
|
+
* wave starts nothing more and drains, and that playbook runs at the wave's end. The yield the dispatch cap used to force
|
|
805
|
+
* every 8 dispatches per slot, whether or not anything was waiting.
|
|
806
|
+
*/
|
|
807
|
+
YIELD_REQUESTED = "yield-requested",
|
|
769
808
|
/** An admission was refused; the refusal is on the dispatch entry. */
|
|
770
809
|
DISPATCH_REFUSED = "dispatch-refused",
|
|
771
810
|
/**
|
|
@@ -1057,6 +1096,11 @@ export interface ApplicationBuildDispatchOrigin {
|
|
|
1057
1096
|
* survives a restart. Every door sets it; {@link dispatchBuildTask}'s caller may name an earlier one.
|
|
1058
1097
|
*/
|
|
1059
1098
|
readonly preparationStartedAt?: string;
|
|
1099
|
+
/**
|
|
1100
|
+
* For a derived follow-up: the gap keys its objective carried when it was selected (#3204), stamped on the run so what a
|
|
1101
|
+
* dispatched follow-up was given is recorded, never inferred.
|
|
1102
|
+
*/
|
|
1103
|
+
readonly carriedFollowUpGapKeys?: readonly string[];
|
|
1060
1104
|
}
|
|
1061
1105
|
/** A NAMED selection, and — for a task that reads landed — the operator's override of that landing (#2217). */
|
|
1062
1106
|
export interface ApplicationBuildTaskSelection {
|
|
@@ -1300,12 +1344,21 @@ export declare class ApplicationBuildDispatchCompanionService {
|
|
|
1300
1344
|
private landingKeyRead;
|
|
1301
1345
|
/** How many landing-key reads have started; see {@link readLandingSourceKey}. */
|
|
1302
1346
|
private landingKeyReadSequence;
|
|
1303
|
-
/**
|
|
1304
|
-
|
|
1347
|
+
/**
|
|
1348
|
+
* The slots being prepared right now (#3206), oldest first: a wave prepares several at once since #3883. Built on first use,
|
|
1349
|
+
* because some harnesses build this service through its prototype and skip field initializers.
|
|
1350
|
+
*/
|
|
1351
|
+
private openBuildPreparations;
|
|
1305
1352
|
/** The last preparation that ended, with each step's duration. */
|
|
1306
1353
|
private lastBuildPreparation;
|
|
1307
1354
|
/** When `wildo build stop` asked the running wave to stop (#3206); cleared when the wave ends. */
|
|
1308
1355
|
private buildWaveStopRequestedAt;
|
|
1356
|
+
/**
|
|
1357
|
+
* Why the playbook loop asked the running wave to YIELD (#3884), cleared when the wave ends: a playbook it holds back
|
|
1358
|
+
* because the wave's lane writes what it writes. Unlike a person's stop it holds nothing afterwards; the next wave fills
|
|
1359
|
+
* as usual once the held playbook has had its turn.
|
|
1360
|
+
*/
|
|
1361
|
+
private buildWaveYieldRequestedBecause;
|
|
1309
1362
|
/**
|
|
1310
1363
|
* The build HOLD a person's `wildo build stop` sets (#3206), kept after the wave it ended: while it is set no build
|
|
1311
1364
|
* wave or task starts unless a person's door released it first ({@link releaseBuildStopHold}) — not the choreography
|
|
@@ -1622,7 +1675,8 @@ export declare class ApplicationBuildDispatchCompanionService {
|
|
|
1622
1675
|
* `interference` memory entry).
|
|
1623
1676
|
*
|
|
1624
1677
|
* Bounded per call: at most {@link WAVE_DISPATCHES_PER_DEGREE} dispatches per slot, and a generation
|
|
1625
|
-
* step at most once — a step whose landing stays unmet
|
|
1678
|
+
* step at most once — a step whose landing stays unmet is passed over as `ran_this_wave` for the rest of the call,
|
|
1679
|
+
* and the slots keep filling with the ready coding tasks (#3885). The
|
|
1626
1680
|
* interference re-runs are outside that cap, bounded per task by `MAXIMUM_INTERFERENCE_REARMS` and at most
|
|
1627
1681
|
* one per completed run of this wave. The next call continues from wherever the build stands.
|
|
1628
1682
|
*
|
|
@@ -1654,6 +1708,12 @@ export declare class ApplicationBuildDispatchCompanionService {
|
|
|
1654
1708
|
readonly waveStartedAt?: string;
|
|
1655
1709
|
readonly requestedAt?: string;
|
|
1656
1710
|
};
|
|
1711
|
+
/**
|
|
1712
|
+
* Ask the build wave to yield (#3884): once it has dispatched {@link WAVE_DISPATCHES_BEFORE_A_YIELD_PER_DEGREE} per slot,
|
|
1713
|
+
* it starts nothing more, drains and returns, so a playbook the loop holds back because of it can run. Idempotent. A
|
|
1714
|
+
* request made before the wave starts applies to it; every request is cleared when a wave ends.
|
|
1715
|
+
*/
|
|
1716
|
+
requestBuildWaveYield(because: string): void;
|
|
1657
1717
|
/** The generation steps held because their panel refused stale expert charters (#3204); empty when none is. */
|
|
1658
1718
|
readStaleExpertChartersHold(): readonly StaleExpertChartersHeld[];
|
|
1659
1719
|
/** The staffing step derived the charters again (#3204): every held step is offered again. */
|
|
@@ -1688,7 +1748,7 @@ export declare class ApplicationBuildDispatchCompanionService {
|
|
|
1688
1748
|
/** Refuse an unattended start while a person's stop holds the build (#3206). */
|
|
1689
1749
|
assertBuildNotHeldByStop(): void;
|
|
1690
1750
|
/**
|
|
1691
|
-
* What the build lane is doing right now between slots (#3206): the running wave, the preparation of its
|
|
1751
|
+
* What the build lane is doing right now between slots (#3206): the running wave, the preparation of its oldest slot
|
|
1692
1752
|
* ("selected X, preparing dispatch since T (step)"), a requested stop, and the last preparation that ended with each
|
|
1693
1753
|
* step's duration. Read by `GET /build/dispatches` and the creation feed.
|
|
1694
1754
|
*/
|
|
@@ -1697,9 +1757,13 @@ export declare class ApplicationBuildDispatchCompanionService {
|
|
|
1697
1757
|
readonly stopRequestedAt: string | null;
|
|
1698
1758
|
/** A person's stop holds the build (#3206): nothing starts on its own until a person runs `wildo build run`. */
|
|
1699
1759
|
readonly heldByStopSince: string | null;
|
|
1760
|
+
/** The OLDEST slot being prepared: the longest wait, the one a person asks about (#3883). */
|
|
1700
1761
|
readonly preparing: (ApplicationBuildPreparation & {
|
|
1701
1762
|
readonly summary: string;
|
|
1702
1763
|
}) | null;
|
|
1764
|
+
/** How many slots are being prepared at once (#3883); 0 when none is. */
|
|
1765
|
+
readonly preparingCount: number;
|
|
1766
|
+
/** The last preparation to END, with each step's duration: with slots prepared at once, not the last one started. */
|
|
1703
1767
|
readonly lastPreparation: ApplicationBuildPreparation | null;
|
|
1704
1768
|
};
|
|
1705
1769
|
private openBuildPreparation;
|
|
@@ -1716,6 +1780,7 @@ export declare class ApplicationBuildDispatchCompanionService {
|
|
|
1716
1780
|
*/
|
|
1717
1781
|
assertNoBuildWaveInFlight(): void;
|
|
1718
1782
|
private runBuildWave;
|
|
1783
|
+
private runBuildWaveFilling;
|
|
1719
1784
|
/**
|
|
1720
1785
|
* Why the build lane holds dispatch right now (#3215): the very read the wave makes before every slot, exposed so the
|
|
1721
1786
|
* creation feed names the boot error while nothing is dispatched, instead of a wave that pauses in silence.
|
|
@@ -1733,6 +1798,12 @@ export declare class ApplicationBuildDispatchCompanionService {
|
|
|
1733
1798
|
* operation 'import_customers' not found` and two lifecycle verbs with no `requestDto`, each a build task's code, with
|
|
1734
1799
|
* the remedy "wildo build run <taskRef>" addressed to a person nobody had told which task.
|
|
1735
1800
|
*/
|
|
1801
|
+
/**
|
|
1802
|
+
* The repair of a start the application's own code refused, prepared as an assembly repair of `check:backend-ready`, or
|
|
1803
|
+
* `undefined` when none is owed or allowed (no code fixes the failure, the round's repairs are spent, a usage-limit hold,
|
|
1804
|
+
* a person's stop). Shared by the repair at the wave's end and the one started beside live runs (#3880).
|
|
1805
|
+
*/
|
|
1806
|
+
private prepareStartupRepair;
|
|
1736
1807
|
private repairRefusedStartup;
|
|
1737
1808
|
/**
|
|
1738
1809
|
* The application backends whose last start failed and still describe the tree (#2405), read from the backends' own
|
|
@@ -1911,7 +1982,13 @@ export declare class ApplicationBuildDispatchCompanionService {
|
|
|
1911
1982
|
* is legitimately re-runnable.
|
|
1912
1983
|
*/
|
|
1913
1984
|
private classifyStuckBuildTask;
|
|
1985
|
+
/**
|
|
1986
|
+
* Select the next task and compose what its run needs. A thin door over {@link selectAndComposeNextBuildTask}: when the
|
|
1987
|
+
* selection RESERVED a task for the wave (#3883) and composing it then throws, the reservation is released here, since
|
|
1988
|
+
* the caller never learns which task it was.
|
|
1989
|
+
*/
|
|
1914
1990
|
private prepareNextBuildTask;
|
|
1991
|
+
private selectAndComposeNextBuildTask;
|
|
1915
1992
|
/**
|
|
1916
1993
|
* Which tasks have landed, read from GIT.
|
|
1917
1994
|
*
|
|
@@ -2079,6 +2156,7 @@ export declare class ApplicationBuildDispatchCompanionService {
|
|
|
2079
2156
|
readonly satisfiedBy?: string;
|
|
2080
2157
|
readonly declined?: boolean;
|
|
2081
2158
|
readonly reason: string;
|
|
2159
|
+
readonly coveredReportRefs?: readonly string[];
|
|
2082
2160
|
}, actor: DecisionRecordActor): Promise<{
|
|
2083
2161
|
readonly closure: BuildTaskClosure;
|
|
2084
2162
|
readonly commitSha?: string;
|
|
@@ -2093,6 +2171,7 @@ export declare class ApplicationBuildDispatchCompanionService {
|
|
|
2093
2171
|
*/
|
|
2094
2172
|
approveFollowUpTask(taskRef: string, request: {
|
|
2095
2173
|
readonly note?: string;
|
|
2174
|
+
readonly coveredReportRefs?: readonly string[];
|
|
2096
2175
|
}, actor: DecisionRecordActor): Promise<{
|
|
2097
2176
|
readonly approval: BuildFollowUpApproval;
|
|
2098
2177
|
readonly commitSha?: string;
|
|
@@ -2114,6 +2193,16 @@ export declare class ApplicationBuildDispatchCompanionService {
|
|
|
2114
2193
|
readonly taskRef: string;
|
|
2115
2194
|
readonly unmetRequirements: readonly ApplicationCodingUnmetRequirement[];
|
|
2116
2195
|
}[]>;
|
|
2196
|
+
/**
|
|
2197
|
+
* The reported gaps only a person's decision can close (#3886): what the creation home's ASKED line names. Read from the
|
|
2198
|
+
* follow-up derivation the plan appended, so Home and the plan agree about which gaps wait on a decision; a later run of
|
|
2199
|
+
* the reporting task that no longer reports it removes it. `[]` with no build plan, or when the runs cannot be listed.
|
|
2200
|
+
*/
|
|
2201
|
+
readGapsAwaitingDecision(): Promise<readonly {
|
|
2202
|
+
readonly taskRef: string;
|
|
2203
|
+
readonly requirementRef: string;
|
|
2204
|
+
readonly decision: string;
|
|
2205
|
+
}[]>;
|
|
2117
2206
|
/**
|
|
2118
2207
|
* The LANDED tasks carrying a landing advisory (#3285), each with its advisories: what the creation home's advisory
|
|
2119
2208
|
* line names. The same derivation the task records make (`resolveBuildTaskLandingAdvisories` over the committed
|
|
@@ -2655,9 +2744,10 @@ export declare class ApplicationBuildDispatchCompanionService {
|
|
|
2655
2744
|
*/
|
|
2656
2745
|
private fetchLatestCompletedCodingRuns;
|
|
2657
2746
|
/**
|
|
2658
|
-
* The follow-up tasks the requirements COMPLETED coding runs reported still unmet derive (#2496, #3227), appended
|
|
2659
|
-
* plan. The derivation is {@link deriveBuildPlanFollowUpTasks}:
|
|
2660
|
-
*
|
|
2747
|
+
* The follow-up tasks the requirements COMPLETED coding runs reported still unmet derive (#2496, #3227, #3204), appended
|
|
2748
|
+
* to the plan. The derivation is {@link deriveBuildPlanFollowUpTasks}: every requirement a run reported folded into one
|
|
2749
|
+
* follow-up, a follow-up not dispatched yet absorbing every later report on its target, each with a stable identity,
|
|
2750
|
+
* chained to the follow-up before it on the same target.
|
|
2661
2751
|
*
|
|
2662
2752
|
* 005's workers wrote "office/field access is only partly met" and "the roles do nothing yet … it still needs its own
|
|
2663
2753
|
* work" into closing reports that every run was accepted on, and no later task, coherence entry or judge picked any of
|
|
@@ -2669,23 +2759,64 @@ export declare class ApplicationBuildDispatchCompanionService {
|
|
|
2669
2759
|
*/
|
|
2670
2760
|
private withHostDerivedFollowUpTasks;
|
|
2671
2761
|
private followUpDerivationMemo;
|
|
2762
|
+
/**
|
|
2763
|
+
* The gap keys each derived follow-up carries, by `<ref>\u0000<objective>` (#3204): looked up by the objective a dispatch
|
|
2764
|
+
* selected, and stamped on the run, so what a dispatched follow-up carried is RECORDED rather than inferred. An objective
|
|
2765
|
+
* is a function of its gaps, so a lookup that misses records nothing, and the follow-up then carries its own report only
|
|
2766
|
+
* (a report it held is carried again by the next follow-up: one run too many, never a gap nobody was told about).
|
|
2767
|
+
*/
|
|
2768
|
+
private readonly carriedFollowUpGapKeys;
|
|
2769
|
+
/**
|
|
2770
|
+
* The follow-up derivation the plan read APPENDED, for these runs (#3204 review N6): read again when the last plan read
|
|
2771
|
+
* was over other runs, so a reader always answers from what the plan holds. Derived without the plan only if even that
|
|
2772
|
+
* read answers for other runs (the listing moved in between), which cannot name a refused follow-up but never hides a gap.
|
|
2773
|
+
*/
|
|
2774
|
+
private readFollowUpDerivation;
|
|
2775
|
+
/** Every origin whose report a follow-up carries, as the last plan read appended it (#3204); undefined before any read. */
|
|
2776
|
+
private followUpOriginTaskRefs;
|
|
2777
|
+
/**
|
|
2778
|
+
* What a decision on a derived follow-up covers (#3832): the gaps its objective carries AT THE DECISION, recorded on the
|
|
2779
|
+
* decision so the follow-up carries exactly those from then on. Nothing for a task that is not a follow-up, or whose
|
|
2780
|
+
* objective was never derived (the follow-up then stays fixed to its own report).
|
|
2781
|
+
*
|
|
2782
|
+
* A pending follow-up keeps absorbing reports until it is decided, so this can hold a report that arrived after the person
|
|
2783
|
+
* last looked (review of #3832). A caller sends the reports it displayed (`coveredReportRefs`), and the door refuses a
|
|
2784
|
+
* decision that sends none or covers one more ({@link refuseFollowUpReportsNotDisplayed}, #3833). It also NAMES every report it covers, in
|
|
2785
|
+
* its reply and in the decision commit's summary, so one revert undoes it.
|
|
2786
|
+
*/
|
|
2787
|
+
private decidedFollowUpCoverage;
|
|
2788
|
+
/** The carried gap keys of the follow-up a dispatch selected (#3204), for its run's input. */
|
|
2789
|
+
private withCarriedFollowUpGaps;
|
|
2672
2790
|
private deriveFollowUpTaskGraph;
|
|
2673
2791
|
/**
|
|
2674
2792
|
* The follow-up derivation over a plan and the latest completed runs (#2496, #3227): one function for every reader.
|
|
2675
2793
|
*
|
|
2676
2794
|
* A gap a later run STATED met is dropped only once this host confirms two things the pure candidates cannot know
|
|
2677
2795
|
* ({@link collectFollowUpGapsMetSince}): the stating run LANDED, meaning every file its write record holds as its own is
|
|
2678
|
-
* committed (a statement about a tree whose work is still uncommitted is about a tree HEAD does not have), and
|
|
2679
|
-
* follow-up was
|
|
2680
|
-
*
|
|
2681
|
-
*
|
|
2796
|
+
* committed (a statement about a tree whose work is still uncommitted is about a tree HEAD does not have), and no
|
|
2797
|
+
* follow-up holding the gap was ever attempted, in any state: neither its own report's, nor the one that absorbed it
|
|
2798
|
+
* (#3204), since a follow-up the build ran or is running keeps what it was given (#2530). Both are read only when a
|
|
2799
|
+
* candidate exists, so a plan with no met statement costs nothing extra. Anything this cannot read keeps the gap: an
|
|
2800
|
+
* unknown is not a statement that it is met.
|
|
2682
2801
|
*/
|
|
2683
2802
|
private deriveFollowUps;
|
|
2684
2803
|
/**
|
|
2685
|
-
*
|
|
2686
|
-
*
|
|
2804
|
+
* What decides which reports a follow-up absorbs (#3204), cached like {@link readLatestCompletedCodingRuns}, which every
|
|
2805
|
+
* plan read also makes:
|
|
2806
|
+
*
|
|
2807
|
+
* - `dispatched`: every build task with ANY coding run in the history, whatever its state, with the gap keys its runs
|
|
2808
|
+
* recorded at dispatch (`carriedFollowUpGapKeys`). Also the attempted set the met-since confirmation reads (#2530).
|
|
2809
|
+
* - `decided`: every task the COMMITTED build-task decisions name (a closure, a follow-up approval), with the gap keys
|
|
2810
|
+
* the decision recorded (#3832), read without asking whether they are honoured: a follow-up a person decided on, or
|
|
2811
|
+
* that an unread decision may name, absorbs nothing more than the decision covered.
|
|
2812
|
+
*
|
|
2813
|
+
* `undefined` when either cannot be read whole (the listing failed or reached its ceiling, the decisions do not parse):
|
|
2814
|
+
* a dispatch outside the window would read as never made, so every caller derives as if nothing were absorbed or
|
|
2815
|
+
* confirmed met.
|
|
2687
2816
|
*/
|
|
2688
|
-
private
|
|
2817
|
+
private readFollowUpAbsorptionInputs;
|
|
2818
|
+
private followUpAbsorptionInputs;
|
|
2819
|
+
private fetchFollowUpAbsorptionInputs;
|
|
2689
2820
|
/**
|
|
2690
2821
|
* Which completed coding runs LANDED (#3227): their write record exists. Since #3204 a task lands on the WORKING tree, so
|
|
2691
2822
|
* what a completed run wrote reached the tree the moment it settled, and a gap it states as met counts from then; it used
|