@wildo-ai/dev-companion 1.1.13 → 1.1.14
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 +21 -0
- 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 +37 -4
- package/dist/esm/claude-cli/models/coding-agent-dispatch.models.js.map +1 -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 +9 -2
- 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 +66 -0
- 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 +183 -7
- 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/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/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/services/start-companion-application.service.d.ts.map +1 -1
- package/dist/esm/core/runtime/services/start-companion-application.service.js +3 -2
- package/dist/esm/core/runtime/services/start-companion-application.service.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/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_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/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/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 +1 -0
- package/dist/esm/i18n/system_enums/workbench-build.en.d.ts.map +1 -1
- package/dist/esm/i18n/system_enums/workbench-build.en.js +1 -0
- 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/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/services/application-build-dispatch.companion.service.d.ts +120 -16
- 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 +875 -191
- 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 +102 -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 +243 -57
- 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/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/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 +1 -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 +38 -21
- package/dist/esm/meta-workflows/services/playbook-run.companion.service.js.map +1 -1
- package/package.json +18 -18
package/dist/esm/meta-workflows/services/application-build-follow-up-derivation.companion.d.ts
CHANGED
|
@@ -72,6 +72,10 @@ export interface FollowUpGap {
|
|
|
72
72
|
readonly reportingRunTaskId: string;
|
|
73
73
|
readonly requirementRef: string;
|
|
74
74
|
readonly missing: string;
|
|
75
|
+
/** The planned task whose own work is missing, as the report named it (#3886): its follow-up waits for that task. */
|
|
76
|
+
readonly ownedByTaskRef?: string;
|
|
77
|
+
/** The decision a person must make first, as the report named it (#3886): no follow-up, the gap goes to ASKED. */
|
|
78
|
+
readonly needsDecision?: string;
|
|
75
79
|
}
|
|
76
80
|
/** A reported gap the derivation did not turn into a follow-up, and why, so the log can say it. */
|
|
77
81
|
export interface FollowUpGapNotDerived extends FollowUpGap {
|
|
@@ -91,12 +95,27 @@ export declare enum FollowUpGapNotDerivedReason {
|
|
|
91
95
|
* eleven follow-ups changed nothing, their workers saying another task had already met the gap, at about 20 minutes of
|
|
92
96
|
* selection and a run each. Only that positive statement drops a gap; silence and a malformed block never do.
|
|
93
97
|
*/
|
|
94
|
-
MET_SINCE = "MET_SINCE"
|
|
98
|
+
MET_SINCE = "MET_SINCE",
|
|
99
|
+
/**
|
|
100
|
+
* The follow-up that would carry it could not join the plan (#3204): its ref already names a task, or the plan refused
|
|
101
|
+
* it. Recorded so the gap still reads OPEN, with no follow-up, rather than falling out of every reading.
|
|
102
|
+
*/
|
|
103
|
+
FOLLOW_UP_NOT_APPENDED = "FOLLOW_UP_NOT_APPENDED",
|
|
104
|
+
/**
|
|
105
|
+
* The report said a PERSON must decide something first (#3886: `needsDecision`): no coding task can close it, so none is
|
|
106
|
+
* derived. It stays OPEN, for the maturity reading and on the creation Home's ASKED section. On reference run 43691253927
|
|
107
|
+
* six follow-up runs changed nothing for this reason ("the creator must decide the RESOURCE_DATA retention period").
|
|
108
|
+
*/
|
|
109
|
+
AWAITS_DECISION = "AWAITS_DECISION"
|
|
95
110
|
}
|
|
96
111
|
/** A reported gap a later run states is met (#3227): the candidate a host may drop, once it has checked the run landed. */
|
|
97
112
|
export interface FollowUpGapMetSince {
|
|
98
113
|
readonly gap: FollowUpGap;
|
|
99
|
-
/**
|
|
114
|
+
/**
|
|
115
|
+
* The follow-up the gap's own report would derive: a host keeps the gap when that follow-up was ever attempted (#2530),
|
|
116
|
+
* and ALSO when the follow-up that carries it was (#3204: an absorbed gap is carried under another report's ref, so a
|
|
117
|
+
* host asks {@link FollowUpDerivation.followUpTaskRefFor} as well).
|
|
118
|
+
*/
|
|
100
119
|
readonly followUpTaskRef: string;
|
|
101
120
|
/** The task whose run stated it met. */
|
|
102
121
|
readonly metByTaskRef: string;
|
|
@@ -107,13 +126,55 @@ export interface FollowUpGapMetSince {
|
|
|
107
126
|
}
|
|
108
127
|
/** The key one gap is addressed by: its origin, its reporting run and its requirement. */
|
|
109
128
|
export declare function followUpGapKey(gap: Pick<FollowUpGap, 'originTaskRef' | 'reportingRunTaskId' | 'requirementRef'>): string;
|
|
129
|
+
/**
|
|
130
|
+
* The reference a PERSON is shown for one report a derived follow-up covers (#3833): `<requirementRef>@<originTaskRef>/<run>`,
|
|
131
|
+
* so `wildo build tasks` can list it and `wildo build close|approve --covers` can send back what was seen. It names the
|
|
132
|
+
* same three parts as {@link followUpGapKey}, so two reports never share one. The requirement ref and the run id come
|
|
133
|
+
* from a run's report and the plan, so each part is percent-encoded: the result never holds a comma (the CLI splits
|
|
134
|
+
* `--covers` on commas), whitespace, or a separator of its own (`@`, `/`). A task ref is already a slug.
|
|
135
|
+
*/
|
|
136
|
+
export declare function followUpReportRefOf(gap: Pick<FollowUpGap, 'originTaskRef' | 'reportingRunTaskId' | 'requirementRef'>): string;
|
|
110
137
|
/** One derived follow-up task, with every gap it answers. */
|
|
111
138
|
export interface DerivedFollowUp {
|
|
112
139
|
/** The task, chained after the follow-up before it on its target (see {@link chainFollowUpAfter}). */
|
|
113
140
|
readonly task: BuildPlanTask;
|
|
114
141
|
readonly gaps: readonly FollowUpGap[];
|
|
115
|
-
/**
|
|
142
|
+
/**
|
|
143
|
+
* Its CHAIN's identity: its target's, or its target's for one owner (#3886). The follow-ups sharing one are chained, in
|
|
144
|
+
* the order their reports settled.
|
|
145
|
+
*/
|
|
116
146
|
readonly targetKey: string;
|
|
147
|
+
/**
|
|
148
|
+
* What it waits on before the chain link: its first report's origin (`followUpOf` reads it), never every origin it
|
|
149
|
+
* carries (#3204). {@link chainFollowUpAfter} appends the follow-up before it on its target.
|
|
150
|
+
*/
|
|
151
|
+
readonly ownPrerequisiteTaskRefs: readonly string[];
|
|
152
|
+
/**
|
|
153
|
+
* The reports it absorbed, each as the follow-up it would be on its own (#3204): what the host appends instead when this
|
|
154
|
+
* one cannot join the plan (its ref already names a task, the plan refuses it), so an absorbed report is never lost
|
|
155
|
+
* with it. Empty when it carries only its own report.
|
|
156
|
+
*/
|
|
157
|
+
readonly absorbed: readonly Omit<DerivedFollowUp, 'absorbed'>[];
|
|
158
|
+
}
|
|
159
|
+
/**
|
|
160
|
+
* What the follow-ups the build already dispatched CARRIED (#3204): per dispatched follow-up ref, every gap key
|
|
161
|
+
* ({@link followUpGapKey}) recorded on its runs at dispatch, read from the same derivation that wrote the objective the
|
|
162
|
+
* run received. A ref absent from the map was never dispatched; a run that recorded no keys carried its own report only.
|
|
163
|
+
*/
|
|
164
|
+
export type FollowUpDispatchRecord = ReadonlyMap<string, ReadonlySet<string>>;
|
|
165
|
+
/**
|
|
166
|
+
* What decides which reports a follow-up absorbs (#3204). Both halves must be known; without either, nothing is absorbed
|
|
167
|
+
* and every report keeps a follow-up of its own (the behaviour before absorption).
|
|
168
|
+
*/
|
|
169
|
+
export interface FollowUpAbsorptionInputs {
|
|
170
|
+
readonly dispatched: FollowUpDispatchRecord;
|
|
171
|
+
/**
|
|
172
|
+
* Follow-ups a person decided on (closed, approved) or that a decision holds: FIXED, like a dispatched one, to their own
|
|
173
|
+
* report and the gap keys the decision recorded (#3832: what the objective showed when the person decided). A decision
|
|
174
|
+
* recorded before that field fixes the follow-up to its own report; what it had absorbed is carried again by the next
|
|
175
|
+
* follow-up and shown again, never closed or released by a decision that may not have covered it.
|
|
176
|
+
*/
|
|
177
|
+
readonly decided: FollowUpDispatchRecord;
|
|
117
178
|
}
|
|
118
179
|
export interface FollowUpDerivation {
|
|
119
180
|
readonly followUps: readonly DerivedFollowUp[];
|
|
@@ -135,37 +196,49 @@ export interface FollowUpDerivation {
|
|
|
135
196
|
*/
|
|
136
197
|
export declare function deriveFollowUpTaskRef(originTaskRef: string, reportingRunTaskId: string): string;
|
|
137
198
|
/**
|
|
138
|
-
* A follow-up waiting on its
|
|
199
|
+
* A follow-up waiting on its first report's origin, on the planned task its gaps were reported as owned by (#3886, both in
|
|
200
|
+
* `ownPrerequisiteTaskRefs`) and, when there is one, on the follow-up before it on its target. One function, so the
|
|
139
201
|
* dispatch host can re-link a follow-up after one it could not append (a name collision, a schema refusal): a chain
|
|
140
202
|
* naming a task the plan does not hold would make the plan unreadable.
|
|
141
203
|
*/
|
|
142
|
-
export declare function chainFollowUpAfter(followUp:
|
|
204
|
+
export declare function chainFollowUpAfter(followUp: Pick<DerivedFollowUp, 'task' | 'ownPrerequisiteTaskRefs'>, previousOnTarget: string | undefined): BuildPlanTask;
|
|
143
205
|
/** A target's identity: two tasks with equal targets write the same scope (#3227). */
|
|
144
206
|
export declare function targetKey(target: BuildPlanTask['target']): string;
|
|
145
207
|
/**
|
|
146
208
|
* The follow-up tasks the reported gaps derive (#2496, #3227). Pure: the dispatch host supplies the plan and each task's
|
|
147
209
|
* latest completed run.
|
|
148
210
|
*
|
|
149
|
-
* ## One follow-up per
|
|
211
|
+
* ## One follow-up per target for what is not dispatched yet, chained per target
|
|
150
212
|
*
|
|
151
213
|
* - **Every requirement one run reported is folded into one follow-up** (#3227): one scope, one worker, one set of
|
|
152
214
|
* checks, instead of the same task once per requirement.
|
|
153
|
-
* - **
|
|
154
|
-
*
|
|
155
|
-
*
|
|
156
|
-
*
|
|
215
|
+
* - **A follow-up not dispatched yet absorbs every later report on its target** (#3204): one worker reads the scope once,
|
|
216
|
+
* with every gap in front of it. The reference run of 2026-11-12 derived 225 follow-ups from website sections onto 24
|
|
217
|
+
* modules (17 requirements, each re-reported by up to 7 sections and routed to every module serving it), and 173 changed
|
|
218
|
+
* nothing. Absorption needs the dispatch record and the decisions (`absorption`); without them, one follow-up per report.
|
|
219
|
+
* - **Its identity is its FIRST report's origin and run, and nothing else**, so it is STABLE: a later report joins it
|
|
220
|
+
* rather than renaming it, and a follow-up the build is running, or has run, never leaves the plan because somebody
|
|
221
|
+
* else reported (#2530). Once dispatched it is FIXED: it carries exactly the gaps recorded on its runs at dispatch,
|
|
222
|
+
* which are the gaps its objective held, and a later report starts the next one. A follow-up a person closed or
|
|
223
|
+
* approved is fixed too, to the gaps the decision recorded ({@link FollowUpAbsorptionInputs}, #3832).
|
|
157
224
|
* - **Follow-ups on one target are chained IN THE ORDER THEIR REPORTS SETTLED** (then by origin ref), each waiting on the
|
|
158
225
|
* one before it: they write one scope, and two of them at once would overwrite each other (the interference that made
|
|
159
226
|
* the wave re-run each alone). Report order rather than plan order, so a new report always joins the TAIL: in plan
|
|
160
227
|
* order, an origin earlier in the plan reporting later went to the head, made a running follow-up wait on it, and was
|
|
161
228
|
* ready at once beside it (review of f077ae7db). A follow-up declares no product, so no interference check could see it.
|
|
229
|
+
* - **It waits on its first report's origin only**: the chain already holds a target's later follow-ups behind the earlier
|
|
230
|
+
* ones, so waiting on every absorbed origin would hold all their gaps behind any one of them that never lands.
|
|
231
|
+
* - **It does not wait on the other tasks serving its requirements**, only names them: a task that never lands would hold
|
|
232
|
+
* it for ever. Waiting was weighed again for #3204 and would not have helped: on the reference run the sections reported
|
|
233
|
+
* their gaps after most of the product tasks serving them had run.
|
|
162
234
|
*
|
|
163
235
|
* ## A gap a later run STATED met is dropped; silence drops nothing
|
|
164
236
|
*
|
|
165
237
|
* Dropping on ABSENCE was tried and withdrawn (review of 5e3ab7d76): a missing block, a malformed one and a run that never
|
|
166
238
|
* looked at the requirement all read the same, so it closed gaps nobody had closed. The worker contract now carries the
|
|
167
239
|
* positive half, a `wildo-requirements-met` block, and a gap is dropped only when {@link collectFollowUpGapsMetSince} finds
|
|
168
|
-
* a later run that states it and the host confirms that run LANDED and
|
|
240
|
+
* a later run that states it and the host confirms that run LANDED and no follow-up carrying the gap was ever attempted
|
|
241
|
+
* (`metSince`): neither its own report's nor one that absorbed it (#3204).
|
|
169
242
|
* Every drop is in `notDerived`, with the run and its evidence, so the host logs it. The follow-up's own worker is still
|
|
170
243
|
* told to read what was built since and change nothing when a gap is met.
|
|
171
244
|
*
|
|
@@ -179,11 +252,26 @@ export declare function deriveBuildPlanFollowUpTasks(input: {
|
|
|
179
252
|
readonly latestCompletedRuns: ReadonlyMap<string, FollowUpReportingRun>;
|
|
180
253
|
/**
|
|
181
254
|
* The gaps a host CONFIRMED met since (#3227), by {@link followUpGapKey}: candidates from
|
|
182
|
-
* {@link collectFollowUpGapsMetSince} whose stating run landed and
|
|
255
|
+
* {@link collectFollowUpGapsMetSince} whose stating run landed and that no attempted follow-up carries (#3204). Absent drops
|
|
183
256
|
* nothing, which is the reading when the host could not check.
|
|
184
257
|
*/
|
|
185
258
|
readonly metSince?: ReadonlyMap<string, FollowUpGapMetSince>;
|
|
259
|
+
/**
|
|
260
|
+
* What the dispatched follow-ups carried and which are fixed by a decision (#3204): lets a follow-up not yet dispatched
|
|
261
|
+
* absorb every later report on its target. Absent absorbs nothing, the reading when the host could not tell.
|
|
262
|
+
*/
|
|
263
|
+
readonly absorption?: FollowUpAbsorptionInputs;
|
|
186
264
|
}): FollowUpDerivation;
|
|
265
|
+
/**
|
|
266
|
+
* The owner a report named for a gap, when the plan can honour it (#3886): a planned task (never a follow-up), not the
|
|
267
|
+
* origin itself, that serves the very requirement. Anything else is ignored and the gap is an ordinary one.
|
|
268
|
+
*/
|
|
269
|
+
export declare function honouredFollowUpOwner(gap: Pick<FollowUpGap, 'requirementRef' | 'ownedByTaskRef'>, origin: BuildPlanTask, planTasks: readonly BuildPlanTask[]): string | undefined;
|
|
270
|
+
/**
|
|
271
|
+
* A derivation's readers over a given set of follow-ups (#3204): what the plan holds, so a host that could not append one
|
|
272
|
+
* (and appended the reports it absorbed instead) answers from what it appended, and no reader names a task the plan lacks.
|
|
273
|
+
*/
|
|
274
|
+
export declare function assembleFollowUpDerivation(followUps: readonly DerivedFollowUp[], notDerived: readonly FollowUpGapNotDerived[]): FollowUpDerivation;
|
|
187
275
|
/**
|
|
188
276
|
* The reported gaps a LATER run states met (#3227), pure: the candidates a host may drop. For each gap an eligible origin
|
|
189
277
|
* reported (one the derivation would turn into a follow-up), the first other task that
|
|
@@ -195,7 +283,8 @@ export declare function deriveBuildPlanFollowUpTasks(input: {
|
|
|
195
283
|
*
|
|
196
284
|
* EVERY such task is a candidate, in plan order, so a statement whose run has not landed does not hide one that has. A
|
|
197
285
|
* gap's own follow-up is never its verifier: once it has run, it is attempted and keeps the gap anyway. The host must
|
|
198
|
-
* still confirm that the stating run LANDED and that
|
|
286
|
+
* still confirm that the stating run LANDED and that no follow-up carrying the gap (its own, or one that absorbed it,
|
|
287
|
+
* #3204) was ever attempted before it passes a candidate on as
|
|
199
288
|
* `metSince`; this function only finds who said so.
|
|
200
289
|
*/
|
|
201
290
|
export declare function collectFollowUpGapsMetSince(input: {
|
package/dist/esm/meta-workflows/services/application-build-follow-up-derivation.companion.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"application-build-follow-up-derivation.companion.d.ts","sourceRoot":"","sources":["../../../../src/meta-workflows/services/application-build-follow-up-derivation.companion.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,uBAAuB,EAAE,KAAK,aAAa,EAAE,MAAM,oDAAoD,CAAC;AAEjH,OAAO,KAAK,EAAE,+BAA+B,EAAE,iCAAiC,EAAE,MAAM,sDAAsD,CAAC;AAG/I;;;;GAIG;AACH,eAAO,MAAM,sCAAsC,0BAA0B,CAAC;AAE9E,yEAAyE;AACzE,MAAM,WAAW,oBAAoB;IACnC,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAA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AAQ,CAAC,OAAO,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"application-build-follow-up-derivation.companion.d.ts","sourceRoot":"","sources":["../../../../src/meta-workflows/services/application-build-follow-up-derivation.companion.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,uBAAuB,EAAE,KAAK,aAAa,EAAE,MAAM,oDAAoD,CAAC;AAEjH,OAAO,KAAK,EAAE,+BAA+B,EAAE,iCAAiC,EAAE,MAAM,sDAAsD,CAAC;AAG/I;;;;GAIG;AACH,eAAO,MAAM,sCAAsC,0BAA0B,CAAC;AAE9E,yEAAyE;AACzE,MAAM,WAAW,oBAAoB;IACnC,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAC;IAC5B,QAAQ,CAAC,iBAAiB,CAAC,EAAE,SAAS,iCAAiC,EAAE,CAAC;IAC1E,6EAA6E;IAC7E,QAAQ,CAAC,eAAe,CAAC,EAAE,SAAS,+BAA+B,EAAE,CAAC;CACvE;AAED;;;GAGG;AACH,oBAAY,mBAAmB;IAC7B,wFAAwF;IACxF,QAAQ,aAAa;IACrB;;;;OAIG;IACH,QAAQ,aAAa;IACrB,+DAA+D;IAC/D,SAAS,cAAc;CACxB;AAED,eAAO,MAAM,4BAA4B,EAAE,QAAQ,CAAC,MAAM,CAAC,uBAAuB,EAAE,mBAAmB,CAAC,CAiBvG,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,0BAA0B,wBAAwB,CAAC;AAEhE;;;;;GAKG;AACH,wBAAgB,oBAAoB,CAAC,MAAM,EAAE,aAAa,CAAC,QAAQ,CAAC,GAAG,aAAa,CAAC,QAAQ,CAAC,GAAG,SAAS,CA0BzG;AAED,sHAAsH;AACtH,MAAM,WAAW,oBAAoB;IACnC,QAAQ,CAAC,MAAM,EAAE,aAAa,CAAC,QAAQ,CAAC,CAAC;IACzC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,SAAS,aAAa,EAAE,GAClC,MAAM,GAAG,SAAS,CAIpB;AAED;;;GAGG;AACH,wBAAgB,0BAA0B,CAAC,SAAS,EAAE,SAAS,eAAe,EAAE,EAAE,UAAU,EAAE,SAAS,qBAAqB,EAAE,GAAG,kBAAkB,CAelJ;AAED;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,2BAA2B,CAAC,KAAK,EAAE;IACjD,QAAQ,CAAC,KAAK,EAAE,SAAS,aAAa,EAAE,CAAC;IACzC,QAAQ,CAAC,mBAAmB,EAAE,WAAW,CAAC,MAAM,EAAE,oBAAoB,CAAC,CAAC;CACzE,GAAG,SAAS,mBAAmB,EAAE,CA4CjC;AAED,mHAAmH;AACnH,MAAM,WAAW,eAAe;IAC9B,QAAQ,CAAC,cAAc,EAAE,MAAM,CAAC;IAChC,qGAAqG;IACrG,QAAQ,CAAC,aAAa,EAAE,MAAM,CAAC;IAC/B,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,yHAAyH;IACzH,QAAQ,CAAC,eAAe,CAAC,EAAE,MAAM,CAAC;CACnC;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,uBAAuB,CAAC,KAAK,EAAE;IAC7C,QAAQ,CAAC,UAAU,EAAE,IAAI,CAAC,kBAAkB,EAAE,WAAW,GAAG,YAAY,CAAC,CAAC;IAC1E,QAAQ,CAAC,KAAK,EAAE,SAAS,aAAa,EAAE,CAAC;IACzC,QAAQ,CAAC,mBAAmB,EAAE,WAAW,CAAC,MAAM,EAAE,oBAAoB,CAAC,CAAC;IACxE,QAAQ,CAAC,cAAc,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;CAC9C,GAAG,SAAS,eAAe,EAAE,CAmB7B"}
|
package/dist/esm/meta-workflows/services/application-build-follow-up-derivation.companion.js
CHANGED
|
@@ -134,11 +134,32 @@ export var FollowUpGapNotDerivedReason;
|
|
|
134
134
|
* selection and a run each. Only that positive statement drops a gap; silence and a malformed block never do.
|
|
135
135
|
*/
|
|
136
136
|
FollowUpGapNotDerivedReason["MET_SINCE"] = "MET_SINCE";
|
|
137
|
+
/**
|
|
138
|
+
* The follow-up that would carry it could not join the plan (#3204): its ref already names a task, or the plan refused
|
|
139
|
+
* it. Recorded so the gap still reads OPEN, with no follow-up, rather than falling out of every reading.
|
|
140
|
+
*/
|
|
141
|
+
FollowUpGapNotDerivedReason["FOLLOW_UP_NOT_APPENDED"] = "FOLLOW_UP_NOT_APPENDED";
|
|
142
|
+
/**
|
|
143
|
+
* The report said a PERSON must decide something first (#3886: `needsDecision`): no coding task can close it, so none is
|
|
144
|
+
* derived. It stays OPEN, for the maturity reading and on the creation Home's ASKED section. On reference run 43691253927
|
|
145
|
+
* six follow-up runs changed nothing for this reason ("the creator must decide the RESOURCE_DATA retention period").
|
|
146
|
+
*/
|
|
147
|
+
FollowUpGapNotDerivedReason["AWAITS_DECISION"] = "AWAITS_DECISION";
|
|
137
148
|
})(FollowUpGapNotDerivedReason || (FollowUpGapNotDerivedReason = {}));
|
|
138
149
|
/** The key one gap is addressed by: its origin, its reporting run and its requirement. */
|
|
139
150
|
export function followUpGapKey(gap) {
|
|
140
151
|
return `${gap.originTaskRef}\u0000${gap.reportingRunTaskId}\u0000${gap.requirementRef}`;
|
|
141
152
|
}
|
|
153
|
+
/**
|
|
154
|
+
* The reference a PERSON is shown for one report a derived follow-up covers (#3833): `<requirementRef>@<originTaskRef>/<run>`,
|
|
155
|
+
* so `wildo build tasks` can list it and `wildo build close|approve --covers` can send back what was seen. It names the
|
|
156
|
+
* same three parts as {@link followUpGapKey}, so two reports never share one. The requirement ref and the run id come
|
|
157
|
+
* from a run's report and the plan, so each part is percent-encoded: the result never holds a comma (the CLI splits
|
|
158
|
+
* `--covers` on commas), whitespace, or a separator of its own (`@`, `/`). A task ref is already a slug.
|
|
159
|
+
*/
|
|
160
|
+
export function followUpReportRefOf(gap) {
|
|
161
|
+
return `${encodeURIComponent(gap.requirementRef)}@${encodeURIComponent(gap.originTaskRef)}/${encodeURIComponent(gap.reportingRunTaskId)}`;
|
|
162
|
+
}
|
|
142
163
|
/**
|
|
143
164
|
* The follow-up ref of ONE origin's ONE reporting run: the origin, then a token of the run, so the same report derives the
|
|
144
165
|
* same task on every read while a later run reporting again derives a NEW task (the old follow-up's completed run must not
|
|
@@ -156,13 +177,14 @@ export function deriveFollowUpTaskRef(originTaskRef, reportingRunTaskId) {
|
|
|
156
177
|
return `${HOST_DERIVED_FOLLOW_UP_TASK_REF_PREFIX}${origin}-${digest(reportingRunTaskId).slice(0, 6)}`;
|
|
157
178
|
}
|
|
158
179
|
/**
|
|
159
|
-
* A follow-up waiting on its
|
|
180
|
+
* A follow-up waiting on its first report's origin, on the planned task its gaps were reported as owned by (#3886, both in
|
|
181
|
+
* `ownPrerequisiteTaskRefs`) and, when there is one, on the follow-up before it on its target. One function, so the
|
|
160
182
|
* dispatch host can re-link a follow-up after one it could not append (a name collision, a schema refusal): a chain
|
|
161
183
|
* naming a task the plan does not hold would make the plan unreadable.
|
|
162
184
|
*/
|
|
163
185
|
export function chainFollowUpAfter(followUp, previousOnTarget) {
|
|
164
|
-
const
|
|
165
|
-
return { ...followUp, prerequisiteTaskRefs: previousOnTarget === undefined ?
|
|
186
|
+
const own = [...followUp.ownPrerequisiteTaskRefs];
|
|
187
|
+
return { ...followUp.task, prerequisiteTaskRefs: previousOnTarget === undefined ? own : [...own, previousOnTarget] };
|
|
166
188
|
}
|
|
167
189
|
/** A target's identity: two tasks with equal targets write the same scope (#3227). */
|
|
168
190
|
export function targetKey(target) {
|
|
@@ -173,26 +195,37 @@ export function targetKey(target) {
|
|
|
173
195
|
* The follow-up tasks the reported gaps derive (#2496, #3227). Pure: the dispatch host supplies the plan and each task's
|
|
174
196
|
* latest completed run.
|
|
175
197
|
*
|
|
176
|
-
* ## One follow-up per
|
|
198
|
+
* ## One follow-up per target for what is not dispatched yet, chained per target
|
|
177
199
|
*
|
|
178
200
|
* - **Every requirement one run reported is folded into one follow-up** (#3227): one scope, one worker, one set of
|
|
179
201
|
* checks, instead of the same task once per requirement.
|
|
180
|
-
* - **
|
|
181
|
-
*
|
|
182
|
-
*
|
|
183
|
-
*
|
|
202
|
+
* - **A follow-up not dispatched yet absorbs every later report on its target** (#3204): one worker reads the scope once,
|
|
203
|
+
* with every gap in front of it. The reference run of 2026-11-12 derived 225 follow-ups from website sections onto 24
|
|
204
|
+
* modules (17 requirements, each re-reported by up to 7 sections and routed to every module serving it), and 173 changed
|
|
205
|
+
* nothing. Absorption needs the dispatch record and the decisions (`absorption`); without them, one follow-up per report.
|
|
206
|
+
* - **Its identity is its FIRST report's origin and run, and nothing else**, so it is STABLE: a later report joins it
|
|
207
|
+
* rather than renaming it, and a follow-up the build is running, or has run, never leaves the plan because somebody
|
|
208
|
+
* else reported (#2530). Once dispatched it is FIXED: it carries exactly the gaps recorded on its runs at dispatch,
|
|
209
|
+
* which are the gaps its objective held, and a later report starts the next one. A follow-up a person closed or
|
|
210
|
+
* approved is fixed too, to the gaps the decision recorded ({@link FollowUpAbsorptionInputs}, #3832).
|
|
184
211
|
* - **Follow-ups on one target are chained IN THE ORDER THEIR REPORTS SETTLED** (then by origin ref), each waiting on the
|
|
185
212
|
* one before it: they write one scope, and two of them at once would overwrite each other (the interference that made
|
|
186
213
|
* the wave re-run each alone). Report order rather than plan order, so a new report always joins the TAIL: in plan
|
|
187
214
|
* order, an origin earlier in the plan reporting later went to the head, made a running follow-up wait on it, and was
|
|
188
215
|
* ready at once beside it (review of f077ae7db). A follow-up declares no product, so no interference check could see it.
|
|
216
|
+
* - **It waits on its first report's origin only**: the chain already holds a target's later follow-ups behind the earlier
|
|
217
|
+
* ones, so waiting on every absorbed origin would hold all their gaps behind any one of them that never lands.
|
|
218
|
+
* - **It does not wait on the other tasks serving its requirements**, only names them: a task that never lands would hold
|
|
219
|
+
* it for ever. Waiting was weighed again for #3204 and would not have helped: on the reference run the sections reported
|
|
220
|
+
* their gaps after most of the product tasks serving them had run.
|
|
189
221
|
*
|
|
190
222
|
* ## A gap a later run STATED met is dropped; silence drops nothing
|
|
191
223
|
*
|
|
192
224
|
* Dropping on ABSENCE was tried and withdrawn (review of 5e3ab7d76): a missing block, a malformed one and a run that never
|
|
193
225
|
* looked at the requirement all read the same, so it closed gaps nobody had closed. The worker contract now carries the
|
|
194
226
|
* positive half, a `wildo-requirements-met` block, and a gap is dropped only when {@link collectFollowUpGapsMetSince} finds
|
|
195
|
-
* a later run that states it and the host confirms that run LANDED and
|
|
227
|
+
* a later run that states it and the host confirms that run LANDED and no follow-up carrying the gap was ever attempted
|
|
228
|
+
* (`metSince`): neither its own report's nor one that absorbed it (#3204).
|
|
196
229
|
* Every drop is in `notDerived`, with the run and its evidence, so the host logs it. The follow-up's own worker is still
|
|
197
230
|
* told to read what was built since and change nothing when a gap is met.
|
|
198
231
|
*
|
|
@@ -210,7 +243,14 @@ export function deriveBuildPlanFollowUpTasks(input) {
|
|
|
210
243
|
const reported = run?.unmetRequirements ?? [];
|
|
211
244
|
if (run === undefined || reported.length === 0)
|
|
212
245
|
continue;
|
|
213
|
-
const reportedGaps = reported.map((entry) => ({
|
|
246
|
+
const reportedGaps = reported.map((entry) => ({
|
|
247
|
+
originTaskRef: origin.taskRef,
|
|
248
|
+
reportingRunTaskId: run.runTaskId,
|
|
249
|
+
requirementRef: entry.requirementRef,
|
|
250
|
+
missing: entry.missing,
|
|
251
|
+
...(entry.ownedByTaskRef !== undefined ? { ownedByTaskRef: entry.ownedByTaskRef } : {}),
|
|
252
|
+
...(entry.needsDecision !== undefined ? { needsDecision: entry.needsDecision } : {}),
|
|
253
|
+
}));
|
|
214
254
|
if (origin.target.kind === BuildPlanTaskTargetKind.COMPANION_GENERATION_STEP) {
|
|
215
255
|
notDerived.push(...reportedGaps.map((gap) => ({ ...gap, reason: FollowUpGapNotDerivedReason.GENERATION_STEP })));
|
|
216
256
|
continue;
|
|
@@ -226,6 +266,12 @@ export function deriveBuildPlanFollowUpTasks(input) {
|
|
|
226
266
|
return true;
|
|
227
267
|
notDerived.push({ ...gap, reason: FollowUpGapNotDerivedReason.MET_SINCE, metSince: { metByTaskRef: met.metByTaskRef, metByRunTaskId: met.metByRunTaskId, evidence: met.evidence } });
|
|
228
268
|
return false;
|
|
269
|
+
}).filter((gap) => {
|
|
270
|
+
// A decision only a person can make (#3886): no coding task, and the gap stays open on ASKED.
|
|
271
|
+
if (gap.needsDecision === undefined)
|
|
272
|
+
return true;
|
|
273
|
+
notDerived.push({ ...gap, reason: FollowUpGapNotDerivedReason.AWAITS_DECISION });
|
|
274
|
+
return false;
|
|
229
275
|
});
|
|
230
276
|
if (gaps.length === 0)
|
|
231
277
|
continue;
|
|
@@ -239,60 +285,196 @@ export function deriveBuildPlanFollowUpTasks(input) {
|
|
|
239
285
|
};
|
|
240
286
|
const byReportedAt = (left, right) => (left === right ? 0 : left < right ? -1 : 1);
|
|
241
287
|
reports.sort((left, right) => byReportedAt(reportedAt(left.run), reportedAt(right.run)) || left.origin.taskRef.localeCompare(right.origin.taskRef));
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
288
|
+
/*
|
|
289
|
+
* The owner a report named, when the plan can honour it (#3886): a planned task (never a follow-up), not the origin
|
|
290
|
+
* itself, that serves the very requirement. Anything else is ignored and the gap is an ordinary one: a worker's free text
|
|
291
|
+
* must never make a follow-up wait on a task that does not exist or does not do that work.
|
|
292
|
+
*/
|
|
293
|
+
const honouredOwner = (gap, origin) => honouredFollowUpOwner(gap, origin, planTasks);
|
|
294
|
+
const groupsByTarget = new Map();
|
|
245
295
|
for (const { origin, run, gaps } of reports) {
|
|
246
|
-
/*
|
|
247
|
-
* One follow-up per CLOSING SCOPE of this report (#3701): the origin's own, unless the origin only presents the product,
|
|
248
|
-
* in which case each product scope serving a reported requirement gets the gaps it can close. A routed follow-up's ref
|
|
249
|
-
* adds its scope to the run's token, so the same report keeps deriving the same tasks.
|
|
250
|
-
*/
|
|
251
296
|
const byScope = new Map();
|
|
252
297
|
for (const gap of gaps) {
|
|
298
|
+
const owner = honouredOwner(gap, origin);
|
|
253
299
|
for (const scope of resolveFollowUpClosingScopes(origin, gap.requirementRef, planTasks)) {
|
|
254
300
|
const key = targetKey(scope.target);
|
|
255
|
-
const
|
|
256
|
-
|
|
257
|
-
|
|
301
|
+
const routed = scope.servingTaskRefs.length > 0;
|
|
302
|
+
// An owned gap is its own group, so waiting for its owner holds no other gap (#3886); unowned refs are unchanged.
|
|
303
|
+
const groupKey = owner === undefined ? key : `${key}\u0000owner:${owner}`;
|
|
304
|
+
const group = byScope.get(groupKey) ?? {
|
|
305
|
+
origin, run, scope, gaps: [],
|
|
306
|
+
taskRef: owner !== undefined ? deriveFollowUpTaskRef(origin.taskRef, `${run.runTaskId}\u0000${key}\u0000owner:${owner}`)
|
|
307
|
+
: routed ? deriveFollowUpTaskRef(origin.taskRef, `${run.runTaskId}\u0000${key}`) : deriveFollowUpTaskRef(origin.taskRef, run.runTaskId),
|
|
308
|
+
settledAtMs: reportedAt(run),
|
|
309
|
+
...(owner !== undefined ? { owner } : {}),
|
|
310
|
+
};
|
|
311
|
+
group.gaps.push(gap);
|
|
312
|
+
byScope.set(groupKey, group);
|
|
313
|
+
}
|
|
314
|
+
}
|
|
315
|
+
for (const group of byScope.values()) {
|
|
316
|
+
const key = targetKey(group.scope.target);
|
|
317
|
+
groupsByTarget.set(key, [...(groupsByTarget.get(key) ?? []), group]);
|
|
318
|
+
}
|
|
319
|
+
}
|
|
320
|
+
/*
|
|
321
|
+
* ONE follow-up per target for everything not yet dispatched (#3204). The reference run of 2026-11-12 derived 225
|
|
322
|
+
* follow-ups from website sections on 24 module scopes: 17 requirements, each reported by up to 7 sections and routed
|
|
323
|
+
* to every module serving it, all waiting at once, and 173 changed nothing.
|
|
324
|
+
*
|
|
325
|
+
* - A DISPATCHED follow-up carries its own report and exactly the gaps recorded on its runs (what its objective held).
|
|
326
|
+
* - A DECIDED follow-up (a person closed or approved it, or a decision holds it) carries its own report and exactly the
|
|
327
|
+
* gaps the decision recorded (#3832).
|
|
328
|
+
* - Every other gap on the target goes to ONE pending follow-up: the first report not yet dispatched, under its own ref,
|
|
329
|
+
* so it is never renamed (#2530). One worker reads the scope once, with every gap in front of it.
|
|
330
|
+
*
|
|
331
|
+
* Only the first report's origin is waited on: the chain already held every later follow-up on a target behind the
|
|
332
|
+
* earlier ones, so waiting on each absorbed origin as well would hold the gaps of all of them behind any one.
|
|
333
|
+
*/
|
|
334
|
+
const absorption = input.absorption;
|
|
335
|
+
const followUpsByTarget = [];
|
|
336
|
+
for (const [key, groups] of groupsByTarget) {
|
|
337
|
+
const members = [];
|
|
338
|
+
const closedToAbsorption = (group) => absorption === undefined || absorption.dispatched.has(group.taskRef) || absorption.decided.has(group.taskRef);
|
|
339
|
+
const anchoredAlone = new Map();
|
|
340
|
+
for (const group of groups) {
|
|
341
|
+
if (absorption === undefined || closedToAbsorption(group)) {
|
|
342
|
+
const member = { anchor: group, carried: new Map() };
|
|
343
|
+
members.push(member);
|
|
344
|
+
anchoredAlone.set(group, member);
|
|
258
345
|
}
|
|
259
346
|
}
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
const
|
|
263
|
-
const
|
|
264
|
-
|
|
265
|
-
|
|
347
|
+
if (absorption !== undefined) {
|
|
348
|
+
// What each dispatched or decided follow-up carried, from its records; never a gap whose own report is either.
|
|
349
|
+
const claimedBy = new Map();
|
|
350
|
+
for (const member of members) {
|
|
351
|
+
const recorded = new Set([...(absorption.dispatched.get(member.anchor.taskRef) ?? []), ...(absorption.decided.get(member.anchor.taskRef) ?? [])]);
|
|
352
|
+
for (const group of groups) {
|
|
353
|
+
if (group === member.anchor || closedToAbsorption(group))
|
|
354
|
+
continue;
|
|
355
|
+
for (const gap of group.gaps) {
|
|
356
|
+
const gapKey = followUpGapKey(gap);
|
|
357
|
+
if (!recorded.has(gapKey) || claimedBy.has(gapKey))
|
|
358
|
+
continue;
|
|
359
|
+
claimedBy.set(gapKey, member);
|
|
360
|
+
member.carried.set(group, [...(member.carried.get(group) ?? []), gap]);
|
|
361
|
+
}
|
|
362
|
+
}
|
|
363
|
+
}
|
|
364
|
+
// The decided anchors are already in the order their reports settled (pushed in report order above).
|
|
365
|
+
// Everything else: the first pending report anchors, every later one joins it. Its follow-up goes LAST on its target,
|
|
366
|
+
// after every dispatched or decided one, so a report that surfaced late never runs beside one already running.
|
|
367
|
+
// One pending follow-up for the target's unowned gaps, and one per owner (#3886), so an owner holds only its own gaps.
|
|
368
|
+
const pendingByOwner = new Map();
|
|
369
|
+
for (const group of groups) {
|
|
370
|
+
if (closedToAbsorption(group))
|
|
371
|
+
continue;
|
|
372
|
+
const remaining = group.gaps.filter((gap) => !claimedBy.has(followUpGapKey(gap)));
|
|
373
|
+
if (remaining.length === 0)
|
|
374
|
+
continue;
|
|
375
|
+
const pending = pendingByOwner.get(group.owner);
|
|
376
|
+
if (pending === undefined) {
|
|
377
|
+
const member = { anchor: { ...group, gaps: remaining }, carried: new Map() };
|
|
378
|
+
pendingByOwner.set(group.owner, member);
|
|
379
|
+
members.push(member);
|
|
380
|
+
}
|
|
381
|
+
else {
|
|
382
|
+
pending.carried.set(group, remaining);
|
|
383
|
+
}
|
|
384
|
+
}
|
|
385
|
+
}
|
|
386
|
+
/*
|
|
387
|
+
* A follow-up waiting for its owner is on a CHAIN OF ITS OWN (#3886, review M1): it waits on the follow-up before it
|
|
388
|
+
* for the same owner on this target, never on another owner's or on the target's unowned follow-ups, and none of them
|
|
389
|
+
* waits on it. One chain per target would hold every gap behind any owner that never lands, #3204's objection one level
|
|
390
|
+
* down. Two follow-ups on one scope still never RUN at once: the dispatch's selection takes one follow-up per scope at a
|
|
391
|
+
* time (`followUpScopeBusy`), since they declare no product and nothing else could see them meet.
|
|
392
|
+
*/
|
|
393
|
+
const build = (anchor, contributions) => {
|
|
394
|
+
const all = contributions.map(([group]) => group);
|
|
395
|
+
const gaps = contributions.flatMap(([, contributed]) => contributed);
|
|
396
|
+
const requirementRefs = [...new Set(gaps.map((gap) => gap.requirementRef))];
|
|
397
|
+
const originRefs = [...new Set(all.map((group) => group.origin.taskRef))];
|
|
266
398
|
const servingTasks = [...new Set(planTasks
|
|
267
|
-
.filter((task) => task.taskRef
|
|
399
|
+
.filter((task) => !originRefs.includes(task.taskRef) && requirementRefs.some((ref) => task.servesRefs.includes(ref)))
|
|
268
400
|
.map((task) => task.taskRef))];
|
|
269
|
-
const
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
401
|
+
const builtBy = [...new Set(all.flatMap((group) => group.scope.servingTaskRefs))];
|
|
402
|
+
const describe = (groupGaps) => {
|
|
403
|
+
const byRequirement = new Map();
|
|
404
|
+
for (const gap of groupGaps)
|
|
405
|
+
byRequirement.set(gap.requirementRef, (byRequirement.get(gap.requirementRef) ?? new Set()).add(gap.missing));
|
|
406
|
+
return [...byRequirement].map(([ref, missing]) => `${ref}: ${[...missing].join(' / ')}`).join(' ');
|
|
407
|
+
};
|
|
408
|
+
const routed = contributions.filter(([group]) => group.scope.servingTaskRefs.length > 0);
|
|
409
|
+
const own = contributions.filter(([group]) => group.scope.servingTaskRefs.length === 0);
|
|
410
|
+
const presenters = [...new Set(routed.map(([group]) => group.origin.taskRef))];
|
|
411
|
+
const reporters = [...new Set(own.map(([group]) => group.origin.taskRef))];
|
|
412
|
+
const objective = (routed.length > 0
|
|
413
|
+
? `${presenters.join(', ')} ${presenters.length > 1 ? 'present' : 'presents'} the product and reported that the product does not yet deliver: `
|
|
414
|
+
+ describe(routed.flatMap(([, contributed]) => contributed))
|
|
415
|
+
+ ` Build what is missing in this scope, where ${builtBy.join(', ')} built the requirement; a page cannot. `
|
|
416
|
+
+ 'If what is missing lies outside this scope, change nothing and report it. '
|
|
417
|
+
: '')
|
|
418
|
+
+ (own.length > 0 ? `Meet what ${reporters.join(', ')} reported still unmet: ${describe(own.flatMap(([, contributed]) => contributed))} ` : '')
|
|
419
|
+
+ (contributions.length > 1 ? 'These reports were gathered into this one task because they concern this one scope: answer each. ' : '')
|
|
420
|
+
+ 'Read what is already built first: if a task that ran since has met one, change nothing for it and say so. '
|
|
421
|
+
+ (anchor.owner !== undefined ? `It was reported as ${anchor.owner}'s own work, so it runs once that task has landed: read what it built, and change nothing for a gap it met. ` : '')
|
|
422
|
+
+ (servingTasks.length > 0 ? `Other tasks serving them: ${servingTasks.join(', ')}; their work is theirs. ` : '')
|
|
423
|
+
+ (contributions.length > 1 ? 'Derived by the dispatch host from those runs\' closing reports.' : 'Derived by the dispatch host from that run\'s closing report.');
|
|
424
|
+
return {
|
|
425
|
+
task: {
|
|
426
|
+
taskRef: anchor.taskRef,
|
|
427
|
+
objective,
|
|
428
|
+
target: anchor.scope.target,
|
|
429
|
+
produces: [],
|
|
430
|
+
functionalTopic: anchor.scope.functionalTopic,
|
|
431
|
+
skillRefs: [...new Set(all.flatMap((group) => group.scope.skillRefs))],
|
|
432
|
+
// Its first report's origin (`followUpOf` reads it), and the owner its gaps were reported as (#3886); the follow-up
|
|
433
|
+
// before it on the same target is added by the chain.
|
|
434
|
+
prerequisiteTaskRefs: [anchor.origin.taskRef, ...(anchor.owner !== undefined ? [anchor.owner] : [])],
|
|
435
|
+
// Only refs an origin serves: a free-text ref would be a dangling citation in the plan.
|
|
436
|
+
servesRefs: requirementRefs.filter((ref) => all.some((group) => group.origin.servesRefs.includes(ref))),
|
|
437
|
+
},
|
|
438
|
+
gaps,
|
|
439
|
+
// The CHAIN it belongs to (#3886): its target's, or its target's for one owner, so owners never wait on each other.
|
|
440
|
+
targetKey: anchor.owner === undefined ? key : `${key}\u0000owner:${anchor.owner}`,
|
|
441
|
+
ownPrerequisiteTaskRefs: [anchor.origin.taskRef, ...(anchor.owner !== undefined ? [anchor.owner] : [])],
|
|
442
|
+
};
|
|
443
|
+
};
|
|
444
|
+
const previousOnChain = new Map();
|
|
445
|
+
for (const { anchor, carried } of members) {
|
|
446
|
+
const derived = {
|
|
447
|
+
...build(anchor, [[anchor, anchor.gaps], ...carried]),
|
|
448
|
+
absorbed: [...carried].map(([group, contributed]) => build(group, [[group, contributed]])),
|
|
449
|
+
};
|
|
450
|
+
const task = chainFollowUpAfter(derived, previousOnChain.get(derived.targetKey));
|
|
451
|
+
previousOnChain.set(derived.targetKey, task.taskRef);
|
|
452
|
+
followUpsByTarget.push({ ...derived, task });
|
|
453
|
+
}
|
|
454
|
+
}
|
|
455
|
+
return assembleFollowUpDerivation(followUpsByTarget, notDerived);
|
|
456
|
+
}
|
|
457
|
+
/**
|
|
458
|
+
* The owner a report named for a gap, when the plan can honour it (#3886): a planned task (never a follow-up), not the
|
|
459
|
+
* origin itself, that serves the very requirement. Anything else is ignored and the gap is an ordinary one.
|
|
460
|
+
*/
|
|
461
|
+
export function honouredFollowUpOwner(gap, origin, planTasks) {
|
|
462
|
+
if (gap.ownedByTaskRef === undefined)
|
|
463
|
+
return undefined;
|
|
464
|
+
const owner = planTasks.find((task) => task.taskRef === gap.ownedByTaskRef && !task.taskRef.startsWith(HOST_DERIVED_FOLLOW_UP_TASK_REF_PREFIX));
|
|
465
|
+
return owner !== undefined && owner.taskRef !== origin.taskRef && owner.servesRefs.includes(gap.requirementRef) ? owner.taskRef : undefined;
|
|
466
|
+
}
|
|
467
|
+
/**
|
|
468
|
+
* A derivation's readers over a given set of follow-ups (#3204): what the plan holds, so a host that could not append one
|
|
469
|
+
* (and appended the reports it absorbed instead) answers from what it appended, and no reader names a task the plan lacks.
|
|
470
|
+
*/
|
|
471
|
+
export function assembleFollowUpDerivation(followUps, notDerived) {
|
|
472
|
+
const refByOriginRequirement = new Map();
|
|
473
|
+
for (const followUp of followUps) {
|
|
474
|
+
for (const gap of followUp.gaps) {
|
|
475
|
+
const originRequirement = `${gap.originTaskRef}\u0000${gap.requirementRef}`;
|
|
476
|
+
if (!refByOriginRequirement.has(originRequirement))
|
|
477
|
+
refByOriginRequirement.set(originRequirement, followUp.task.taskRef);
|
|
296
478
|
}
|
|
297
479
|
}
|
|
298
480
|
return {
|
|
@@ -314,7 +496,8 @@ export function deriveBuildPlanFollowUpTasks(input) {
|
|
|
314
496
|
*
|
|
315
497
|
* EVERY such task is a candidate, in plan order, so a statement whose run has not landed does not hide one that has. A
|
|
316
498
|
* gap's own follow-up is never its verifier: once it has run, it is attempted and keeps the gap anyway. The host must
|
|
317
|
-
* still confirm that the stating run LANDED and that
|
|
499
|
+
* still confirm that the stating run LANDED and that no follow-up carrying the gap (its own, or one that absorbed it,
|
|
500
|
+
* #3204) was ever attempted before it passes a candidate on as
|
|
318
501
|
* `metSince`; this function only finds who said so.
|
|
319
502
|
*/
|
|
320
503
|
export function collectFollowUpGapsMetSince(input) {
|
|
@@ -340,8 +523,11 @@ export function collectFollowUpGapsMetSince(input) {
|
|
|
340
523
|
const routedRefs = new Set(scopes.filter((scope) => scope.servingTaskRefs.length > 0)
|
|
341
524
|
.map((scope) => deriveFollowUpTaskRef(origin.taskRef, `${run.runTaskId}\u0000${targetKey(scope.target)}`)));
|
|
342
525
|
const routed = routedRefs.size > 0;
|
|
526
|
+
// The follow-ups an owned gap derives (#3886, review LOW) are this report's own too: never a run that met it since.
|
|
527
|
+
const owner = honouredFollowUpOwner(entry, origin, planTasks);
|
|
528
|
+
const ownedRefs = new Set(owner === undefined ? [] : scopes.map((scope) => deriveFollowUpTaskRef(origin.taskRef, `${run.runTaskId}\u0000${targetKey(scope.target)}\u0000owner:${owner}`)));
|
|
343
529
|
for (const task of input.tasks) {
|
|
344
|
-
if (task.taskRef === origin.taskRef || task.taskRef === followUpTaskRef || routedRefs.has(task.taskRef))
|
|
530
|
+
if (task.taskRef === origin.taskRef || task.taskRef === followUpTaskRef || routedRefs.has(task.taskRef) || ownedRefs.has(task.taskRef))
|
|
345
531
|
continue;
|
|
346
532
|
const taskScope = routed ? productClosingTarget(task.target) : task.target;
|
|
347
533
|
if (taskScope === undefined || !closingKeys.has(targetKey(taskScope)) || !task.servesRefs.includes(entry.requirementRef))
|