@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
package/dist/esm/core/introspection/resources/creation-plane-projection.companion.service.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"creation-plane-projection.companion.service.js","sourceRoot":"","sources":["../../../../../src/core/introspection/resources/creation-plane-projection.companion.service.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,OAAO,EAAE,iCAAiC,EAAE,MAAM,sCAAsC,CAAC;AACzF,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAC7D,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEvE,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AAC/C,OAAO,EAAE,yBAAyB,EAAE,MAAM,sCAAsC,CAAC;AACjF,OAAO,EAAE,kBAAkB,EAAE,mBAAmB,EAAsB,MAAM,4BAA4B,CAAC;AACzG,OAAO,EAAE,kCAAkC,EAAE,MAAM,+BAA+B,CAAC;AACnF,OAAO,EACL,qCAAqC,EACrC,8BAA8B,EAC9B,6BAA6B,EAC7B,0BAA0B,EAC1B,sCAAsC,EACtC,mCAAmC,EACnC,6BAA6B,GAC9B,MAAM,gCAAgC,CAAC;AACxC,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAE3D,OAAO,EAAE,wBAAwB,EAAE,+BAA+B,EAAE,6BAA6B,EAAE,4BAA4B,EAAE,MAAM,wCAAwC,CAAC;AAChL,OAAO,EAAE,0DAA0D,EAAE,qCAAqC,EAAE,8BAA8B,EAAE,wBAAwB,EAAE,0BAA0B,EAAE,uBAAuB,EAAE,kBAAkB,EAAE,MAAM,oDAAoD,CAAC;AAI1S,OAAO,EAAE,6BAA6B,EAAE,MAAM,sDAAsD,CAAC;AAErG,OAAO,EAAE,uBAAuB,EAAE,MAAM,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QAAQ,0EAA0E;sBAC/F,mCAAmC,CACtC,CAAC;YACJ,CAAC;YACD,IAAI,CAAC,GAAG,CAAC,QAAQ,EAAE,GAAG,CAAC,CAAC;YACxB,OAAO,EAAE,GAAG,GAAG,EAAE,CAAC,eAAe,CAAC,EAAE,QAAQ,EAAE,CAAC;QACjD,CAAC,CAAC,CAAC;IACL,CAAC;CACF,CAAA;AAj0DY,uCAAuC;IADnD,UAAU,EAAE;IAqHR,WAAA,MAAM,CAAC,uBAAuB,CAAC,kBAAkB,CAAC,CAAA;IAElD,WAAA,MAAM,CAAC,uBAAuB,CAAC,+BAA+B,CAAC,CAAA;IAE/D,WAAA,MAAM,CAAC,uBAAuB,CAAC,+BAA+B,CAAC,CAAA;IAE/D,WAAA,MAAM,CAAC,uBAAuB,CAAC,yBAAyB,CAAC,CAAA;IAEzD,WAAA,MAAM,CAAC,uBAAuB,CAAC,0BAA0B,CAAC,CAAA;IAE1D,WAAA,MAAM,CAAC,uBAAuB,CAAC,cAAc,CAAC,CAAA;IAG9C,WAAA,MAAM,CAAC,uBAAuB,CAAC,6BAA6B,CAAC,CAAA;IAG7D,WAAA,MAAM,CAAC,uBAAuB,CAAC,gBAAgB,CAAC,CAAA;IAGhD,WAAA,MAAM,CAAC,uBAAuB,CAAC,iCAAiC,CAAC,CAAA;IAEjE,WAAA,MAAM,CAAC,kBAAkB,CAAC,MAAM,CAAC,CAAA;;GAzIzB,uCAAuC,CAi0DnD","sourcesContent":["import { MetaWorkflow_ElicitationNonAnswer } from '@wildo-ai/saas-models/meta-workflows';\nimport { existsSync, readFileSync, statSync } from 'node:fs';\nimport { basename, dirname, join, relative, resolve } from 'node:path';\n\nimport { inject, injectable } from 'inversify';\nimport { CodingAgentHostLoginState } from '@wildo-ai/external-connectors-models';\nimport { SAAS_SERVICE_TYPES, describeCaughtError, type LoggerService } from '@wildo-ai/saas-backend-lib';\nimport { resolveFrameworkKnowledgeAssetPath } from '@wildo-ai/framework-knowledge';\nimport {\n WORKBENCH_CREATION_PLANE_BEHAVIOR_IDS,\n WorkbenchCreationPlaneBehavior,\n WorkbenchDossierEntryStanding,\n Workbench_PlaybookRunState,\n sanitizeWorkbenchCreationPlaneIdentity,\n WORKBENCH_CODING_LANE_STATUS_ROW_ID,\n workbenchDossierEntryIdentity,\n} from '@wildo-ai/platform-core-shared';\nimport { FlowsActors_Status } from '@wildo-ai/saas-models';\n\nimport { PlaybookSpendMeasurement, composeGovernanceQuestionnaires, deriveOpenGovernanceQuestions, deriveProductGovernanceFacts } from '@wildo-ai/application-creation-runtime';\nimport { ApplicationAssuranceDocumentFactContributionResolutionKind, ApplicationCreatorInputAnswerStanding, ApplicationSpecificationFamily, PlaybookActivationStatus, creatorInputAnswerStanding, isCreatorInputNonAnswer, playbookInstanceId } from '@wildo-ai/saas-specifications/application-creation';\n\nimport type { CodingAgentDispatchCompanionService } from '../../../claude-cli/services/coding-agent-dispatch.companion.service';\nimport type { CodingRunWriteRegisterCompanionService } from '../../../claude-cli/services/coding-run-write-register.companion.service';\nimport { describeCodingAgentProbeRoute } from '../../../claude-cli/models/coding-agent-route.models';\n\nimport { COMPANION_SERVICE_TYPES } from '../../inject/models/service-types';\nimport { playbookRunRoundsOf, readPlaybookRunChoreography, readPlaybookRunJudgeVerdict } from '../../../meta-workflows/models/playbook-run-record.models';\nimport type { PlaybookRunCompanionService } from '../../../meta-workflows/services/playbook-run.companion.service';\nimport {\n isBuildPlanHeldByFailedModule,\n isCountedBuildTaskAttempt,\n settledRunWriteKey,\n type ApplicationBuildDispatchCompanionService,\n type ApplicationBuildTaskAttempt,\n type ApplicationBuildTaskRecord,\n type ApplicationBuildTaskUnmetProbe,\n} from '../../../meta-workflows/services/application-build-dispatch.companion.service';\nimport { BuildPlanTaskLandedProbeKind, buildPlanTaskLandedProbePaths } from '../../../meta-workflows/services/application-build-task-coding-policy.companion.service';\nimport { describeFailedLandingRemedies, type PlaybookRunWriteRegisterCompanionService } from '../../../meta-workflows/services/playbook-run-write-register.companion.service';\nimport type { ExecutionTraceReadCompanionService } from '../../../meta-workflows/services/execution-trace-read.companion.service';\nimport type { DossierCompanionService, DossierEntry } from '../../../meta-workflows/services/dossier.companion.service';\nimport type { CompanionContext } from '../../context/companion-context';\nimport { signEvaluatedCompanionTree } from '../../context/companion-package-loaders.companion';\nimport { loadSpecificationFamilyData } from '../../context/specification-family-data.companion';\nimport { signSchemaPlanInputs } from '../../../meta-workflows/services/application-build-generation-step.companion.service';\nimport { projectSpecificationArtifacts, specificationFamilyConcern } from '../subprocess/specification-artifacts.behavior';\nimport { buildCreationHomeLines, buildCreationOutcomes } from './creation-home-projection.companion';\nimport { describeVerificationHostCause } from '../../../claude-cli/models/verification-tool-availability.models';\nimport { readApplicationBootFailures, readUnavailableApplicationRuntimes } from '../../runtime/application-runtime-liveness.companion';\nimport { signDerivedInputs } from '../../utils/derived-input-signature.companion.utils';\nimport type { IntrospectionSourceWatcherCompanionService } from '../services/introspection-source-watcher.companion.service';\nimport { resolveIntrospectedApplicationPackageRoots } from '../services/introspection-source-state.companion.service';\nimport { readApplicationSecrets } from './application-secrets.companion';\n\n/**\n * An instant as the creation-plane schema declares it: a `Date`, or `null` (#1377).\n *\n * Every instant on the workbench's creation plane was declared `z.string()`, so detail panes printed\n * raw ISO in UTC, no date preference applied, and one row could carry two spellings of an instant —\n * a dispatch's `startedAt` with a `+02:00` offset beside a `settledAt` in `Z` — which a string sort\n * orders wrongly. The fields are `z.date()` now, with one wire form, and this is the ONE conversion\n * every emit site goes through, so a new instant cannot be converted differently.\n *\n * Unparseable input answers `null` rather than an Invalid Date: on a nullable field that is the\n * honest absence, and on a required one it fails the resource's own parse exactly as an empty string\n * failed `.min(1)` before — no invented instant either way.\n */\n/**\n * Where a dossier question stands: answered here, answered by the STEP for an instance that has none of\n * its own (#1609), or still needed. One function, because the badge and the \"asked of you now\" filter\n * must not disagree about an instance running on the step's answer.\n */\nexport function dossierEntryStanding(entry: DossierEntry): WorkbenchDossierEntryStanding {\n /* Answered without a value (#3437): the person's own say, so it outranks the step's answer an instance would fall back on. */\n if (entry.answer && isCreatorInputNonAnswer(entry.answer)) {\n return entry.answer.nonAnswer === MetaWorkflow_ElicitationNonAnswer.NOT_APPLICABLE\n ? WorkbenchDossierEntryStanding.NOT_APPLICABLE\n : WorkbenchDossierEntryStanding.DEFERRED;\n }\n if (entry.answer) {\n /* A proposal — kept by the creator, or recorded unattended (#2129) — is answered and still not theirs: the dossier says so. */\n return creatorInputAnswerStanding(entry.answer) === ApplicationCreatorInputAnswerStanding.ASSUMED\n ? WorkbenchDossierEntryStanding.ASSUMED\n : WorkbenchDossierEntryStanding.FROM_YOU;\n }\n /* The step said it does not apply, or deferred it (#3437): an instance running on that runs without it too. */\n if (entry.answerFromTheStep && isCreatorInputNonAnswer(entry.answerFromTheStep)) {\n return entry.answerFromTheStep.nonAnswer === MetaWorkflow_ElicitationNonAnswer.NOT_APPLICABLE\n ? WorkbenchDossierEntryStanding.NOT_APPLICABLE\n : WorkbenchDossierEntryStanding.DEFERRED;\n }\n if (entry.answerFromTheStep) {\n /*\n * An instance running on the step's ASSUMED answer runs on an assumption: that is what a person reviewing\n * the instance needs to see, so it outranks \"from the step\" (#2129 review L3). The run's brief already\n * reads it as one.\n */\n return creatorInputAnswerStanding(entry.answerFromTheStep) === ApplicationCreatorInputAnswerStanding.ASSUMED\n ? WorkbenchDossierEntryStanding.ASSUMED\n : WorkbenchDossierEntryStanding.FROM_THE_STEP;\n }\n return WorkbenchDossierEntryStanding.STILL_NEEDED;\n}\n\nexport function toInstant(value: unknown): Date | null {\n if (value instanceof Date) return Number.isNaN(value.getTime()) ? null : value;\n if (typeof value !== 'string' || value.length === 0) return null;\n const parsed = new Date(value);\n return Number.isNaN(parsed.getTime()) ? null : parsed;\n}\n\n/**\n * What one attempt spent, as the row carries it (#2530): a coding run's cost and tokens as its agent reported them, a\n * generation step's as its model calls were MEASURED, a floor where some of them reported nothing. A step's cost is per\n * currency; one that spent in several has no single figure, so it shows none rather than one of them.\n */\nfunction projectBuildTaskAttemptSpend(attempt: ApplicationBuildTaskAttempt): {\n costAmount: number | null; costCurrency: string | null; spendIsFloor: boolean; totalTokens: number | null;\n} {\n const spend = attempt.generationStepSpend;\n if (!spend) {\n return { costAmount: attempt.cost?.amount ?? null, costCurrency: attempt.cost?.currency ?? null, spendIsFloor: false, totalTokens: attempt.tokens?.totalTokens ?? null };\n }\n // A spend nothing measured (NOT_OBSERVED, UNMEASURED) carries no cost and no tokens, so it shows none: never a zero.\n const costs = Object.entries(spend.cost ?? {});\n const [single] = costs.length === 1 ? costs : [];\n return {\n costAmount: single ? single[1] : null,\n costCurrency: single ? single[0] : null,\n spendIsFloor: spend.measurement === PlaybookSpendMeasurement.PARTIAL,\n totalTokens: spend.totalTokens ?? null,\n };\n}\n\n/**\n * A landing probe the working tree does not satisfy, as the row carries it (#2530, #3204): where it looks and what for — the paths, the\n * symbols it wants declared there, a label pack's key, the shell surface it reads — and a shell probe's explanation of\n * what that surface lacks, still carries, or could not be asked. The probe's KIND stays the companion's: what it looks\n * for is what a reader needs, and each kind's facts say which it is.\n */\nfunction projectBuildTaskUnmetProbe(unmet: ApplicationBuildTaskUnmetProbe): Record<string, unknown> {\n const { probe } = unmet;\n const declares = probe.kind === BuildPlanTaskLandedProbeKind.COMMITTED_FILE_DECLARES || probe.kind === BuildPlanTaskLandedProbeKind.ANY_COMMITTED_FILE_DECLARES;\n return {\n paths: [...buildPlanTaskLandedProbePaths(probe)],\n declarations: declares ? [...probe.declarations] : [],\n keyPrefix: probe.kind === BuildPlanTaskLandedProbeKind.COMMITTED_LABEL_PACKS_DECLARE ? probe.keyPrefix : null,\n shellSurface: probe.kind === BuildPlanTaskLandedProbeKind.SHELL_SURFACE_CARRIES_PLAN ? probe.surface : null,\n shell: unmet.shell ? {\n unanswerable: unmet.shell.unanswerable ? unmet.shell.unanswerable : null,\n missing: [...unmet.shell.missing],\n declinedButPresent: [...unmet.shell.declinedButPresent],\n absentPaths: [...unmet.shell.absentPaths],\n } : null,\n registered: unmet.registered ? {\n unanswerable: unmet.registered.unanswerable ? unmet.registered.unanswerable : null,\n missing: unmet.registered.missing.map((shortfall) => ({ ...shortfall })),\n absentPaths: [...unmet.registered.absentPaths],\n } : null,\n };\n}\n\n/**\n * One build task's record as the workbench row carries it (#2530) — `Workbench_BuildTaskRecord`. Pure.\n *\n * What the record leaves out it leaves ABSENT, never false: an attempt that reported no cost has a null cost, a task\n * that is not stuck a null reason. The record's own vocabularies the shared contract cannot name (a probe's kind, a\n * run's disposition) are carried as what they mean for a reader: what a probe reads and looks for there, and on each\n * attempt what made it fail or not count (the checks it failed, what it wrote out of scope, a sibling that overwrote it).\n */\nexport function projectBuildTaskRecordRow(record: ApplicationBuildTaskRecord, attemptsTruncated: boolean): Record<string, unknown> {\n return {\n workbenchBuildPlanTaskId: sanitizeWorkbenchCreationPlaneIdentity(record.taskRef),\n taskRef: record.taskRef,\n status: record.status,\n attemptCount: record.attempts.filter(isCountedBuildTaskAttempt).length,\n attempts: record.attempts.map((attempt) => ({\n runTaskId: attempt.runTaskId,\n startedAt: toInstant(attempt.startedAt),\n settledAt: toInstant(attempt.settledAt),\n status: attempt.status,\n generationStep: attempt.generationStep === true,\n refusedBeforeStart: attempt.refusedBeforeStart === true,\n ranNothing: attempt.ranNothing === true,\n failureAttribution: attempt.failureAttribution ?? null,\n interferenceSuspected: attempt.interferenceSuspected === true,\n rearmReason: attempt.rearm?.reason ?? null,\n rearmNote: attempt.rearm?.note ? attempt.rearm.note : null,\n error: attempt.error ? attempt.error : null,\n ...projectBuildTaskAttemptSpend(attempt),\n filesChanged: attempt.filesChanged ?? null,\n failedCheckRefs: [...(attempt.failedCheckRefs ?? [])],\n outOfScopePaths: [...(attempt.outOfScopePaths ?? [])],\n interference: attempt.interference ? {\n overlappingTaskRefs: [...attempt.interference.overlappingTaskRefs],\n contendedProductPaths: [...attempt.interference.contendedProductPaths],\n requeued: attempt.interference.requeued,\n } : null,\n })),\n attemptsTruncated,\n stuckReason: record.stuck?.reason ?? null,\n stuckQuestion: record.stuck?.question ? record.stuck.question : null,\n stuckDocumentRef: record.stuck?.documentRef ? record.stuck.documentRef : null,\n waitingOnTaskRefs: [...(record.waitingOn ?? [])],\n unmetProbes: (record.unmetProbes ?? []).map(projectBuildTaskUnmetProbe),\n schemaPlanSyncState: record.schemaPlanSyncState ?? null,\n designTokenBlockState: record.designTokenBlockState ?? null,\n brandDesignState: record.brandDesignState ?? null,\n landingBlockedBy: record.landingBlockedBy ? record.landingBlockedBy : null,\n // By build-plan task row id, the sanitized ref, so each opens the task it names (#2652).\n followUpTaskIds: (record.followUpTaskRefs ?? []).map(sanitizeWorkbenchCreationPlaneIdentity),\n followUpOfTaskId: record.followUpOf ? sanitizeWorkbenchCreationPlaneIdentity(record.followUpOf) : null,\n // A person's closure (#3224, #3227): landed because they said so, which the record must never let pass for a probe.\n closureKind: record.closure?.kind ?? null,\n closureSatisfiedBy: record.closure?.satisfiedBy ?? null,\n closureReason: record.closure?.reason ?? null,\n unverifiable: record.unverifiable === true,\n landedBeforeAnyRun: record.landedBeforeAnyRun !== undefined,\n landedBeforeAnyRunPaths: [...(record.landedBeforeAnyRun?.probedPaths ?? [])],\n };\n}\n\n/**\n * How often the input signature is re-read when nothing has prompted it.\n *\n * The longest a change made outside this process can go unnoticed when the watcher did not report it.\n * The composite signature walks ~10,400 files on Wonder Todos (~60-110 ms warm, 2026-09-24) — but only\n * when the companion's change feed cannot vouch that nothing it covers moved (#3452): while the source\n * watcher is proven live, each part reuses its fingerprint until an event touches its inputs, so a quiet\n * sweep walks nothing. The watcher now covers the whole working tree and git's `HEAD` and reflog, so a\n * hand edit or a commit reaches `reconcileInputSignature` through the settled seam within the settle\n * window, not at the next sweep. The signature half of a sweep does nothing while no board is cached; its\n * publication half (see `sweep()`) runs only while a served board is WATCHED. It replaces a 60 s TTL.\n */\nconst INPUT_SIGNATURE_SWEEP_INTERVAL_MS = 15_000;\n\n/**\n * How old the secrets listing may be before a read starts refreshing it behind the rows it serves (#1637).\n * See `deriveApplicationSecretRows`: a read never waits for a refresh, only for the first listing.\n */\nconst APPLICATION_SECRETS_LISTING_REUSE_MS = 60_000;\n\n/**\n * How long an invalidation waits before the boards are re-derived for publication.\n *\n * Invalidations arrive in bursts — a dispatch operation's `finally` and the write register's mutation\n * seam fire for one landing — and each re-derivation can cost seconds. Waiting for the burst to settle\n * turns N invalidations into one recompute, and a quarter second is invisible next to the recompute.\n */\nconst REPUBLISH_SETTLE_MS = 250;\n\n/**\n * The longest a burst may keep postponing a publication pass.\n *\n * The settle window restarts on every invalidation, so a steady stream of them less than 250 ms apart\n * would otherwise postpone publication for as long as the stream lasted. Past this bound the pass runs\n * anyway; anything arriving during it asks for one more pass.\n */\nconst REPUBLISH_MAX_WAIT_MS = 2_000;\n\n/**\n * How long one read of the input signature may be reused by another cache MISS.\n *\n * A cold Home read misses four slots in the same tick, and each records the signature it was computed\n * under; without this they walk the tree four times for one answer. Reusing a signature read a moment\n * EARLIER is the safe direction: an edit landing inside the window leaves the slot marked with the\n * older signature, so the next check drops it. The sweep and the REST door never reuse — they ask for\n * a fresh reading.\n */\nconst INPUT_SIGNATURE_REUSE_MS = 500;\n\n/**\n * The longest the boards are kept while the input signature cannot be READ.\n *\n * An unreadable tree (a permission error, a vanished root) cannot show movement — and the signature\n * helper's own contract is that `null` must never authorize a cache hit. Treating it as movement on\n * every sweep would recompute every board every 15 s; ignoring it would switch every out-of-process\n * freshness line off, silently and for good. So it degrades to a bounded clock, with a warning, which\n * is the most this plane can honestly promise about inputs it cannot see.\n */\nconst UNREADABLE_SIGNATURE_MAX_AGE_MS = 60_000;\n\n/**\n * The fields this plane stamps as PROVENANCE rather than content — they describe WHEN a row was\n * computed, so they differ on every recompute by construction.\n *\n * Excluded from the \"did the board move?\" comparison, never from the rows. Declared here, beside the\n * one place that stamps them, because only the producer knows which of its fields are provenance —\n * and a producer declaring its OWN field is not the hand-kept vocabulary of other people's fields\n * that `projected-row-determinism.test.ts` rejected.\n */\nexport const CREATION_PLANE_PROVENANCE_ROW_FIELDS: readonly string[] = ['computedAt'];\n\n/**\n * One creation-plane board whose re-derivation differs from what its readers were last served.\n *\n * `before` is what a reader holds; `after` is what they would read now. The listener diffs them by\n * the resource's own identity field, which the projection has already stamped onto both.\n */\nexport interface CreationPlaneBoardChange {\n readonly behavior: string;\n readonly before: readonly Record<string, unknown>[];\n readonly after: readonly Record<string, unknown>[];\n readonly provenanceFields: readonly string[];\n}\n\nexport type CreationPlaneBoardChangeListener = (change: CreationPlaneBoardChange) => void;\n\n/**\n * Boards published by publication PASSES only — the 15 s sweep's, or the one an invalidation\n * schedules — never by a read (#1310, fourth review R3).\n *\n * A read-time announcement is right for a board whose rows change when something HAPPENS: the\n * reader's own re-read after the publication compares equal, and it stops. The trace-session board\n * is not such a board. Its `eventCount` and `stepCount` grow continuously while a coding or playbook\n * run is tracing, so every re-read after a publication could find new events and publish again —\n * one publication per list round trip for as long as a run is active. Published by passes alone (a\n * sweep every 15 s; an invalidation's after a 250 ms settle, bounded at 2 s), it moves at most once\n * per pass, which is as fresh as a count of events needs to be.\n */\nconst CREATION_PLANE_PASS_ONLY_BEHAVIORS: ReadonlySet<string> = new Set<string>([WorkbenchCreationPlaneBehavior.TRACE_SESSIONS]);\n\n/**\n * Whether a publication for this behavior would reach anybody.\n *\n * The notifier answers it from the live socket rooms. It is what bounds the background cost: a board\n * is re-derived for publication only while a subscriber is listening for it, so a companion with no\n * workbench open recomputes nothing on an invalidation, however many it receives.\n */\nexport type CreationPlaneBoardWatchedPredicate = (behavior: string) => boolean;\n\n/**\n * The RAW eligibility board, cached beside the rows derived from it, so `GET /playbooks` — the REST\n * door scripts and `wildo context` use — shares the one derivation instead of paying its own (the\n * issue's item 5: measured 22–134 s, with no single-flight, so repeated calls stacked).\n */\nconst PLAYBOOK_ELIGIBILITY_BOARD_CACHE_KEY = 'creation-plane.playbook-eligibility-board';\n\n/**\n * The cache slot of the family states Home reads — keyed beside the behaviors, though no behavior\n * serves it directly: it is an INPUT two behaviors share, and one slot is what keeps them agreeing.\n */\nconst SPECIFICATION_ARTIFACT_STATES_CACHE_KEY = 'creation-plane.home.specification-artifact-states';\n\n/** The trace index is bounded by the shared workbench page ceiling, not by the read route's default 50. */\nconst TRACE_SESSION_LIMIT = 1000;\n\n/**\n * Re-exported from the SHARED vocabulary (`@wildo-ai/platform-core-shared`), where the identity\n * rule moved once the frontend needed it too — an interrupted run's re-dispatch derives the row\n * address from its `playbookRef`. One named source; this alias keeps companion-side call sites\n * and pins stable.\n */\nexport const sanitizeCreationPlaneIdentity = sanitizeWorkbenchCreationPlaneIdentity;\n\n/**\n * Whether a re-derived board says the same thing as the one its readers hold, provenance aside.\n *\n * The gate that keeps an idle application silent: the introspection notifier would reach the same\n * conclusion row by row, but deciding it here means an unchanged board costs no listener call at\n * all. Order-sensitive on purpose — every board is produced by one code path in a stable order, and\n * a reordering IS a change a list surface would show.\n */\nexport function areBoardRowsEqual(\n before: readonly Record<string, unknown>[],\n after: readonly Record<string, unknown>[],\n): boolean {\n if (before.length !== after.length) return false;\n const withoutProvenance = (row: Record<string, unknown>): string => JSON.stringify(\n Object.fromEntries(Object.entries(row).filter(([key]) => !CREATION_PLANE_PROVENANCE_ROW_FIELDS.includes(key))),\n );\n return before.every((row, index) => withoutProvenance(row) === withoutProvenance(after[index]!));\n}\n\n/**\n * The field each creation-plane behavior writes its row identity to — ONE total map, so the field a\n * row is stamped with and the field a publication is diffed by cannot be two spellings of one fact.\n *\n * The notifier diffs by the resource's registered `resourceFieldIdentifier`. If the two ever\n * differed, `diffProjectedRows` would find no identity on any row and a moved board would publish\n * nothing, with nothing reporting it — so `creation-plane-projection.test.ts` holds this map equal to\n * the registry, and `Record<WorkbenchCreationPlaneBehavior, …>` makes a new behavior a compile error\n * here rather than a silent gap.\n */\nexport const CREATION_PLANE_IDENTITY_FIELDS: Readonly<Record<WorkbenchCreationPlaneBehavior, string>> = {\n [WorkbenchCreationPlaneBehavior.PLAYBOOK_ELIGIBILITY]: 'workbenchPlaybookId',\n [WorkbenchCreationPlaneBehavior.BUILD_PLAN_TASKS]: 'workbenchBuildPlanTaskId',\n [WorkbenchCreationPlaneBehavior.RUN_WRITE_RECORDS]: 'workbenchRunWriteRecordId',\n [WorkbenchCreationPlaneBehavior.TRACE_SESSIONS]: 'workbenchTraceSessionId',\n [WorkbenchCreationPlaneBehavior.GOVERNANCE_DOCUMENTS]: 'workbenchGovernanceDocumentId',\n [WorkbenchCreationPlaneBehavior.GOVERNANCE_QUESTIONS]: 'workbenchGovernanceQuestionId',\n [WorkbenchCreationPlaneBehavior.BUILD_DISPATCH_PLAN]: 'workbenchBuildDispatchPlanId',\n [WorkbenchCreationPlaneBehavior.BUILD_DISPATCHES]: 'workbenchBuildDispatchId',\n [WorkbenchCreationPlaneBehavior.BUILD_TASK_RECORDS]: 'workbenchBuildTaskRecordId',\n [WorkbenchCreationPlaneBehavior.PLAYBOOK_RUNS]: 'workbenchPlaybookRunId',\n [WorkbenchCreationPlaneBehavior.WAITING_PLAYBOOK_RUNS]: 'workbenchWaitingPlaybookRunId',\n [WorkbenchCreationPlaneBehavior.CODING_LANE_STATUS]: 'workbenchCodingLaneStatusId',\n [WorkbenchCreationPlaneBehavior.PARKED_CODING_QUESTIONS]: 'workbenchParkedCodingQuestionId',\n [WorkbenchCreationPlaneBehavior.DOSSIER_ENTRIES]: 'workbenchDossierEntryId',\n [WorkbenchCreationPlaneBehavior.HOME_LINES]: 'workbenchCreationHomeLineId',\n [WorkbenchCreationPlaneBehavior.CREATION_OUTCOMES]: 'workbenchCreationOutcomeId',\n [WorkbenchCreationPlaneBehavior.APPLICATION_SECRETS]: 'workbenchApplicationSecretId',\n};\n\n/** One cached derivation — a board's rows, or an input two boards share. */\ninterface BoardCacheSlot {\n cache: { value: unknown } | null;\n /**\n * Bumped by every {@link CreationPlaneProjectionCompanionService.invalidateDerivedBoards}. A\n * recompute captures it BEFORE deriving and refuses to populate the cache when it moved — without\n * this, an invalidation that fires while a recompute is in flight (a poll-started derivation\n * straddling a dispatch's post-operation invalidation) is silently cancelled out: the in-flight\n * closure would repopulate the cache with the PRE-mutation board, which is the exact \"as of before\n * your dispatch\" answer this cache's contract forbids. With no TTL any more, that stale board\n * would stay until the next invalidation, so the guard matters more than it did.\n */\n epoch: number;\n /** Concurrent LISTs during a cold recompute share ONE derivation instead of stacking ~14s reads. */\n inFlight: Promise<unknown> | null;\n /** The input signature read when the cached value's derivation STARTED; `null` when it could not be read. */\n inputSignature: string | null;\n /** The same, for the derivation currently in flight — so a check can drop a flight that started before an edit. */\n inFlightInputSignature: string | null;\n}\n\n/**\n * The IN-PROCESS half of the companion's introspection source — the CREATION PLANE\n * (the mechanism that decided issue #166).\n *\n * The behaviors here — one per `WorkbenchCreationPlaneBehavior` member, fifteen today — project the\n * companion's OWN runtime services: no subprocess, no app-dist import, and mostly milliseconds per\n * read. The exceptions are the eligibility board, the build-plan board and the dispatch plan, whose\n * seconds-long derivations are exactly why the CACHE below exists. The behavior-id vocabulary is owned by\n * `@wildo-ai/platform-core-shared` (`WorkbenchCreationPlaneBehavior`), the same package that writes\n * the ids into the resource bindings, so the two ends cannot drift.\n *\n * ## The eligibility cache (requirement R3 of the plan)\n *\n * Resource surfaces multiply the consumers of a LIST (RMM, embedded lists, label resolution), so\n * serving the raw recompute would make the board WORSE than the bespoke route it replaces. The\n * cache is `{rows, computedAt}`, held until something says its inputs moved — see \"Freshness\"\n * below — and `computedAt` is projected onto every row so the board can render \"as of\".\n *\n * ## Freshness: two lines, and why the TTL is gone (#1310)\n *\n * The cache was freshened by THREE mechanisms — a 60 s TTL, an epoch, and a mutation listener —\n * while the two costs beneath it (the specifications evaluation, `53d843d6`; the schema-plan\n * subprocess, `a6fa293f`) were already keyed on input signatures. Now there are two lines, one per\n * KIND of input:\n *\n * 1. **In-process mutations announce themselves.** A run's landing (the write register), a commit\n * the loop makes (#1534), every change to a build task's run state (a coding execution selected,\n * admitted or resumed, a chain settling, a pre-admission refusal, a re-arm, a generation step\n * opening and ending — `announceRunStateChanged`), a dispatch operation and the explicit Refresh\n * route all call {@link invalidateDerivedBoards}.\n * 2. **Everything outside this process is SIGNED.** {@link readInputSignature} fingerprints the\n * application's working tree (no `node_modules`, no `dist`, no dotted directories), every build\n * output the boards read (each application package's companion tree, and the schema-plan inputs,\n * through the signatures of the caches that read them), the compiled\n * playbook catalog, and git's `HEAD` plus its reflog — the file every commit, checkout and reset\n * appends to. A slot remembers the signature it was computed under; when the current one differs,\n * the boards drop. That is what closes the two gaps the TTL existed for: a HUMAN commit, and a\n * hand-edited specification (its edit, and then its emit).\n *\n * The signature is checked by a 15 s sweep AND whenever the introspection source watcher reports a\n * settled burst of events (since #3452 the watcher covers the whole working tree and git's `HEAD` and reflog,\n * so an edit or a commit is noticed within its settle window). The sweep does not walk on its own any more:\n * each part of the signature is reused while the watcher's change feed vouches its inputs did not move. So a\n * move the watcher MISSED (a dropped event, a write through a hard link on Linux, a watcher gone deaf) reaches\n * the boards when the watcher's clock marks everything moved (30 s off macOS, 5 min on macOS) or its canary\n * withdraws the feed (~35 s), not at the next sweep; with no watcher at all, every sweep walks, as before\n * #3452 (`staleness-presents-as-a-logic-defect.md` records why a watcher alone is never trusted). A cache HIT never walks the tree;\n * a MISS reads the signature it is computed under (~60-110 ms warm, reused across the misses of one\n * moment), which is noise beside the seconds a miss costs. The one read that asks for a fresh check\n * is `GET /playbooks` — see {@link readFreshPlaybookEligibilityBoard}.\n *\n * In the monorepo `logs/HEAD` is repository-wide, so any session's commit drops the boards. That is\n * the safe direction, and its cost is bounded by the publication gate below: a board is re-derived in\n * the background only while somebody is watching it.\n *\n * **Rejected: keeping the TTL as a third line.** A TTL can only be correct by expiring, so it both\n * serves stale rows for up to its length AND recomputes an unchanged board on schedule — and at 60 s\n * it matched the workbench's poll, so most polls paid the recompute (the issue's item 4). The\n * signature has neither cost. What it cannot see is an input nobody enumerated; the answer to that is\n * to add the input to the signature, and the Refresh route stays as the operator's escape hatch.\n * The `.git/index` is deliberately NOT signed: the derivation's own `git status` may rewrite it, which\n * would make every board recompute invalidate itself.\n *\n * ## Push (#1310)\n *\n * An invalidation also RE-DERIVES every board a reader has been served and hands each one whose rows\n * moved to {@link onBoardRowsChanged} listeners — the introspection notifier, which diffs by row\n * identity and publishes over the socket the workbench already listens on. A recompute identical to\n * what was served publishes NOTHING, so an idle application stays silent. A board is re-derived only\n * while a subscriber is WATCHING it (the notifier answers from the live socket rooms), so a companion\n * with no workbench open recomputes nothing in the background, however many invalidations it gets.\n *\n * Push also covers the boards NO event invalidates — a playbook run moving between states, a new\n * trace session — because each 15 s sweep runs a publication pass over the watched boards too (see\n * {@link sweep}). That matters more than it looks: a workbench LIST is served from the browser's read\n * cache while its collection room is confirmed, so a client poll never reaches this companion, and a\n * publication is the only thing that clears that cache.\n *\n * Rule-5 posture (`one-source-of-truth.md`): this is a per-run projection cache. Deleting it costs\n * one recompute, never truth, and nothing anywhere reads it as an acceptance.\n *\n * ## Identity sanitization, and why it is here\n *\n * The binding's `identityFields` composition refuses any value outside `[a-zA-Z0-9_-]`, and this\n * plane's business keys legitimately violate it: playbook refs carry dots (`top_down.phase-gate`),\n * trace session ids are `dev-<ISO-ish>` directory names. So each projection emits its identity\n * field itself — `.` becomes `__`, any other invalid character becomes `-` — and REFUSES on a\n * post-sanitization duplicate rather than serving two rows under one id (the same trade the\n * source's composed-identity stamping makes, for the same reason: READ returning an arbitrary row\n * is worse than a refusal).\n */\n/**\n * A product-derived fact's value as one line, read the way a \"from you\" answer is (#1454 review): a\n * string as written, a list joined, anything else as its JSON — a structured value has no sentence of\n * its own, and inventing one here would be display text no label owns.\n */\nfunction summarizeDerivedFactValue(value: unknown): string {\n if (typeof value === 'string') return value;\n if (Array.isArray(value) && value.every((item) => typeof item === 'string' || typeof item === 'number')) return value.map(String).join(', ');\n return JSON.stringify(value);\n}\n\n/** What a board over the build plan answers while a failed module holds the plan (#3258): nothing to show, and the feed names the module. */\nfunction holdBoardOnFailedModule<THeld>(held: THeld): (error: unknown) => THeld {\n return (error) => {\n if (isBuildPlanHeldByFailedModule(error)) return held;\n throw error;\n };\n}\n\n@injectable()\nexport class CreationPlaneProjectionCompanionService {\n /**\n * One cache slot per EXPENSIVE behavior, keyed by behavior id.\n *\n * It was three fields serving eligibility alone. Measured 2026-09-17 against the running Wonder\n * Todos companion, per authenticated LIST:\n *\n * | behavior | cold | warm |\n * |---|---|---|\n * | `workbench-playbooks` | 17.1s | **0.02s** — it had this cache |\n * | `workbench-build-plan-tasks` | 13.8s | **13.8s** — it did not |\n * | `workbench-trace-sessions` | 0.50s | — cheap, needs none |\n * | `workbench-run-write-records` | 0.13s | — cheap, needs none |\n *\n * Both expensive derivations pay the same thing — `loadSpecificationsCompanionData` plus the\n * build-plan read and its git landing probes — so the cache belongs to the COST, not to\n * eligibility. Giving the build plan its own copy of the epoch/in-flight pair would be the\n * \"N call sites that drift\" shape this file's own constructor comment warns about, so the slot is\n * keyed instead and both go through {@link deriveCached}.\n *\n * The cheap two are deliberately NOT cached: a cache that saves 130ms buys nothing and adds a\n * staleness window to a surface that currently has none.\n */\n private readonly boardCaches = new Map<string, BoardCacheSlot>();\n\n /**\n * The creation plane's CHANGE CURSOR (#1657) — what `GET /creation/pulse` serves, in O(1).\n *\n * Moved by every invalidation, which every mutation path ends in (run writes, accepted runs, coding-run\n * state changes, every creation-plane operation), and by a watched board's republication. It is a\n * hint that something may have moved, never a statement of what: a poller that sees it move reads the\n * feed. Not persisted — a restart resets it to 0, which a poller reads as \"moved\".\n */\n private changeSequence = 0;\n private changedAt: string | null = null;\n\n private markCreationChanged(): void {\n this.changeSequence += 1;\n this.changedAt = new Date().toISOString();\n }\n\n public readChangeCursor(): { readonly sequence: number; readonly changedAt: string | null } {\n return { sequence: this.changeSequence, changedAt: this.changedAt };\n }\n\n private boardCacheSlot(behaviorId: string): BoardCacheSlot {\n let slot = this.boardCaches.get(behaviorId);\n if (!slot) {\n slot = { cache: null, epoch: 0, inFlight: null, inputSignature: null, inFlightInputSignature: null };\n this.boardCaches.set(behaviorId, slot);\n }\n return slot;\n }\n\n /**\n * Serve one expensive derivation from its slot, recomputing on a miss.\n *\n * Every property the eligibility cache had, now shared: single-flight, and the epoch guard that\n * keeps a derivation which straddled an invalidation OUT of the cache while still answering its own\n * callers. The slot also records the input signature it was computed under, read BEFORE deriving —\n * so an input that moves mid-derivation leaves the slot marked with the older signature and the\n * next check drops it, rather than the reverse.\n */\n private deriveCached<TValue>(cacheKey: string, compute: () => Promise<TValue>): Promise<TValue> {\n const slot = this.boardCacheSlot(cacheKey);\n if (slot.cache) return Promise.resolve(slot.cache.value as TValue);\n if (slot.inFlight) return slot.inFlight as Promise<TValue>;\n\n const epochAtStart = slot.epoch;\n // Read on a MISS only — a hit never walks the tree — and shared across the misses of one moment.\n const signatureAtStart = this.readInputSignature({ reuse: true });\n const flight = (async () => {\n const value = await compute();\n if (slot.epoch === epochAtStart) {\n slot.cache = { value };\n slot.inputSignature = signatureAtStart;\n }\n return value;\n })().finally(() => {\n if (slot.inFlight === flight) slot.inFlight = null;\n });\n slot.inFlight = flight;\n slot.inFlightInputSignature = signatureAtStart;\n return flight;\n }\n\n /** The rows each behavior was last SERVED to a reader — what the next publication diffs against. */\n private readonly lastServedRows = new Map<string, readonly Record<string, unknown>[]>();\n /**\n * The START sequence of the derivation that produced each baseline (#1310, fourth review R2).\n *\n * Derivations finish out of order — a dropped in-flight derivation still answers its callers, and a\n * read can outlast a pass or the reverse — so \"last to finish\" is not \"newest\". A finishing\n * derivation that STARTED before the one behind the current baseline neither replaces it nor\n * announces anything: its rows describe an older world, and publishing them would hand a live\n * detail pane stale content under a newer generation.\n */\n private readonly lastServedSequence = new Map<string, number>();\n private derivationSequence = 0;\n private readonly boardChangeSubscribers = new Set<{\n readonly listener: CreationPlaneBoardChangeListener;\n readonly isWatched: CreationPlaneBoardWatchedPredicate | undefined;\n }>();\n private lastSignatureReading: { value: string | null; atMs: number } | undefined;\n private unreadableSignatureSinceMs: number | undefined;\n private republishTimer: NodeJS.Timeout | undefined;\n /** When the currently pending publication was FIRST requested — what {@link REPUBLISH_MAX_WAIT_MS} is measured from. */\n private republishRequestedSinceMs: number | undefined;\n private republishing: Promise<void> | undefined;\n private republishRequested = false;\n private sweepTimer: NodeJS.Timeout | undefined;\n private unsubscribeWatcher: (() => void) | undefined;\n /** Resolved once: where git keeps `HEAD` for this application, or `null` when it is not in a repository. */\n private gitSignatureFiles: readonly string[] | undefined;\n\n constructor(\n @inject(COMPANION_SERVICE_TYPES.PlaybookRunService)\n private readonly playbookRunService: PlaybookRunCompanionService,\n @inject(COMPANION_SERVICE_TYPES.ApplicationBuildDispatchService)\n private readonly buildDispatchService: ApplicationBuildDispatchCompanionService,\n @inject(COMPANION_SERVICE_TYPES.PlaybookRunWriteRegisterService)\n private readonly runWriteRegister: PlaybookRunWriteRegisterCompanionService,\n @inject(COMPANION_SERVICE_TYPES.ExecutionTraceReadService)\n private readonly executionTraceReadService: ExecutionTraceReadCompanionService,\n @inject(COMPANION_SERVICE_TYPES.CodingAgentDispatchService)\n private readonly codingAgentDispatchService: CodingAgentDispatchCompanionService,\n @inject(COMPANION_SERVICE_TYPES.DossierService)\n private readonly dossierService: DossierCompanionService,\n /* Which coding runs have been accepted (#1454, Step 7) — joined onto the dispatch rows by task id. */\n @inject(COMPANION_SERVICE_TYPES.CodingRunWriteRegisterService)\n private readonly codingRunWriteRegister: CodingRunWriteRegisterCompanionService,\n /* The specifications package, for the artifact states Home's outcomes and suggestions are measured on. */\n @inject(COMPANION_SERVICE_TYPES.CompanionContext)\n private readonly companionContext: CompanionContext,\n /* The settled-source seam that makes an input-signature check EARLY (#1310); the sweep makes it certain. */\n @inject(COMPANION_SERVICE_TYPES.IntrospectionSourceWatcherService)\n private readonly sourceWatcher: IntrospectionSourceWatcherCompanionService,\n @inject(SAAS_SERVICE_TYPES.Logger)\n private readonly logger: LoggerService,\n ) {\n /*\n * A run landing files is exactly the event that changes playbook eligibility, and every run's\n * landing reports to the write register — so the register's mutation seam is the ONE hook that\n * covers playbook runs AND reverts without this service being wired into each dispatch handler\n * (the N-call-sites shape that drifts). What it does NOT cover — a coding-agent landing the\n * HUMAN commits in git — no hook can see; the input signature (see {@link start}) is what\n * notices it.\n */\n this.runWriteRegister.registerMutationListener(() => this.invalidateDerivedBoards());\n /*\n * A coding run the LOOP commits under the autonomy posture (#1534) is a landing the loop can see:\n * the dispatch service announces it and the boards drop. Subscribed from this side because this\n * service already depends on the dispatch service; the reverse injection would be a cycle.\n */\n this.codingAgentDispatchService.registerRunAcceptedListener(() => this.invalidateDerivedBoards());\n /*\n * And every other change to a build task's RUN STATE (#1310): a coding execution selected, a run\n * admitted or resumed, a chain settling — including one that committed nothing — a dispatch\n * refused before admission, a re-arm, and a generation step opening and ending. Each is\n * actor-plane state no file shows: a selected or started run is in flight to the next-task\n * selection, a no-product task lands on a completed durable run (the RAN-not-PROVEN mark), a\n * refusal leaves a counted failure, a re-arm releases a task held as stuck. Neither the accepted-run hook\n * above nor the input signature can see them; they were bounded only by the 60 s TTL, and this is\n * what let that go.\n */\n this.codingAgentDispatchService.registerRunStateChangedListener(() => this.invalidateDerivedBoards());\n }\n\n /**\n * Begin watching the boards' out-of-process inputs. Idempotent; started by the companion's\n * freshness plane, after the WebSocket server exists.\n *\n * Two triggers for one check — see \"Freshness\" in the class notes: the watcher's settled bursts\n * make it early, the sweep makes it certain. Both are `unref`'d, so neither holds a process open.\n */\n public start(): void {\n if (this.sweepTimer) return;\n this.unsubscribeWatcher = this.sourceWatcher.onSourceSettled(() => this.reconcileInputSignature());\n this.sweepTimer = setInterval(() => this.sweep(), INPUT_SIGNATURE_SWEEP_INTERVAL_MS);\n this.sweepTimer.unref?.();\n }\n\n /**\n * One sweep: check the input signature, then run a publication pass over the WATCHED boards.\n *\n * The pass is what makes push the freshness line for EVERY board, not only for the ones an event\n * invalidates. A workbench LIST is served from the browser's read cache while its collection room\n * is confirmed — a poll never reaches the companion — and that cache is cleared only by a\n * publication. So a board that moves with no invalidating event of its own (a playbook run changing\n * state, a waiting run, a new trace session) would otherwise stay stale on screen indefinitely.\n *\n * What a pass costs: every CACHED board (eligibility, build-plan tasks, the dispatch plan, the\n * family states) answers from its slot and compares equal. The rest are actor-plane and file reads —\n * runs, dispatches, waiting runs, parked questions, the dossier, governance documents — which Home's\n * lines also join. Only boards someone watches are re-derived, and nothing runs while nobody is.\n *\n * The trace-session board moves whenever the companion records a session — which it does for its\n * own API requests (measured 2026-09-24: a `GET /api/companion/playbooks/runs` produced one, three\n * resource LISTs produced none) — AND whenever a live run appends events or steps, since each row\n * carries `eventCount` / `stepCount`. That second source is continuous while a run traces, which is\n * why the board is pass-only ({@link CREATION_PLANE_PASS_ONLY_BEHAVIORS}): it is republished at\n * most once per publication pass, and a read never publishes it.\n */\n public sweep(): void {\n this.reconcileInputSignature();\n this.scheduleRepublish();\n }\n\n public stop(): void {\n if (this.sweepTimer) clearInterval(this.sweepTimer);\n if (this.republishTimer) clearTimeout(this.republishTimer);\n this.sweepTimer = undefined;\n this.republishTimer = undefined;\n this.republishRequestedSinceMs = undefined;\n this.unsubscribeWatcher?.();\n this.unsubscribeWatcher = undefined;\n }\n\n /**\n * Subscribe to boards whose re-derivation moved — the seam the WebSocket notifier plugs into.\n *\n * `isWatched`, when given, says whether a publication for a behavior would reach anybody; a board no\n * subscriber watches is not re-derived by a pass, though its served baseline is kept (see\n * {@link republishChangedBoards}). Without it the subscriber counts as watching everything.\n */\n public onBoardRowsChanged(listener: CreationPlaneBoardChangeListener, isWatched?: CreationPlaneBoardWatchedPredicate): () => void {\n const subscriber = { listener, isWatched };\n this.boardChangeSubscribers.add(subscriber);\n return () => this.boardChangeSubscribers.delete(subscriber);\n }\n\n /**\n * Drop the boards when the input signature says something outside this process moved them.\n *\n * Compared per SLOT, against the signature that slot was computed under, so a slot filled after a\n * change is not dropped for it and one filled before it always is.\n *\n * An UNREADABLE signature is not \"unchanged\". It cannot show movement, but the helper's contract is\n * that `null` never authorizes a cache hit — so the boards are dropped at most once per\n * {@link UNREADABLE_SIGNATURE_MAX_AGE_MS}, with a warning the first time, rather than every sweep\n * (a recompute storm) or never (freshness silently off for good).\n */\n public reconcileInputSignature(): void {\n /*\n * Cached slots AND derivations still in flight: a flight that started before an edit would\n * otherwise be JOINED by the next reader and answer about the tree as it was.\n *\n * A dropped flight is not cancelled — nothing here can cancel a derivation — so it runs to\n * completion for the callers already waiting on it, and the epoch guard keeps its answer out of\n * the cache. The trade is deliberate: under continuous edits a new derivation may start beside an\n * orphan, but ONLY when the inputs really moved (an unmoved signature never drops anything), and a\n * stale answer served as fresh would be the worse failure.\n */\n const cachedSlots = [...this.boardCaches.values()].filter((slot) => slot.cache !== null || slot.inFlight !== null);\n if (cachedSlots.length === 0) return;\n const current = this.readInputSignature({ reuse: false });\n if (current === null) {\n const now = Date.now();\n if (this.unreadableSignatureSinceMs === undefined) {\n this.unreadableSignatureSinceMs = now;\n this.logger.warn(\n 'Creation-plane input signature is unreadable; boards now refresh on a '\n + `${UNREADABLE_SIGNATURE_MAX_AGE_MS / 1000}s clock until it can be read again`,\n { saasRoot: this.companionContext.saasRoot },\n );\n return;\n }\n if (now - this.unreadableSignatureSinceMs >= UNREADABLE_SIGNATURE_MAX_AGE_MS) {\n this.unreadableSignatureSinceMs = now;\n this.invalidateDerivedBoards();\n }\n return;\n }\n this.unreadableSignatureSinceMs = undefined;\n if (cachedSlots.some((slot) => (slot.cache !== null ? slot.inputSignature : slot.inFlightInputSignature) !== current)) {\n this.invalidateDerivedBoards();\n }\n }\n\n /**\n * A fingerprint of every out-of-process input the cached boards read, composed of four parts:\n *\n * 1. **The application's working tree**, signed WHOLE (bar `node_modules`, `dist` and dotted\n * directories) rather than the specifications package alone, because a build task LANDS when its\n * declared product is committed and clean — and a product can be any file of any package.\n * 2. **Every BUILD OUTPUT the boards read.** Part 1 skips `dist`, and without this part a `src` edit\n * moved the signature BEFORE its emit: the board recomputed against the old build, was cached\n * under the new signature, and the emit then changed nothing the signature saw — stale until an\n * unrelated invalidation. The builds are read two ways, and both are signed:\n * - the COMPANION TREE of every application package an introspection derivation can import —\n * the specifications package the eligibility loader evaluates, and the shared library and\n * services the generation-step landing checks reach through introspection (the i18n step's\n * planner reads the resource registry and the frontend's labels that way; #1310, seventh\n * review G1). Signed with `signEvaluatedCompanionTree` over the same APPLICATION population\n * the introspection observer walks (`resolveIntrospectedApplicationPackageRoots`), so a\n * package added to the application is covered without an edit here;\n * - the schema-plan inputs (`backend-api/dist`, the resolved engine dists and the accepted plan — `signSchemaPlanInputs`).\n * Reusing the inner signatures, rather than naming the trees again here, is what keeps them from\n * drifting apart.\n * 3. **The compiled playbook catalog**, read from disk on every eligibility derivation, so a\n * framework-knowledge rebuild moves the board with no application file changing.\n * 4. **git `HEAD` and its reflog** — see {@link resolveGitSignatureFiles}.\n *\n * **Deliberately NOT signed: the injected `@wildo-ai/*` framework packages** the observer also\n * walks, which the introspection children behind the i18n landing import too (#1310, eighth review\n * L2). They cannot move while this process runs without it restarting: an engine package that\n * recompiles respawns the companion, and a restart empties every cache here — the same reason\n * `resolveSchemaPlanSyncState` gives for the planner contract. Published packages never change at\n * all. Signing them would add the whole engine to every walk to detect an event that already\n * resets this state.\n *\n * `null` only when the working tree itself cannot be read; an inner part that cannot be read (no\n * build yet) is recorded as such, so its later appearance is a movement.\n *\n * Measured on `examples/wonder-todos`, 2026-09-24, over the WHOLE composite (~10,400 files: ~3,740 in\n * parts 1 and 3, ~3,840 in `backend-api/dist` + `infrastructure`, ~2,160 in the seven application\n * packages' companion trees): ~60-65 ms warm, ~110 ms on a first walk, and a few hundred ms cold on\n * a loaded machine.\n */\n public readInputSignature(options: { readonly reuse: boolean } = { reuse: false }): string | null {\n const now = Date.now();\n if (options.reuse && this.lastSignatureReading && now - this.lastSignatureReading.atMs < INPUT_SIGNATURE_REUSE_MS) {\n return this.lastSignatureReading.value;\n }\n const value = this.computeInputSignature();\n this.lastSignatureReading = { value, atMs: now };\n return value;\n }\n\n private computeInputSignature(): string | null {\n const saasRoot = this.companionContext.saasRoot;\n if (!saasRoot) return null;\n const workingTree = signDerivedInputs([saasRoot, ...this.resolveCatalogSignatureRoots()], this.resolveGitSignatureFiles(saasRoot));\n if (workingTree === null) return null;\n const packageBuilds = resolveIntrospectedApplicationPackageRoots(this.companionContext)\n .map((packageRoot) => `package:${packageRoot}=${signEvaluatedCompanionTree(packageRoot) ?? 'unreadable'}`);\n const schemaPlanBuild = signSchemaPlanInputs(saasRoot);\n return [workingTree, ...packageBuilds, `schema-plan:${schemaPlanBuild ?? 'unreadable'}`].join('\\n');\n }\n\n private resolveCatalogSignatureRoots(): readonly string[] {\n try {\n return [resolveFrameworkKnowledgeAssetPath('playbooks'), resolveFrameworkKnowledgeAssetPath('registries')];\n } catch {\n // No compiled knowledge payload: the eligibility read will refuse on its own, far more legibly.\n return [];\n }\n }\n\n /**\n * `HEAD` and `logs/HEAD` in the git directory that holds this application — found by walking up,\n * because an application inside a monorepo has its `.git` at the repository root, and read through\n * a `gitdir:` pointer when `.git` is a file (a worktree).\n *\n * The reflog is the file that moves on EVERY commit, checkout, reset and merge, which is precisely\n * the event class the TTL existed to bound. The index is left out on purpose — see the class notes.\n *\n * What that costs, stated rather than left to be found (#1310, sixth review F3): an INDEX-ONLY change\n * — `git rm --cached`, `git restore --staged` — can flip whether a path counts as committed without\n * touching the working tree or the reflog, so nothing here sees it. It surfaces at the next event\n * that moves either, at any invalidation, or through the Refresh route; signing the index instead\n * would make every derivation (which runs `git status`) invalidate itself.\n */\n private resolveGitSignatureFiles(saasRoot: string): readonly string[] {\n if (this.gitSignatureFiles !== undefined) return this.gitSignatureFiles;\n let gitDirectory: string | null = null;\n for (let directory = resolve(saasRoot); ; directory = dirname(directory)) {\n const candidate = join(directory, '.git');\n if (existsSync(candidate)) {\n try {\n gitDirectory = statSync(candidate).isDirectory()\n ? candidate\n : resolve(directory, readFileSync(candidate, 'utf8').replace(/^gitdir:\\s*/, '').trim());\n } catch {\n gitDirectory = null;\n }\n break;\n }\n if (dirname(directory) === directory) break;\n }\n this.gitSignatureFiles = gitDirectory ? [join(gitDirectory, 'HEAD'), join(gitDirectory, 'logs', 'HEAD')] : [];\n return this.gitSignatureFiles;\n }\n\n public supports(behaviorId: string): boolean {\n return WORKBENCH_CREATION_PLANE_BEHAVIOR_IDS.includes(behaviorId);\n }\n\n /**\n * Drop EVERY derived-board cache. Called after every creation-plane mutation — the board must not\n * answer \"as of before your dispatch\" to the person who just dispatched.\n *\n * Named `invalidateEligibility` until 2026-09-17, when the build-plan board gained the same cache.\n * One mutation changes both boards — a dispatch moves what is eligible AND what has landed — so\n * one invalidation covers them, and a name saying \"eligibility\" would have been the narrower of\n * the two things it does.\n */\n public invalidateDerivedBoards(): void {\n this.markCreationChanged();\n for (const slot of this.boardCaches.values()) {\n slot.epoch += 1;\n slot.cache = null;\n /*\n * Also drop the in-flight handle: a reader arriving AFTER the invalidation must start a fresh\n * derivation rather than join one computing the pre-mutation board. The orphaned computation\n * still completes for its own callers, and the epoch guard keeps it out of the cache.\n */\n slot.inFlight = null;\n }\n this.scheduleRepublish();\n }\n\n /**\n * Re-derive the served boards once an invalidation burst settles, and publish the ones that moved.\n *\n * A no-op with no listener or no reader: publication exists for someone watching, and a board no\n * reader was served has nothing to diff against — the same reason the introspection notifier stays\n * silent on a first compilation.\n */\n private scheduleRepublish(): void {\n if (this.boardChangeSubscribers.size === 0 || this.lastServedRows.size === 0) return;\n const now = Date.now();\n this.republishRequestedSinceMs ??= now;\n if (this.republishTimer) clearTimeout(this.republishTimer);\n // The settle window, but never past the bound measured from the FIRST request of this burst.\n const delay = Math.min(REPUBLISH_SETTLE_MS, Math.max(0, this.republishRequestedSinceMs + REPUBLISH_MAX_WAIT_MS - now));\n this.republishTimer = setTimeout(() => {\n this.republishTimer = undefined;\n this.republishRequestedSinceMs = undefined;\n // A pass never throws out of its own body (see below); this catch is for a defect in that claim.\n this.republishChangedBoards().catch((error: unknown) => {\n this.logger.warn('Creation-plane publication pass failed', { error: describeCaughtError(error) });\n });\n }, delay);\n this.republishTimer.unref?.();\n }\n\n /**\n * The subscribers a publication for this behavior would reach. A predicate that throws counts as\n * NOT watching — it can only cost a publication, never a pass.\n */\n private watchersOf(behavior: string): readonly { readonly listener: CreationPlaneBoardChangeListener }[] {\n return [...this.boardChangeSubscribers].filter((subscriber) => {\n try {\n return subscriber.isWatched?.(behavior) ?? true;\n } catch (error) {\n this.logger.warn('Creation-plane watched predicate failed; treating the board as unwatched', {\n behavior,\n error: describeCaughtError(error),\n });\n return false;\n }\n });\n }\n\n /**\n * Hand a board that moved to its watchers — the ONE place a change is announced, whether a pass or a\n * read noticed it. Each listener is isolated from the others, and a comparison that throws is\n * reported rather than let escape.\n */\n private announceIfMoved(\n behavior: string,\n before: readonly Record<string, unknown>[],\n after: readonly Record<string, unknown>[],\n watchers: readonly { readonly listener: CreationPlaneBoardChangeListener }[],\n ): void {\n if (watchers.length === 0) return;\n try {\n if (areBoardRowsEqual(before, after)) return;\n } catch (error) {\n this.logger.warn('Creation-plane board could not be compared for publication', { behavior, error: describeCaughtError(error) });\n return;\n }\n this.markCreationChanged();\n const change: CreationPlaneBoardChange = { behavior, before, after, provenanceFields: CREATION_PLANE_PROVENANCE_ROW_FIELDS };\n for (const { listener } of watchers) {\n try {\n listener(change);\n } catch (error) {\n this.logger.warn('Creation-plane board-change listener failed', { behavior, error: describeCaughtError(error) });\n }\n }\n }\n\n /**\n * One publication pass over every board a reader was served. Serialized: an invalidation arriving\n * mid-pass asks for ONE more pass rather than a concurrent one, because two passes diffing against\n * the same served rows would publish the same change twice.\n *\n * A board whose re-derivation throws is skipped and keeps its served rows, so the next pass diffs\n * against what the reader actually holds. Its readers will meet the same failure on their next\n * read, where the resource lane reports it properly.\n */\n public republishChangedBoards(): Promise<void> {\n if (this.republishing) {\n this.republishRequested = true;\n return this.republishing;\n }\n this.republishing = (async () => {\n /*\n * Yield FIRST. A pass that finds nothing to re-derive (every board unwatched) never awaits, so\n * without this the whole body — `finally` included — would run synchronously inside the\n * assignment's right-hand side: `finally` would clear `republishing`, and the assignment would\n * then set it to the already-settled promise, where it would stay. Every later pass would take\n * the early return above and publish nothing, for the life of the process.\n */\n await Promise.resolve();\n try {\n do {\n this.republishRequested = false;\n for (const behavior of [...this.lastServedRows.keys()]) {\n const watchers = this.watchersOf(behavior);\n if (watchers.length === 0) {\n /*\n * Nobody would receive it, so it is NOT re-derived — that is what bounds the background\n * cost; without it, one workbench read would make every later invalidation re-derive\n * every board ever served, for the life of the process.\n *\n * Its served baseline is KEPT, deliberately. A browser joins the collection room AFTER\n * the companion served the rows, sometimes much later (a page load, a socket still\n * connecting), and once joined it serves its polls from its read cache and never asks\n * again. Forgetting the baseline in that window would make every later change to the\n * board unpublishable until a reload. The map is bounded by the creation-plane behaviors.\n */\n continue;\n }\n let after: readonly Record<string, unknown>[];\n const sequence = ++this.derivationSequence;\n try {\n after = await this.deriveRowsFor(behavior);\n } catch (error) {\n this.logger.warn('Creation-plane board could not be re-derived for publication', {\n behavior,\n error: describeCaughtError(error),\n });\n continue;\n }\n this.adoptBaseline(behavior, after, sequence, watchers);\n }\n } while (this.republishRequested);\n } finally {\n this.republishing = undefined;\n }\n })();\n return this.republishing;\n }\n\n /**\n * ONE row, addressed by its identity — for a behavior whose LIST is display-bounded.\n *\n * A READ is otherwise served by filtering the derived LIST, which is right while the list is the\n * whole population and WRONG the moment it is a window onto it. Trace sessions are that case: the\n * listing keeps the newest {@link TRACE_SESSION_LIMIT}, the write-record JOIN deliberately resolves\n * against the UNBOUNDED id listing (so an older record keeps its trace link), and the link it\n * produced then opened onto a 404 — measured 2026-09-21 on a four-day-old run, whose detail pane\n * said \"failed to load\" about a trace that was on disk. A join that is unbounded and a read that is\n * bounded disagree about which rows exist.\n *\n * Three answers, and the difference matters: a ROW; `null` — this behavior reads per-row and the\n * identity names nothing; `undefined` — this behavior has no per-row path, so filter the list.\n */\n public async deriveRowByIdentity(behaviorId: string, identity: string): Promise<Record<string, unknown> | null | undefined> {\n if ((behaviorId as WorkbenchCreationPlaneBehavior) !== WorkbenchCreationPlaneBehavior.TRACE_SESSIONS) return undefined;\n /* Identities are SANITIZED business keys, so the session is found by sanitizing the candidates, never by un-sanitizing the request. */\n const sessionId = (await this.executionTraceReadService.listSessionIds())\n .find((candidate) => sanitizeCreationPlaneIdentity(candidate) === identity);\n if (sessionId === undefined) return null;\n const session = await this.executionTraceReadService.summarizeSession(sessionId);\n if (session === null) return null;\n return this.stampIdentities(\n [this.toTraceSessionRow(session)],\n (row) => String(row.sessionId),\n WorkbenchCreationPlaneBehavior.TRACE_SESSIONS,\n )[0] ?? null;\n }\n\n /**\n * A board's rows, as served to a reader — and REMEMBERED as served, because that is what a later\n * publication must diff against: the reader holds these rows, not whatever the cache held last.\n */\n public async deriveRows(behaviorId: string): Promise<readonly Record<string, unknown>[]> {\n const sequence = ++this.derivationSequence;\n const rows = await this.deriveRowsFor(behaviorId);\n if (!this.lastServedRows.has(behaviorId)) {\n this.lastServedRows.set(behaviorId, rows);\n this.lastServedSequence.set(behaviorId, sequence);\n return rows;\n }\n /*\n * A PASS-ONLY board is published by publication passes and nowhere else — see\n * {@link CREATION_PLANE_PASS_ONLY_BEHAVIORS}. Its read neither announces nor moves the baseline,\n * so the baseline stays what was last PUBLISHED and the next publication pass diffs against exactly that.\n */\n if (CREATION_PLANE_PASS_ONLY_BEHAVIORS.has(behaviorId)) return rows;\n this.adoptBaseline(behaviorId, rows, sequence, this.watchersOf(behaviorId));\n return rows;\n }\n\n /**\n * Make a finished derivation the board's baseline, announcing it if it moved — unless a derivation\n * that STARTED later already set the baseline, in which case this one is older news and is dropped.\n *\n * The comparison is always against the baseline as it stands NOW, never one captured before the\n * derivation, so a change a concurrent read already announced is not announced twice.\n */\n private adoptBaseline(\n behaviorId: string,\n rows: readonly Record<string, unknown>[],\n sequence: number,\n watchers: readonly { readonly listener: CreationPlaneBoardChangeListener }[],\n ): void {\n if (sequence < (this.lastServedSequence.get(behaviorId) ?? 0)) return;\n const previous = this.lastServedRows.get(behaviorId);\n this.lastServedRows.set(behaviorId, rows);\n this.lastServedSequence.set(behaviorId, sequence);\n if (previous === undefined) return;\n /*\n * Announced from BOTH paths. A PASS announces what it re-derived. A READ that finds the board\n * MOVED announces it too, before replacing the baseline (#1310, third review N1). The baseline is ONE per board, while the browser caches each QUERY separately and\n * never re-asks while its room is confirmed. So when a board moves with no invalidating event and\n * some other query — a detail pane's READ, another list variant, a second tab — is served first,\n * the next pass would compare equal and publish nothing, and every other cached query of that\n * board would stay stale. Publishing here clears them all (the client drops a resource type's\n * entries on a publication), and the reader's own re-read then compares equal and stops.\n */\n this.announceIfMoved(behaviorId, previous, rows, watchers);\n }\n\n private async deriveRowsFor(behaviorId: string): Promise<readonly Record<string, unknown>[]> {\n switch (behaviorId as WorkbenchCreationPlaneBehavior) {\n case WorkbenchCreationPlaneBehavior.PLAYBOOK_ELIGIBILITY:\n return this.derivePlaybookEligibilityRows();\n case WorkbenchCreationPlaneBehavior.BUILD_PLAN_TASKS:\n return this.deriveBuildPlanTaskRows();\n case WorkbenchCreationPlaneBehavior.RUN_WRITE_RECORDS:\n return this.deriveRunWriteRecordRows();\n case WorkbenchCreationPlaneBehavior.TRACE_SESSIONS:\n return this.deriveTraceSessionRows();\n case WorkbenchCreationPlaneBehavior.GOVERNANCE_QUESTIONS:\n return this.deriveGovernanceQuestionRows();\n case WorkbenchCreationPlaneBehavior.GOVERNANCE_DOCUMENTS:\n return this.deriveGovernanceDocumentRows();\n case WorkbenchCreationPlaneBehavior.BUILD_DISPATCH_PLAN:\n return this.deriveBuildDispatchPlanRows();\n case WorkbenchCreationPlaneBehavior.BUILD_DISPATCHES:\n return this.deriveBuildDispatchRows();\n case WorkbenchCreationPlaneBehavior.BUILD_TASK_RECORDS:\n return this.deriveBuildTaskRecordRows();\n case WorkbenchCreationPlaneBehavior.WAITING_PLAYBOOK_RUNS:\n return this.deriveWaitingPlaybookRunRows();\n case WorkbenchCreationPlaneBehavior.PLAYBOOK_RUNS:\n return this.derivePlaybookRunRows();\n case WorkbenchCreationPlaneBehavior.CODING_LANE_STATUS:\n return this.deriveCodingLaneStatusRows();\n case WorkbenchCreationPlaneBehavior.PARKED_CODING_QUESTIONS:\n return this.deriveParkedCodingQuestionRows();\n case WorkbenchCreationPlaneBehavior.DOSSIER_ENTRIES:\n return this.deriveDossierEntryRows();\n case WorkbenchCreationPlaneBehavior.HOME_LINES:\n return this.deriveHomeLineRows();\n case WorkbenchCreationPlaneBehavior.CREATION_OUTCOMES:\n return this.deriveCreationOutcomeRows();\n case WorkbenchCreationPlaneBehavior.APPLICATION_SECRETS:\n return this.deriveApplicationSecretRows();\n default:\n throw new Error(\n `'${behaviorId}' is not a creation-plane behavior. The supported set is: `\n + `${WORKBENCH_CREATION_PLANE_BEHAVIOR_IDS.join(', ')}.`,\n );\n }\n }\n\n /**\n * The eligibility board for the REST door, after a FRESH input-signature check.\n *\n * The resource lane may serve a board up to one sweep (15 s) behind an out-of-process edit, because\n * the push closes that gap for anyone watching. `GET /playbooks` has no push — its callers\n * (`wildo context journey`, scripts) typically ask right after an agent edited files — and it used to\n * be exact on every call. One signature walk (~60-110 ms) against a derivation of 22-134 s buys that\n * back: a moved input drops the cached boards AND any derivation still in flight from before the\n * move (see {@link reconcileInputSignature}), so this read computes against the tree as it is now.\n *\n * Not side-effect-free: finding the inputs moved drops every board, which schedules the usual\n * publication pass. That changes what readers are told, never what is true.\n */\n public readFreshPlaybookEligibilityBoard(): Promise<{\n readonly playbooks: Awaited<ReturnType<PlaybookRunCompanionService['listPlaybookEligibility']>>['playbooks'];\n readonly applicationLine: Awaited<ReturnType<PlaybookRunCompanionService['listPlaybookEligibility']>>['applicationLine'];\n readonly applicationLineOrphans: Awaited<ReturnType<PlaybookRunCompanionService['listPlaybookEligibility']>>['applicationLineOrphans'];\n readonly activeSet: Awaited<ReturnType<PlaybookRunCompanionService['listPlaybookEligibility']>>['activeSet'];\n readonly datedByWaitingInterviews: Awaited<ReturnType<PlaybookRunCompanionService['listPlaybookEligibility']>>['datedByWaitingInterviews'];\n readonly computedAt: Date;\n }> {\n this.reconcileInputSignature();\n return this.readPlaybookEligibilityBoard();\n }\n\n /**\n * The eligibility board as the playbook service answers it — CACHED, and shared by the board's rows\n * and by `GET /playbooks`, so the REST door stops paying its own derivation (#1310 item 5).\n *\n * `computedAt` is the instant the BOARD was derived, carried with it so the rows stamp that rather\n * than the moment they happened to be mapped.\n */\n public readPlaybookEligibilityBoard(): Promise<{\n readonly playbooks: Awaited<ReturnType<PlaybookRunCompanionService['listPlaybookEligibility']>>['playbooks'];\n readonly applicationLine: Awaited<ReturnType<PlaybookRunCompanionService['listPlaybookEligibility']>>['applicationLine'];\n readonly applicationLineOrphans: Awaited<ReturnType<PlaybookRunCompanionService['listPlaybookEligibility']>>['applicationLineOrphans'];\n readonly activeSet: Awaited<ReturnType<PlaybookRunCompanionService['listPlaybookEligibility']>>['activeSet'];\n readonly datedByWaitingInterviews: Awaited<ReturnType<PlaybookRunCompanionService['listPlaybookEligibility']>>['datedByWaitingInterviews'];\n readonly computedAt: Date;\n }> {\n return this.deriveCached(PLAYBOOK_ELIGIBILITY_BOARD_CACHE_KEY, async () => {\n const board = await this.playbookRunService.listPlaybookEligibility();\n return {\n playbooks: board.playbooks,\n applicationLine: board.applicationLine,\n applicationLineOrphans: board.applicationLineOrphans,\n activeSet: board.activeSet,\n // Absent from a board a test double answers: then nothing is held for an interview (#3361).\n datedByWaitingInterviews: board.datedByWaitingInterviews ?? [],\n computedAt: new Date(),\n };\n });\n }\n\n private derivePlaybookEligibilityRows(): Promise<readonly Record<string, unknown>[]> {\n return this.deriveCached(WorkbenchCreationPlaneBehavior.PLAYBOOK_ELIGIBILITY, async () => {\n const board = await this.readPlaybookEligibilityBoard();\n const computedAt = board.computedAt;\n // Whether the application's line runs each playbook, and why not (#1607); keyed once, read per row.\n const activationByRef = new Map((board.activeSet?.entries ?? []).map((entry) => [entry.playbookRef, entry]));\n const rows = this.stampIdentities(\n board.playbooks.map((playbook) => ({\n playbookRef: playbook.playbookRef,\n playbookVersion: playbook.playbookVersion,\n /*\n * The PLAYBOOK's own taxonomy label, which is what the field's name implies and what the\n * workbench renders per row. It carried `board.phase` — the APPLICATION-level derived phase —\n * until 2026-09-04, so every row showed the same value and the row badge was describing\n * something other than the row. The derived application phase no longer exists; this is the\n * only phase there ever truthfully was.\n */\n phase: String(playbook.phase),\n intent: playbook.intent,\n eligible: playbook.eligible,\n unmet: playbook.unmet,\n blockedOnlyBySequencing: playbook.blockedOnlyBySequencing,\n requiresElicitation: playbook.requiresElicitation,\n unansweredQuestionRefs: playbook.unansweredQuestionRefs,\n wouldReplace: playbook.wouldReplace,\n outputOwners: playbook.outputOwners,\n unresolvedPlaybookRefs: playbook.unresolvedPlaybookRefs,\n unlandableFamilies: playbook.unlandableFamilies,\n staleOutputs: playbook.staleOutputs,\n /*\n * Its declared edges (#2530). A family is addressed by the specification-artifact row's id, which IS the raw\n * family; a playbook by its row id, which is the sanitized ref, as every other playbook reference here.\n */\n inputFamilyIds: playbook.inputFamilies,\n preconditionFamilyIds: playbook.preconditionFamilies,\n conditionFamilyIds: playbook.conditionFamilies,\n admittedPlaybookIds: playbook.admits.map(sanitizeWorkbenchCreationPlaneIdentity),\n // Absent from a board computed without a line scope; the row then says nothing rather than guess.\n ...(activationByRef.has(playbook.playbookRef)\n ? {\n activeInLine: activationByRef.get(playbook.playbookRef)!.status === PlaybookActivationStatus.ACTIVE,\n activationDetail: activationByRef.get(playbook.playbookRef)!.detail,\n /*\n * Its OPEN instances (#1609), key and purpose. Closed ones are on the board and in git; saying how\n * one ended would need the closure vocabulary's words, which this row's package does not import.\n */\n openInstances: activationByRef.get(playbook.playbookRef)!.instances\n .filter((activation) => activation.closure === undefined)\n .map((activation) => ({ instanceKey: activation.instanceKey, purpose: activation.purpose })),\n }\n : {}),\n computedAt,\n })),\n (row) => String(row.playbookRef),\n WorkbenchCreationPlaneBehavior.PLAYBOOK_ELIGIBILITY,\n );\n /*\n * An epoch that moved means something mutated mid-derivation: `deriveCached` serves the\n * computed rows to THIS caller (at worst one mutation old, same as any read that finished a\n * moment earlier) and does not cache them — the next read recomputes against the\n * post-mutation world.\n */\n return rows;\n });\n }\n\n /**\n * The build-plan board — CACHED since 2026-09-17, and it is the same cost as its sibling.\n *\n * Measured per authenticated LIST against the running companion: 13.8s, on every call, with no\n * warm benefit — while `workbench-playbooks` went 17.1s cold to 0.02s warm through the cache it\n * already had. Both pay `loadSpecificationsCompanionData` plus the build-plan read and its git\n * landing probes; only one of them was paying it once.\n *\n * The cost is what an operator meets: the board's embedded task list took ~32s to render its rows\n * in a browser, half a minute of skeletons on the pane a creation run is driven from.\n */\n private deriveBuildPlanTaskRows(): Promise<readonly Record<string, unknown>[]> {\n return this.deriveCached(WorkbenchCreationPlaneBehavior.BUILD_PLAN_TASKS, async () => {\n const tasks = await this.buildDispatchService.describeBuildPlanBoard().catch(holdBoardOnFailedModule([]));\n return this.stampIdentities(\n tasks.map((task) => ({ ...task })),\n (row) => String(row.taskRef),\n WorkbenchCreationPlaneBehavior.BUILD_PLAN_TASKS,\n );\n });\n }\n\n /**\n * Everything the build knows about each task (#2530): the companion's per-task record (`describeBuildTaskRecords`,\n * #1521), one row per task under the build-plan task row's own id, so a task's detail reads its record by the id it\n * already has. Its own resource, cached like the task list: reading the attempts, classifying a stuck task and probing\n * the tree is the cost this exists to keep off every row of that list.\n */\n private deriveBuildTaskRecordRows(): Promise<readonly Record<string, unknown>[]> {\n return this.deriveCached(WorkbenchCreationPlaneBehavior.BUILD_TASK_RECORDS, async () => {\n const records = await this.buildDispatchService.describeBuildTaskRecords().catch(holdBoardOnFailedModule(undefined));\n if (!records) return [];\n return this.stampIdentities(\n records.tasks.map((record) => projectBuildTaskRecordRow(record, records.attemptsTruncated)),\n (row) => String(row.taskRef),\n WorkbenchCreationPlaneBehavior.BUILD_TASK_RECORDS,\n );\n });\n }\n\n private async deriveRunWriteRecordRows(): Promise<readonly Record<string, unknown>[]> {\n const records = await this.runWriteRegister.list();\n /*\n * The trace JOIN: the register RECORDS the session id at run time (#1358 — a run id is the actor\n * execution's id and encodes no session, so the former `<sessionId>-<playbookRef>-<ts>` prefix\n * match is gone). Listed ONCE per derivation — a per-record listing would re-read the directory N\n * times for one answer. NULL when the record carries none or nothing listed matches: the register\n * legitimately outlives its trace directory, and a dangling reference would render as a broken link.\n *\n * Checked against the UNBOUNDED id listing, not the display-limited summaries: the join is a\n * correctness question and must not lose links for records older than the newest\n * TRACE_SESSION_LIMIT sessions (completion-review finding 11a). The bound stays on the\n * trace-sessions ROWS below, where it is a display decision.\n */\n const listedSessionIds = new Set(await this.executionTraceReadService.listSessionIds());\n return this.stampIdentities(\n records.map((record) => {\n // RECORDED on the register at run time (#1358), and only linked when the session still exists.\n const sessionId = record.traceSessionId && listedSessionIds.has(record.traceSessionId) ? record.traceSessionId : undefined;\n return {\n runId: record.runId,\n playbookRef: record.playbookRef,\n /*\n * The join keys, SANITIZED so values match the target rows' addressable ids — the same\n * identity rule every creation-plane row is addressed by.\n */\n workbenchPlaybookId: sanitizeWorkbenchCreationPlaneIdentity(record.playbookRef),\n workbenchTraceSessionId: sessionId ? sanitizeWorkbenchCreationPlaneIdentity(sessionId) : null,\n at: toInstant(record.at),\n /*\n * Pre-image BYTES stay behind: `previousContent` belongs to the revert mechanism, and a\n * LIST carrying every pre-image would ship the working tree's history on every render.\n */\n files: record.files.map((file) => ({ path: file.path, existedBefore: file.existedBefore })),\n fileCount: record.files.length,\n /* Stamped by the workbench's `accept` (#1454, Step 7); NULL until then. */\n acceptedCommitSha: record.acceptedCommitSha ?? null,\n /* A run that failed after writing (#3265): its record is listed as a failure, never as a landing. */\n landingFailed: record.landingFailed === true,\n // The doors only while nobody settled it: an accepted failed landing stays marked failed, with nothing to do.\n failedLandingRemedies: record.landingFailed === true && record.acceptedCommitSha === undefined ? describeFailedLandingRemedies(record.runId) : null,\n };\n }),\n (row) => String(row.runId),\n WorkbenchCreationPlaneBehavior.RUN_WRITE_RECORDS,\n );\n }\n\n /** One shape for a trace-session row, whether it came from the bounded listing or an addressed read. */\n private toTraceSessionRow(session: { sessionId: string; startedAt: string; label: string | null; eventCount: number; stepCount: number }): Record<string, unknown> {\n return {\n sessionId: session.sessionId,\n startedAt: toInstant(session.startedAt),\n label: session.label,\n eventCount: session.eventCount,\n stepCount: session.stepCount,\n };\n }\n\n private async deriveTraceSessionRows(): Promise<readonly Record<string, unknown>[]> {\n const sessions = await this.executionTraceReadService.listSessions(TRACE_SESSION_LIMIT);\n return this.stampIdentities(\n sessions.map((session) => this.toTraceSessionRow(session)),\n (row) => String(row.sessionId),\n WorkbenchCreationPlaneBehavior.TRACE_SESSIONS,\n );\n }\n\n /**\n * One row per GOVERNED DOCUMENT — the document half of the same composition the questions come\n * from, so the two can never describe different documents.\n *\n * `derivedFactRefs` lives here and not on the question rows because it is a fact about the\n * document. Carried per question it would be a value with no owner, and eight rows of one document\n * could disagree.\n */\n private async deriveGovernanceDocumentRows(): Promise<readonly Record<string, unknown>[]> {\n const [authored, drafted, creatorInputs] = await Promise.all([\n this.dossierService.readAuthoredDocumentFacts(),\n this.dossierService.listDraftedGovernedDocumentDefinitionRefs(),\n this.dossierService.readCreatorInputs(),\n ]);\n /* `derivedFactRefs` is a fact about the document the diff does not carry; it comes from the questionnaire itself. */\n const derivedByRef = new Map(composeGovernanceQuestionnaires(undefined).map((questionnaire) => [questionnaire.definitionRef, [...questionnaire.derivedFactRefs]]));\n const rows = deriveOpenGovernanceQuestions({ authored, ...(creatorInputs?.deferredDocumentFacts ? { deferredDocumentFacts: creatorInputs.deferredDocumentFacts } : {}) }).map((document) => ({\n definitionRef: document.definitionRef,\n /* A deferred question (#3437) is still asked, and no longer open: nothing waits on it. */\n askCount: document.open.length + document.answered.length + document.deferred.length,\n derivedFactRefs: derivedByRef.get(document.definitionRef) ?? [],\n openCount: document.open.length,\n drafted: drafted.has(document.definitionRef),\n }));\n return this.stampIdentities(\n rows,\n (row) => String(row.definitionRef),\n WorkbenchCreationPlaneBehavior.GOVERNANCE_DOCUMENTS,\n );\n }\n\n /**\n * The governance questionnaires, FLATTENED to one row per question.\n *\n * The composer answers per DOCUMENT — a definition and the prompts it asks. A creator answers one\n * QUESTION, and a queue lists one question, so the row is the question and its document travels on\n * it. Same flattening as the write register's files, for the same reason: a row is whatever a\n * reader selects.\n *\n * NOT cached, deliberately, where the eligibility board is. The board recomputes a working-tree\n * analysis and is expensive; this composes from already-loaded governed-document definitions, and a\n * cache would only add a second thing to invalidate when a definition changes.\n *\n * `derivedFactRefs` is dropped on purpose: it names the facts the GENERATOR establishes, which is\n * the complement of this collection rather than a member of it. A row here is a question somebody\n * must answer, and a derived fact is a question nobody is being asked.\n *\n * One row per question, with its STANDING (#1454, Step 6): answered in the authored facts, or\n * still needed. The answer a person reads is summarised from the declaration — its text, its chosen\n * options, or the \"does not apply\" reason — and its instant is the declaration's own.\n */\n private async deriveGovernanceQuestionRows(): Promise<readonly Record<string, unknown>[]> {\n const [authored, drafted, derived, creatorInputs] = await Promise.all([\n this.dossierService.readAuthoredDocumentFacts(),\n this.dossierService.listDraftedGovernedDocumentDefinitionRefs(),\n this.dossierService.readDerivedDocumentFacts(),\n this.dossierService.readCreatorInputs(),\n ]);\n /*\n * READ FROM THE PRODUCT (#1454, gap 4): the facts the application's own declarations establish,\n * listed beside the ones asked of a person so the creator sees the whole of what a document\n * rests on. Never needed, never asked; the summary is what the product answered, or nothing yet\n * when the step that reads it has not run.\n */\n const productRows = deriveProductGovernanceFacts({ derived }).flatMap((document) => document.facts.map(({ prompt, declaration }) => ({\n ...this.toGovernanceQuestionRow(document.definitionRef, prompt),\n standing: WorkbenchDossierEntryStanding.READ_FROM_PRODUCT,\n answerSummary: declaration === undefined\n ? null\n : declaration.resolutionKind === ApplicationAssuranceDocumentFactContributionResolutionKind.KNOWN\n ? summarizeDerivedFactValue(declaration.value)\n : declaration.reason,\n answeredAt: null,\n askedNow: false,\n })));\n const rows = deriveOpenGovernanceQuestions({ authored, ...(creatorInputs?.deferredDocumentFacts ? { deferredDocumentFacts: creatorInputs.deferredDocumentFacts } : {}) }).flatMap((document) => [\n ...document.answered.map(({ prompt, declaration }) => ({\n ...this.toGovernanceQuestionRow(document.definitionRef, prompt),\n standing: WorkbenchDossierEntryStanding.FROM_YOU,\n answerSummary: declaration.resolutionKind === 'KNOWN'\n ? (Array.isArray(declaration.value) ? declaration.value.map(String).join(', ') : String(declaration.value))\n : declaration.reason,\n answeredAt: toInstant(declaration.authority.decidedAt),\n askedNow: false,\n })),\n /* Deferred by the person (#3437): not decided yet, so nothing waits on it; the document keeps the clause owed. */\n ...document.deferred.map(({ prompt, deferral }) => ({\n ...this.toGovernanceQuestionRow(document.definitionRef, prompt),\n standing: WorkbenchDossierEntryStanding.DEFERRED,\n answerSummary: deferral.reason,\n answeredAt: toInstant(deferral.answeredAt),\n askedNow: false,\n })),\n ...document.open.map((prompt) => ({\n ...this.toGovernanceQuestionRow(document.definitionRef, prompt),\n standing: WorkbenchDossierEntryStanding.STILL_NEEDED,\n answerSummary: null,\n answeredAt: null,\n /* A draft is waiting on it: the narrow \"asked of you\" the dossier page and Home both use. */\n askedNow: drafted.has(document.definitionRef),\n })),\n ]).concat(productRows);\n return this.stampIdentities(\n rows,\n /*\n * BOTH halves. A `questionRef` is unique within its questionnaire and repeats across documents\n * — several governed documents ask for a retention period — so the document alone or the\n * question alone would collide, and `stampIdentities` would drop the second as a duplicate.\n */\n (row) => `${String(row.definitionRef)}--${String(row.questionRef)}`,\n WorkbenchCreationPlaneBehavior.GOVERNANCE_QUESTIONS,\n );\n }\n\n private toGovernanceQuestionRow(\n definitionRef: string,\n ask: ReturnType<typeof deriveOpenGovernanceQuestions>[number]['open'][number],\n ): Record<string, unknown> {\n return {\n definitionRef,\n questionRef: ask.questionRef,\n factRef: ask.factRef,\n creatorPrompt: ask.creatorPrompt,\n decisionPurpose: ask.decisionPurpose,\n answerKind: String(ask.answerKind),\n factAuthorityKind: String(ask.factAuthorityKind),\n allowsNotApplicable: ask.allowsNotApplicable,\n sensitivityRef: String(ask.sensitivityRef),\n semanticOptions: ask.semanticOptions.map((option) => ({\n optionRef: option.optionRef,\n creatorMeaning: option.creatorMeaning,\n })),\n };\n }\n\n /**\n * CACHED like the build-plan board (#1310, third review N2). It runs the full next-task selection —\n * landing resolution with batched git subprocesses, measured ~1 s warm on Wonder Todos — and Home's\n * lines derive it a second time, so uncached it cost ~2 s per 15 s sweep for as long as Home was\n * open. Its inputs, enumerated from `prepareNextBuildTask`: the build plan and the landing probes\n * (files and git — the input signature), the schema-plan sync state (its own signature, composed\n * in), and actor-plane run state — which runs are IN FLIGHT, which completed or failed runs still\n * COUNT against a task (loop guard, attempt budget, re-arms), and which are PARKED. Every change to\n * that actor-plane state is announced through `announceRunStateChanged`: a coding execution opened\n * at selection, a run admitted or resumed, a chain settling, a dispatch refused before admission\n * (its PENDING row settles ABORTED, or FAILED for a refused contract — #1581), a re-arm, and a generation step opening and ending — plus the\n * dispatch operations' own invalidation.\n */\n private deriveBuildDispatchPlanRows(): Promise<readonly Record<string, unknown>[]> {\n return this.deriveCached(WorkbenchCreationPlaneBehavior.BUILD_DISPATCH_PLAN, () => this.computeBuildDispatchPlanRows());\n }\n\n /**\n * The next build task, as ONE row — or the exhausted plan, or the wholly-stuck queue, also as one row.\n *\n * Never zero rows once a plan EXISTS (an application with no plan yet answers none — see the body). \"There is no next task\" is a real answer with a shape (every task landed, and\n * here is how many), and rendering it as an empty list would make the end of the journey look like\n * a failed read — which is exactly what it DID look like until the companion stopped answering a\n * finished plan with a non-2xx.\n *\n * The row is identified by the task ref, and by a constant when there is none: the exhausted state\n * and the wholly-stuck state are each a singleton by definition.\n */\n private async computeBuildDispatchPlanRows(): Promise<readonly Record<string, unknown>[]> {\n /*\n * The ONE case with zero rows, and it is not the case the paragraph above rules out. An EXHAUSTED plan is a\n * finished journey and must render as one; an ABSENT plan is a journey that has not reached decompose, where\n * there is no next task and no count to show. It used to fall through to `describeNextBuildTask`, which\n * refuses a missing plan, so every new application's board answered 500 on every poll. Absence is asked\n * through the shared test, which keeps an INVALID plan on the refusing path.\n */\n if (!(await this.buildDispatchService.hasAuthoredBuildPlan())) return [];\n /* A plan a failed module holds has no next task to show; the feed names the module (#3258). Every board over the plan holds the same way. */\n const description = await this.buildDispatchService.describeNextBuildTaskOrExhaustion().catch(holdBoardOnFailedModule(null));\n if (description === null) return [];\n const plan = description.plan;\n const exhausted = description.exhausted;\n const stuckQueue = description.stuckQueue;\n const specificationFault = exhausted?.specificationFault ?? stuckQueue?.specificationFault;\n /* Absent facts land as NULL / [] — the row schema's required-and-nullable shape, as elsewhere here. */\n const stuckTasks = description.stuckTasks.map((entry) => ({\n taskRef: entry.taskRef,\n reason: entry.reason,\n priorTaskId: entry.priorTaskId === '' ? null : entry.priorTaskId,\n question: entry.question ?? null,\n documentRef: entry.documentRef ?? null,\n }));\n const row = plan\n ? {\n taskRef: plan.taskRef,\n objective: plan.objective,\n targetKind: String(plan.targetKind),\n generationStepRef: plan.generationStepRef ?? null,\n allowedPathPrefixes: [...plan.allowedPathPrefixes],\n prohibitedPathPrefixes: [...plan.prohibitedPathPrefixes],\n requiredChecks: [...plan.requiredChecks],\n installedSkillRefs: [...plan.installedSkillRefs],\n readyTaskRefs: [...plan.readyTaskRefs],\n landedTaskRefs: [...plan.landedTaskRefs],\n unverifiableLandedTaskRefs: [...(plan.unverifiableLandedTaskRefs ?? [])],\n landedBeforeAnyRunTaskRefs: [...(description.landedBeforeAnyRunTaskRefs ?? [])],\n exhausted: false,\n failingSpecificationModules: [],\n specificationRepairOwed: false,\n stuckTasks,\n taskCount: plan.readyTaskRefs.length + plan.landedTaskRefs.length,\n landedCount: plan.landedTaskRefs.length,\n }\n : {\n taskRef: null,\n objective: null,\n targetKind: null,\n generationStepRef: null,\n allowedPathPrefixes: [],\n prohibitedPathPrefixes: [],\n requiredChecks: [],\n installedSkillRefs: [],\n /* A stuck queue still has progress to report; zeroes here would say a plan with tasks has none. */\n readyTaskRefs: [...(stuckQueue?.readyTaskRefs ?? [])],\n landedTaskRefs: [...(stuckQueue?.landedTaskRefs ?? [])],\n unverifiableLandedTaskRefs: [...(stuckQueue?.unverifiableLandedTaskRefs ?? exhausted?.specificationFault?.ranNotProvenTaskRefs ?? [])],\n // Beside a FINISHED plan too: \"every task has landed\" is the sentence this list exists to qualify (#2217).\n landedBeforeAnyRunTaskRefs: [...(description.landedBeforeAnyRunTaskRefs ?? [])],\n /*\n * No plan is one of TWO answers (#1451): every task landed, or every ready task is stuck. Only the\n * first is `exhausted`; the second is carried by `stuckTasks`, which is then non-empty. A plan with nothing left to\n * run while a specifications module fails is the second (#3258): its steps may only have run.\n */\n exhausted: exhausted !== undefined && exhausted.specificationFault === undefined,\n failingSpecificationModules: [...(specificationFault?.failingModules ?? [])],\n // Only a finished-looking plan is repaired by its next dispatch; a stuck one is not reached by it.\n specificationRepairOwed: exhausted?.specificationFault?.repairOwed === true,\n stuckTasks,\n taskCount: exhausted?.taskCount ?? stuckQueue?.taskCount ?? 0,\n // As progress counts, a step that only ran left out (#3258): the exhausted answer counts so already, the stuck queue does not.\n landedCount: exhausted?.landedCount\n ?? (stuckQueue === undefined ? 0 : stuckQueue.landedTaskRefs.length - (stuckQueue.specificationFault?.ranNotProvenTaskRefs.length ?? 0)),\n };\n return this.stampIdentities(\n [row],\n (candidate) => String(candidate.taskRef ?? (candidate.exhausted === true ? 'build-exhausted' : 'build-stuck')),\n WorkbenchCreationPlaneBehavior.BUILD_DISPATCH_PLAN,\n );\n }\n\n /**\n * The build lane's dispatch history, one row per ATTEMPT.\n *\n * `settledAt`, `codingTaskId` and `error` arrive as ABSENT keys and land as `null`. That is the\n * distinction the row schema makes deliberately: a dispatch still running HAS no end, and the\n * display's empty test treats `null` as empty and hides the row, where an absent key on a required\n * field would simply fail to parse.\n */\n private async deriveBuildDispatchRows(): Promise<readonly Record<string, unknown>[]> {\n // A projection of the dispatches' actor-plane executions since #1359 — nothing in memory.\n const dispatches = await this.buildDispatchService.readDetachedDispatches();\n /*\n * ACCEPTED is a join onto the coding-run write register, by task id (#1454, Step 7), read against the\n * run's own status — never the dispatch phase (#2523). A coding dispatch's phase stays ADMITTED\n * however its run ends, so the `phase === FINISHED` this keyed on held for no coding run: Accept was\n * never offered and an accepted run never said so.\n *\n * - TRUE: the record carries a commit, whatever the run's outcome (a shared-tree commit names failed\n * runs too, #1805) — or the run completed and git already holds every write it recorded, so nothing of it waits on\n * a commit (#3219). TRUE therefore means \"nothing to accept\", not \"accepted by this run's own door\"; a run whose\n * writes were discarded and restored to HEAD reads TRUE as well, which is the honest answer to \"is anything left\n * to commit\".\n * - FALSE: the run COMPLETED, recorded writes, and none is committed — the state `accept` addresses.\n * - NULL: nothing to accept now — no record (a generation step, a run that never reached capture, a run\n * older than the register), a run that wrote nothing, or a run still running, waiting on an answer,\n * or that did not complete.\n */\n const writeRecords = new Map((await this.codingRunWriteRegister.list()).map((record) => [record.taskId, record]));\n /*\n * Whether a completed run's writes still WAIT on a commit is read from git (#3219), never from the stamp alone. The\n * stamp (`acceptedCommitSha`) is a cache of what `git log` knows, written only by the doors that commit a run under\n * its name; a run whose files reached HEAD another way (a sibling's accept, a wave reconciliation, a person) kept\n * reading \"finished to commit\" on a clean tree for as long as the record lived (`app-creation-test-007`). Every\n * awaiting run is asked in ONE batch, deletions included (a deletion is settled when git no longer tracks the path\n * and the tree no longer holds it).\n */\n const awaitingStamp = dispatches.flatMap((dispatch) => {\n const record = dispatch.codingTaskId ? writeRecords.get(dispatch.codingTaskId) : undefined;\n return record !== undefined && record.files.length > 0 && record.acceptedCommitSha === undefined && dispatch.runStatus === FlowsActors_Status.COMPLETED\n ? [record] : [];\n });\n const settledPaths = awaitingStamp.length === 0\n ? new Set<string>()\n : await this.buildDispatchService.selectSettledRunWrites(awaitingStamp.flatMap((record) => record.files));\n const committedSinceRun = (record: (typeof awaitingStamp)[number]): boolean => record.files.every((file) => settledPaths.has(settledRunWriteKey(file)));\n /* The task's own sentence, joined by ref, so the run is named by what it delivers (#1454, gap 1). */\n const objectives = new Map((await this.deriveBuildPlanTaskRows()).map((task) => [String(task.taskRef), typeof task.objective === 'string' ? task.objective : null]));\n // Each row's identity is its execution's, kept beside the row rather than on it (the row is the shared contract's).\n const executionIdOf = new Map<Record<string, unknown>, string>();\n const rows = dispatches.map((dispatch) => {\n const record = dispatch.codingTaskId ? writeRecords.get(dispatch.codingTaskId) : undefined;\n const row: Record<string, unknown> = {\n taskRef: dispatch.taskRef,\n objective: objectives.get(dispatch.taskRef) ?? null,\n phase: dispatch.phase,\n startedAt: toInstant(dispatch.startedAt),\n settledAt: toInstant(dispatch.settledAt),\n codingTaskId: dispatch.codingTaskId ?? null,\n error: dispatch.error ?? null,\n failureAttribution: dispatch.failureAttribution ?? null,\n conversationId: dispatch.conversationId ?? null,\n runStatus: dispatch.runStatus,\n runFinishedAt: toInstant(dispatch.runFinishedAt),\n accepted: record === undefined || record.files.length === 0\n ? null\n : record.acceptedCommitSha !== undefined || (dispatch.runStatus === FlowsActors_Status.COMPLETED && committedSinceRun(record))\n ? true\n : dispatch.runStatus === FlowsActors_Status.COMPLETED ? false : null,\n };\n executionIdOf.set(row, dispatch.executionId);\n return row;\n });\n return this.stampIdentities(\n rows,\n /*\n * The dispatch's own EXECUTION (#2530). A task is re-dispatchable, and this was keyed on the task and the start\n * instant: two attempts started in the same second got one id, and READ answered an arbitrary one of them.\n */\n (row) => executionIdOf.get(row)!,\n WorkbenchCreationPlaneBehavior.BUILD_DISPATCHES,\n );\n }\n\n /**\n * The playbook runs suspended waiting on a person.\n *\n * `unreadable` is dropped: the read answers both the runs it could parse and the run DIRECTORIES it\n * could not, and the second is a diagnostic about the companion's own disk rather than a row\n * anybody selects. A resource that mixed them would list a thing with no question on it.\n */\n private async deriveWaitingPlaybookRunRows(): Promise<readonly Record<string, unknown>[]> {\n const suspended = await this.playbookRunService.readSuspendedRuns();\n /*\n * BOTH halves of what the reader found. A checkpoint that exists and fails to parse is a\n * suspended run nothing will resume, so it is a row carrying `readable: false` and its id —\n * the only thing knowable about it — rather than a count beside the rows that no row template\n * could reach.\n */\n const unreadable = suspended.unreadable.map((runId) => ({\n runId,\n readable: false,\n playbookRef: null,\n family: null,\n suspendedAt: null,\n round: null,\n dryRun: null,\n requests: [],\n routedToUserId: null,\n }));\n const rows = suspended.suspended.map((run) => ({\n runId: run.runId,\n readable: true,\n playbookRef: run.playbookRef,\n family: run.family,\n suspendedAt: toInstant(run.suspendedAt),\n round: run.round,\n dryRun: run.dryRun,\n requests: run.requests.map((request) => ({\n ref: request.ref,\n question: request.question,\n why: request.why,\n kind: String(request.kind),\n /* Normalised to an array: the wire omits it for a free-text question, and the row's own\n * `hideWhenEmpty` reads an EMPTY ARRAY, never an absent key. */\n options: request.options ?? [],\n })),\n routedToUserId: run.routedToUserId ?? null,\n }));\n return this.stampIdentities(\n [...rows, ...unreadable],\n (row) => String(row.runId),\n WorkbenchCreationPlaneBehavior.WAITING_PLAYBOOK_RUNS,\n );\n }\n\n /**\n * Every playbook run this process knows about, FLATTENED into one row set with its state.\n *\n * The service answers four collections; a row set is what a resource is, and the four are one thing\n * in four states. Nothing is dropped: every entry of every collection becomes a row, and the fields\n * a given state cannot supply are NULL rather than absent, so a layout can show exactly what is\n * known about each one.\n *\n * `awaitingCreatorInput` is flattened onto the row as `awaitingFamily` / `awaitingRound` rather than\n * kept as a nested object. It is the half of a COMPLETED run that decides whether the operator has\n * anything to do — `ok` is TRUE for a run that suspended to ask — so it belongs beside the verdict\n * it qualifies rather than one level down.\n */\n private async derivePlaybookRunRows(): Promise<readonly Record<string, unknown>[]> {\n const inFlight = await this.playbookRunService.readRunsInFlight();\n const rows: Record<string, unknown>[] = [];\n\n const base = {\n runId: null, instanceKey: null, traceSessionId: null, conversationId: null, startedAt: null, finishedAt: null, ok: null, error: null,\n completedIterations: null, checkpointedAt: null, awaitingFamily: null, awaitingRound: null,\n judgeOverall: null, judgeCriteria: null, judgeSkipped: null, choreographyRounds: null,\n };\n\n /* The composites holding a single-flight subject — one per instance since #1610, so several may run at once. */\n for (const running of inFlight.running) {\n rows.push({\n ...base,\n runId: running.runId,\n instanceKey: running.instanceKey ?? null,\n playbookRef: running.playbookRef,\n state: Workbench_PlaybookRunState.RUNNING,\n startedAt: toInstant(running.startedAt),\n });\n }\n for (const run of inFlight.runningDetached) {\n rows.push({\n ...base,\n runId: run.runId,\n instanceKey: run.instanceKey ?? null,\n traceSessionId: run.traceSessionId ?? null,\n conversationId: run.conversationId ?? null,\n playbookRef: run.playbookRef,\n state: Workbench_PlaybookRunState.RUNNING_DETACHED,\n startedAt: toInstant(run.startedAt),\n });\n }\n for (const entry of inFlight.interrupted) {\n rows.push({\n ...base,\n instanceKey: entry.instanceKey ?? null,\n playbookRef: entry.playbookRef,\n state: Workbench_PlaybookRunState.INTERRUPTED,\n completedIterations: entry.completedIterations ?? null,\n checkpointedAt: toInstant(entry.checkpointedAt),\n });\n }\n /*\n * A run the ENVIRONMENT took is INTERRUPTED, never refused (#3235): a lost network or a wake that aborted a model\n * call judged nothing about the work. It is shown ONCE, by whichever row is the interruption's: while its instance\n * holds a resumable checkpoint, the row above (a thrown composite keeps one); once a later run of the instance has\n * started (it resumed, adopting that checkpoint), nothing, because the interruption is over; otherwise this run,\n * dated when it ENDED. Showing it after the adoption would hand a follower a new line one second after the resume,\n * which is the symptom #3235 (c) reports (review F3).\n */\n const superseded = new Set([\n ...inFlight.interrupted.map((entry) => playbookInstanceId(entry.playbookRef, entry.instanceKey)),\n ...[...inFlight.running, ...inFlight.runningDetached].map((entry) => playbookInstanceId(entry.playbookRef, entry.instanceKey)),\n ]);\n for (const run of inFlight.lastCompleted) {\n if (run.interruptedByEnvironment === true) {\n if (superseded.has(playbookInstanceId(run.playbookRef, run.instanceKey))) continue;\n rows.push({\n ...base,\n runId: run.runId,\n instanceKey: run.instanceKey ?? null,\n traceSessionId: run.traceSessionId ?? null,\n conversationId: run.conversationId ?? null,\n playbookRef: run.playbookRef,\n state: Workbench_PlaybookRunState.INTERRUPTED,\n startedAt: toInstant(run.startedAt),\n finishedAt: toInstant(run.finishedAt),\n checkpointedAt: toInstant(run.finishedAt),\n ok: false,\n error: run.error ?? null,\n });\n continue;\n }\n rows.push({\n ...base,\n runId: run.runId,\n instanceKey: run.instanceKey ?? null,\n traceSessionId: run.traceSessionId ?? null,\n conversationId: run.conversationId ?? null,\n playbookRef: run.playbookRef,\n /*\n * A run that stopped to ask is settled in the RECORD's sense (it did not throw) and not in the creator's:\n * nothing landed and a person owes an answer. Its own state, so no reader has to un-say COMPLETED.\n */\n state: run.awaitingCreatorInput ? Workbench_PlaybookRunState.AWAITING_ANSWER : Workbench_PlaybookRunState.COMPLETED,\n startedAt: toInstant(run.startedAt),\n finishedAt: run.awaitingCreatorInput ? null : toInstant(run.finishedAt),\n ok: run.ok,\n error: run.error ?? null,\n awaitingFamily: run.awaitingCreatorInput?.family ?? null,\n awaitingRound: run.awaitingCreatorInput?.round ?? null,\n // ONE reader for a live envelope and for the summary a row carries after a restart (#1362).\n ...readPlaybookRunJudgeVerdict(run.result),\n // A composite's rounds and the children that ran in them, read the same way (#2530).\n choreographyRounds: (() => { const choreography = readPlaybookRunChoreography(run.result); return choreography ? playbookRunRoundsOf(choreography) : null; })(),\n });\n }\n\n /*\n * The identity is STATE + playbook INSTANCE + run id when there is one. A playbook legitimately\n * appears once per state (running detached now, last completed from an earlier submission), so the\n * state stays in the key. The run id joined it with #1609: two ordinary runs of one playbook overlap\n * (they hold no single-flight subject), and keyed on state + ref they became two rows under ONE id,\n * so READ answered an arbitrary one of them. An INTERRUPTED entry carries no run id; it is one per\n * instance, which the instance id already separates.\n */\n return this.stampIdentities(\n rows,\n (row) => [\n String(row.state),\n playbookInstanceId(String(row.playbookRef), row.instanceKey === null ? undefined : String(row.instanceKey)),\n ...(row.runId === null ? [] : [String(row.runId)]),\n ].join('--'),\n WorkbenchCreationPlaneBehavior.PLAYBOOK_RUNS,\n );\n }\n\n /**\n * The coding lane's posture — exactly one row, always.\n *\n * ONE row and never zero: \"the lane has no status\" is not a state the lane can be in, and an empty\n * list would render as \"nothing here\" on a pane whose whole job is to say whether an agent is\n * registered. The identity is a constant for the same reason — there is one coding lane.\n *\n * The PARKED QUESTIONS the status payload also carries are deliberately not here; they are their\n * own resource, because a queue of work waiting on a person is a different thing from a statement\n * about the lane.\n */\n private async deriveCodingLaneStatusRows(): Promise<readonly Record<string, unknown>[]> {\n const status = await this.codingAgentDispatchService.getStatus();\n return this.stampIdentities(\n [{\n codingAgentRegistered: status.codingAgentRegistered,\n codingAgentProviderRef: status.codingAgentLogin?.providerRef ?? null,\n // UNKNOWN is not an answer, and neither is a status command that is not installed (the npx adapters\n // run without it): both stay NULL rather than becoming a `false` the board would read as \"signed out\".\n codingAgentSignedIn: status.codingAgentLogin === null\n || status.codingAgentLogin.state === CodingAgentHostLoginState.UNKNOWN\n || status.codingAgentLogin.state === CodingAgentHostLoginState.NOT_INSTALLED\n ? null\n : status.codingAgentLogin.state === CodingAgentHostLoginState.SIGNED_IN,\n codingAgentLoginDetail: status.codingAgentLogin?.detail ?? null,\n codingAgentLoginRemedy: status.codingAgentLogin?.remedy ?? null,\n activeRunTaskId: status.activeRun?.taskId ?? null,\n activeRunStartedAt: toInstant(status.activeRun?.startedAt),\n lockFilePath: status.lockFilePath ?? null,\n defaultTimeoutMs: status.limits.defaultTimeoutMs,\n hardMaxTimeoutMs: status.limits.hardMaxTimeoutMs,\n defaultMaxCapturedBytes: status.limits.defaultMaxCapturedBytes,\n hardMaxCapturedBytes: status.limits.hardMaxCapturedBytes,\n }],\n () => WORKBENCH_CODING_LANE_STATUS_ROW_ID,\n WorkbenchCreationPlaneBehavior.CODING_LANE_STATUS,\n );\n }\n\n /**\n * The coding runs parked on a question.\n *\n * Lifted OUT of the coding-agent status payload, which stays a companion read: the status is a\n * singleton (is an agent registered, is a run active, what are the limits) and these are a queue.\n * The `decision` bag the wire carries is dropped — it is the answer CHANNEL's contract, and a row\n * that carried it would be the second place the decision lives.\n */\n private async deriveParkedCodingQuestionRows(): Promise<readonly Record<string, unknown>[]> {\n // Read from the actor plane since #1359, so the queue survives a companion restart.\n const rows = (await this.codingAgentDispatchService.listPendingCodingQuestions()).map((pending) => ({\n taskId: pending.taskId,\n taskRef: pending.taskRef,\n question: pending.question,\n parkedAt: toInstant(pending.parkedAt),\n resumable: pending.resumable,\n suspensionRef: pending.suspensionRef,\n }));\n return this.stampIdentities(\n rows,\n (row) => String(row.taskId),\n WorkbenchCreationPlaneBehavior.PARKED_CODING_QUESTIONS,\n );\n }\n\n /** The last completed `wildo secrets list` read — served to every read, however old (see below). */\n private applicationSecretsListing: { readonly at: number; readonly rows: readonly Record<string, unknown>[] } | null = null;\n /** The listing being read now, shared by every caller that has to wait for it, with the generation it was started in. */\n private applicationSecretsRefresh: { readonly generation: number; readonly token: object; readonly promise: Promise<readonly Record<string, unknown>[]> } | null = null;\n /**\n * Advanced by every change the section makes. A listing started before a change describes the world\n * before it: it may still answer the callers that were waiting for it, but it may neither satisfy a\n * read made after the change nor overwrite the listing the change produced (#1782 review, F2). A CLI\n * listing takes up to 86 s under load, so a set landing while one is in flight is the ordinary case.\n */\n private applicationSecretsGeneration = 0;\n /** What the last secrets listing could not derive, as last logged — see `refreshApplicationSecretsListing`. */\n private lastReportedPartialSecretsListing = '';\n\n /**\n * THE SECRETS SECTION (#1637): one row per (environment, secret) the application declares a use for,\n * read by running `wildo secrets list --all --json` — the companion holds no secret of its own.\n *\n * SERVED FROM THE LAST LISTING, REFRESHED BEHIND IT. A listing starts the CLI, loads the application and\n * asks GitHub once per remote environment: measured 86 s on a loaded machine (2026-09-26), and 74 s wall /\n * 19.5 s CPU for `local` once it also read system-of-record facets and the built backend's inbound endpoints\n * (2026-09-27). A read that waited on it past the companion's bound left the page on \"Loading\" and the\n * request answering an error.\n * So only the FIRST read (nothing listed yet) and the read after a change that FAILED part way\n * ({@link forgetApplicationSecretsListing}) wait. A successful set/unset hands over the environment's rows\n * after it ({@link applyApplicationSecretsChange}), so the read after it answers at once with the new\n * standing. Every other read answers at once with the last listing,\n * and starts a refresh when that listing is older than {@link APPLICATION_SECRETS_LISTING_REUSE_MS}; when\n * the refresh finishes the watched boards are republished, so an open page moves to the new rows. A hand\n * edit of `secrets.json` or a change from a terminal therefore shows up one refresh later. An environment\n * the CLI could not read (a remote one without `gh`) contributes no rows and is logged, never silently\n * absent from a list that would then read as \"nothing needed there\".\n */\n private async deriveApplicationSecretRows(): Promise<readonly Record<string, unknown>[]> {\n const listing = this.applicationSecretsListing;\n if (listing === null) return this.refreshApplicationSecretsListing();\n if (Date.now() - listing.at >= APPLICATION_SECRETS_LISTING_REUSE_MS) {\n void this.refreshApplicationSecretsListing(true).catch((error: unknown) => {\n this.logger.warn('[CreationPlane] Secrets listing could not be refreshed; the previous one stays on screen', {\n error: describeCaughtError(error),\n });\n });\n }\n return listing.rows;\n }\n\n /** Read the listing once, however many callers are waiting; republish the watched boards when it lands behind a read. */\n private refreshApplicationSecretsListing(republish = false): Promise<readonly Record<string, unknown>[]> {\n const generation = this.applicationSecretsGeneration;\n if (this.applicationSecretsRefresh?.generation === generation) return this.applicationSecretsRefresh.promise;\n // Identifies THIS refresh, so its `finally` clears the slot only if a newer one has not taken it.\n const token = {};\n const promise = (async () => {\n try {\n const { rows, unreadable, incomplete } = await readApplicationSecrets(this.companionContext.saasRoot);\n for (const environment of unreadable) {\n this.logger.warn(`[CreationPlane] Secrets of environment '${environment.envName}' could not be read: ${environment.error}`);\n }\n // Said once per distinct reason, not on every refresh: a backend that is not built stays not built.\n const partial = incomplete.map((environment) => `'${environment.envName}': ${environment.incomplete.join(' ')}`).join(' · ');\n if (partial !== this.lastReportedPartialSecretsListing) {\n this.lastReportedPartialSecretsListing = partial;\n if (partial.length > 0) this.logger.info(`[CreationPlane] Secrets are listed in part — ${partial}`);\n }\n // Only a listing started in the CURRENT generation may become the listing; an older one answers\n // its own callers and is discarded, so it cannot put a change's previous values back.\n if (generation === this.applicationSecretsGeneration) {\n this.applicationSecretsListing = { at: Date.now(), rows };\n if (republish) void this.republishChangedBoards();\n }\n return rows;\n } finally {\n if (this.applicationSecretsRefresh?.token === token) this.applicationSecretsRefresh = null;\n }\n })();\n this.applicationSecretsRefresh = { generation, token, promise };\n return promise;\n }\n\n /**\n * Record a change the section made (#1782). With the environment's rows after the change (the CLI\n * re-derives them from the inputs it checked the change against), they replace that environment's rows in\n * place and every read answers at once; the caller's `invalidateDerivedBoards()` then republishes the board.\n * Without them, the listing is dropped and the next read waits for a fresh one.\n *\n * Replacing rather than re-listing is what keeps the page on the new standing. A re-list re-loads the\n * application and took longer than a read may wait, so the page that had just set a secret swapped to\n * \"could not load\" instead of showing it set.\n */\n public applyApplicationSecretsChange(envName: string, environmentRows: readonly Record<string, unknown>[] | null): void {\n this.applicationSecretsGeneration += 1;\n const listing = this.applicationSecretsListing;\n if (environmentRows === null || listing === null) {\n this.applicationSecretsListing = null;\n return;\n }\n const rows: Record<string, unknown>[] = [];\n let placed = false;\n for (const row of listing.rows) {\n if (row.environmentName !== envName) {\n rows.push(row);\n } else if (!placed) {\n rows.push(...environmentRows);\n placed = true;\n }\n }\n if (!placed) rows.push(...environmentRows);\n this.applicationSecretsListing = { at: listing.at, rows };\n }\n\n /** Drop the listing — after a change whose effect is unknown (it failed part way), so the next read waits for a fresh one. */\n public forgetApplicationSecretsListing(): void {\n this.applicationSecretsGeneration += 1;\n this.applicationSecretsListing = null;\n }\n\n /**\n * THE DOSSIER (#1454, Step 5): one row per question a playbook interview declares, joined with\n * the creator's answer from `creator-inputs` and with whether the asking playbook can run now.\n *\n * Not cached on its own: the join is a catalog walk plus one companion-exports read (the SAME\n * read the eligibility board pays, so it is warm whenever the board is), and `playbookEligible`\n * comes from the cached eligibility rows. An answer recorded a moment ago must show at once —\n * the interview asks the NEXT question from this list — so a TTL here would be a question asked\n * twice.\n *\n * Orphaned answers (a question the catalog no longer asks) are deliberately NOT rows: a row is a\n * question, and an answer with no question would render as one the person could re-answer into a\n * void. They are reported through the service, for the dossier page's own notice.\n */\n private async deriveDossierEntryRows(): Promise<readonly Record<string, unknown>[]> {\n const [listing, eligibilityRows] = await Promise.all([\n this.dossierService.listDossierEntries(),\n this.derivePlaybookEligibilityRows(),\n ]);\n const eligibleByRef = new Map(eligibilityRows.map((row) => [String(row.playbookRef), row.eligible === true]));\n /*\n * Whether an ANSWER each step reads changed after the step made its result — the fact a question's\n * out-of-date mark states. Only a stale output whose changed inputs include `creator-inputs` counts:\n * a step stale because its market snapshot moved has not had its answers change, and marking every\n * row it asks \"changed since the result was made\" would say so (#1454 review, F4).\n */\n const staleByRef = new Map(eligibilityRows.map((row) => [\n String(row.playbookRef),\n Array.isArray(row.staleOutputs) && (row.staleOutputs as readonly { changedInputs?: readonly string[] }[])\n .some((stale) => (stale.changedInputs ?? []).includes(ApplicationSpecificationFamily.CREATOR_INPUTS)),\n ]));\n const rows = listing.entries.map((entry) => {\n const readingSteps = [entry.playbookRef, ...entry.sharedWithPlaybookRefs];\n /* A shared decision blocks EVERY step that asks it: eligible if its owner or any sharing step can run. */\n const playbookEligible = readingSteps.some((ref) => eligibleByRef.get(ref) === true);\n /* ...and dates every step that reads it: each one whose result predates an input is out of date. */\n /*\n * Freshness is still PER STEP, so it is said only on the step's own rows: an instance's result is\n * not the step's, and \"regenerate\" there would rerun the step (per-instance freshness: #1609 R11).\n */\n const outOfDateStepRefs = entry.answer === undefined || entry.instanceKey !== undefined ? [] : readingSteps.filter((ref) => staleByRef.get(ref) === true);\n const recorded = entry.answer ?? entry.answerFromTheStep;\n const nonAnswer = recorded !== undefined && isCreatorInputNonAnswer(recorded) ? recorded : undefined;\n const valueAnswer = recorded !== undefined && !isCreatorInputNonAnswer(recorded) ? recorded : undefined;\n return {\n playbookRef: entry.playbookRef,\n questionRef: entry.questionRef,\n instanceKey: entry.instanceKey ?? null,\n instancePurpose: entry.instancePurpose ?? null,\n question: entry.question,\n kind: entry.kind,\n options: entry.options,\n // Index-aligned with `options` when the options are computed; empty when they are authored (no detail exists).\n optionDetails: entry.optionDetails.length === 0 ? [] : entry.options.map((option) => entry.optionDetails.find((detail) => detail.option === option)?.detail ?? ''),\n optionsState: entry.optionsState,\n position: entry.position,\n standing: dossierEntryStanding(entry),\n /* A non-answer (#3437) carries no value: its reason is its own field, so nothing reads it as an answer. */\n value: valueAnswer?.value ?? null,\n nonAnswerReason: nonAnswer?.reason ?? null,\n answeredAt: toInstant(recorded?.answeredAt),\n answeredByRef: recorded?.answeredByRef ?? null,\n shownOptionDetail: valueAnswer?.shownOptionDetail ?? null,\n playbookEligible,\n /* Still needed by a step that can run: the one state that blocks something now. */\n askedNow: dossierEntryStanding(entry) === WorkbenchDossierEntryStanding.STILL_NEEDED && playbookEligible,\n affectsFamilies: [...entry.affectsFamilies],\n subject: specificationFamilyConcern(entry.subjectFamily ?? ''),\n outOfDate: outOfDateStepRefs.length > 0,\n outOfDateStepRefs,\n sharedWithPlaybookRefs: [...entry.sharedWithPlaybookRefs],\n /* #2129: what a simple interview asks, what may be proposed, what is named before it is kept. */\n askedInSimpleInterview: entry.askedInSimpleInterview,\n proposable: entry.proposable,\n regulatedDomain: entry.regulatedDomain,\n /* #3439: what the row offers instead of a value, and what its answer door admits. */\n admittedNonAnswers: [...entry.admittedNonAnswers],\n assumptionRationale: valueAnswer?.assumptionRationale ?? null,\n interviewDepth: listing.interviewDepth ?? null,\n };\n });\n return this.stampIdentities(\n rows,\n (row) => workbenchDossierEntryIdentity({\n playbookRef: String(row.playbookRef),\n questionRef: String(row.questionRef),\n instanceKey: row.instanceKey === null ? null : String(row.instanceKey),\n }),\n WorkbenchCreationPlaneBehavior.DOSSIER_ENTRIES,\n );\n }\n\n /**\n * The specification families' STATES — landed and valid, landed and refused, not landed — read\n * IN-PROCESS through the same projection the subprocess `specification-artifacts` behavior renders\n * for the artifact list, so Home and that list cannot disagree about which families exist.\n *\n * Cached like the eligibility board and for the same reason: it evaluates the specifications\n * companion exports and runs every family validator, which is the cost that board pays. The cache\n * slot rides the same invalidation, so a run landing a family moves the outcomes on the next read.\n *\n * An application with no specifications package has no families to measure; the outcomes then\n * read \"not started\" over zero families, which is the truthful answer rather than a refusal on the\n * page a creator opens first.\n */\n private readSpecificationArtifactStates(): Promise<readonly Record<string, unknown>[]> {\n return this.deriveCached(SPECIFICATION_ARTIFACT_STATES_CACHE_KEY, async () => {\n const packageRoot = this.companionContext.resolvedSpecifications?.packageRoot;\n const appDeclarationRoot = this.companionContext.resolvedHomes.app.layout?.declarationRoot;\n if (packageRoot === undefined || appDeclarationRoot === undefined) return [];\n const exports = await loadSpecificationFamilyData(this.companionContext);\n const relativePath = relative(appDeclarationRoot, packageRoot);\n const projected = projectSpecificationArtifacts({\n /* The loader answers the RESOLVED surface; the projection resolves a module's default export, so it is handed one. */\n moduleExports: { default: exports },\n packageRoot,\n appRelativePackagePrefix: relativePath.length > 0 && !relativePath.startsWith('..') ? relativePath : basename(packageRoot),\n evaluatedAt: new Date().toISOString(),\n });\n return projected.artifacts.map((artifact) => ({ family: artifact.family, state: artifact.state }));\n });\n }\n\n /**\n * HOME's lines (#1454) — a JOIN over the sibling projections, in the shapes they serve: what\n * happened (runs, dispatches), what is asked (waiting runs, parked questions, drafted documents),\n * what could be done next (the dispatch plan, eligible playbooks against the family states).\n *\n * Not cached on its own: its expensive inputs are cached in their own slots (eligibility, the\n * dispatch plan, the family states), and the rest are actor-plane and file reads (runs, dispatches,\n * waiting runs, parked questions, governance documents). A line about a run that just settled must\n * show on the next read, and a sweep's publication pass re-derives it while Home is watched.\n */\n private async deriveHomeLineRows(): Promise<readonly Record<string, unknown>[]> {\n const [runs, dispatches, waiting, parked, documents, dispatchPlan, playbooks, artifacts, eligibilityBoard] = await Promise.all([\n this.derivePlaybookRunRows(),\n this.deriveBuildDispatchRows(),\n this.deriveWaitingPlaybookRunRows(),\n this.deriveParkedCodingQuestionRows(),\n this.deriveGovernanceDocumentRows(),\n this.deriveBuildDispatchPlanRows(),\n this.derivePlaybookEligibilityRows(),\n this.readSpecificationArtifactStates(),\n // The same cached board the playbook rows come from: which waiting interviews hold work for an unattended round (#3361).\n this.readPlaybookEligibilityBoard(),\n ]);\n // The usage limit holding the build NOW (#2388): the pause itself, so Home says so exactly while it lasts.\n const codingAgentUsageLimit = this.codingAgentDispatchService.readCodingAgentUsageLimitHold();\n // The network loss holding coding admissions NOW (#3236, #3262): Home says so exactly while no turn is admitted.\n const connectivityHold = this.codingAgentDispatchService.readCodingAgentConnectivityHold();\n const verificationToolHold = this.codingAgentDispatchService.readVerificationToolUnavailableHold();\n // A person's closures and the follow-ups landed still reporting a gap (#3224, #2583). Best effort: a read that\n // fails costs these lines, never Home, and says so.\n const [closures, followUpsLandedWithGaps, uncommittedLeftovers, landedTasksWithAdvisories] = await Promise.all([\n Promise.resolve().then(() => this.buildDispatchService.readHonouredBuildTaskClosures()).catch((error: unknown) => {\n this.logger.warn('Could not read the build-task closures; Home lists none', { error: describeCaughtError(error) });\n return [];\n }),\n Promise.resolve().then(() => this.buildDispatchService.readFollowUpsLandedWithGaps()).catch((error: unknown) => {\n this.logger.warn('Could not read the follow-ups landed with a gap; Home lists none', { error: describeCaughtError(error) });\n return [];\n }),\n // Files the tasks' runs left that no automatic door will commit (#3267). Best effort, like the two above.\n Promise.resolve().then(() => this.codingAgentDispatchService.listUncommittedRunLeftovers()).catch((error: unknown) => {\n this.logger.warn('Could not list the files build-task runs left uncommitted; Home lists none', { error: describeCaughtError(error) });\n return [];\n }),\n // Landed tasks with something left unfinished, a billing catalogue nothing serves (#3285). Best effort, like the rest.\n Promise.resolve().then(() => this.buildDispatchService.readLandedTasksWithAdvisories()).catch((error: unknown) => {\n this.logger.warn('Could not read the landed tasks with a landing advisory; Home lists none', { error: describeCaughtError(error) });\n return [];\n }),\n ]);\n const rows = buildCreationHomeLines({\n runs: runs as never, dispatches: dispatches as never, waiting: waiting as never, parked: parked as never,\n documents: documents as never, dispatchPlan: dispatchPlan as never, playbooks: playbooks as never, artifacts: artifacts as never,\n ...(codingAgentUsageLimit ? { codingAgentUsageLimit } : {}),\n ...(connectivityHold ? {\n codingAgentConnectivityHold: {\n observedAt: connectivityHold.observedAt,\n taskRef: connectivityHold.taskRef,\n ...(connectivityHold.probeRoute ? { route: describeCodingAgentProbeRoute(connectivityHold.probeRoute) } : {}),\n },\n } : {}),\n ...(verificationToolHold ? {\n verificationToolUnavailableHold: { observedAt: verificationToolHold.observedAt, taskRef: verificationToolHold.taskRef, cause: describeVerificationHostCause(verificationToolHold) },\n } : {}),\n closures,\n followUpsLandedWithGaps,\n uncommittedLeftovers,\n landedTasksWithAdvisories,\n datedByWaitingInterviews: eligibilityBoard.datedByWaitingInterviews,\n });\n return this.stampIdentities(\n rows as unknown as readonly Record<string, unknown>[],\n /* A target can appear in two sections (a settled dispatch's line and its ACCEPT suggestion are one line, but a playbook may be both stale and asked), so section and kind are part of the key. */\n (row) => `${String(row.section)}--${String(row.kind)}--${String(row.targetResourceId)}`,\n WorkbenchCreationPlaneBehavior.HOME_LINES,\n );\n }\n\n /** The four creation outcomes (#1454) — always four rows, measured on the family states, the stale set and the build-plan tasks. */\n private async deriveCreationOutcomeRows(): Promise<readonly Record<string, unknown>[]> {\n const [artifacts, playbooks, tasks, unavailable] = await Promise.all([\n this.readSpecificationArtifactStates(),\n this.derivePlaybookEligibilityRows(),\n this.deriveBuildPlanTaskRows(),\n // Whether the application can START (#1537) — read, not probed: the dev loop's supervisors decide it.\n readUnavailableApplicationRuntimes(this.companionContext.saasRoot),\n ]);\n /*\n * And what the backend itself recorded about its last start (#2405), which an app-creator application — no\n * supervisor — has instead. No commit time here, so a failure counts even while a fresh commit's restart is\n * pending; that reads \"down\" a few seconds early on a status page, never \"up\" while it is not.\n *\n * The two sources name a runtime differently (a supervisor label like `backend-api`, a bootstrap service identifier\n * like `services.backendApi`), and no mapping between them is declared anywhere, so a backend both report can be\n * listed twice. Accepted: the row is down either way, and a guessed mapping could hide one that is.\n */\n const bootFailures = await readApplicationBootFailures(this.companionContext.saasRoot, { newestCommitAtMs: undefined });\n const unavailableLabels = unavailable === undefined && bootFailures === undefined ? undefined : [\n ...(unavailable ?? []).map((runtime) => runtime.label),\n ...(bootFailures ?? []).map((failure) => failure.serviceIdentifier).filter((label) => !(unavailable ?? []).some((runtime) => runtime.label === label)),\n ];\n const staleFamilies = new Set<string>();\n for (const playbook of playbooks) {\n for (const stale of (playbook.staleOutputs as readonly { family: string }[] | undefined) ?? []) staleFamilies.add(stale.family);\n }\n // From progress, the one answer that says what a marked step is (#3258), not from the task rows' status.\n const specificationFault = (await this.buildDispatchService.resolveBuildExecutionProgress().catch(() => undefined))?.specificationFault;\n const rows = buildCreationOutcomes({\n artifacts: artifacts as never,\n staleFamilies,\n tasks: tasks as never,\n ...(specificationFault === undefined ? {} : { specificationFault }),\n ...(unavailableLabels === undefined ? {} : { unavailableRuntimes: unavailableLabels }),\n });\n return this.stampIdentities(\n rows as unknown as readonly Record<string, unknown>[],\n (row) => String(row.outcome),\n WorkbenchCreationPlaneBehavior.CREATION_OUTCOMES,\n );\n }\n\n private stampIdentities(\n rows: readonly Record<string, unknown>[],\n businessKey: (row: Record<string, unknown>) => string,\n behavior: WorkbenchCreationPlaneBehavior,\n ): readonly Record<string, unknown>[] {\n const fieldIdentifier = CREATION_PLANE_IDENTITY_FIELDS[behavior];\n const seen = new Map<string, string>();\n return rows.map((row) => {\n const raw = businessKey(row);\n const identity = sanitizeCreationPlaneIdentity(raw);\n const previous = seen.get(identity);\n if (previous !== undefined && previous !== raw) {\n throw new Error(\n `Creation-plane behavior '${behavior}' sanitized two distinct keys ('${previous}', '${raw}') to one `\n + `identity '${identity}'. Served, READ would return an arbitrary one of them; refused instead. `\n + 'Rename one of the colliding keys.',\n );\n }\n seen.set(identity, raw);\n return { ...row, [fieldIdentifier]: identity };\n });\n }\n}\n"]}
|
|
1
|
+
{"version":3,"file":"creation-plane-projection.companion.service.js","sourceRoot":"","sources":["../../../../../src/core/introspection/resources/creation-plane-projection.companion.service.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,OAAO,EAAE,iCAAiC,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BAC/C,MAAM,IAAI,KAAK,CACb,4BAA4B,QAAQ,mCAAmC,QAAQ,OAAO,GAAG,YAAY;sBACnG,aAAa,QAAQ,0EAA0E;sBAC/F,mCAAmC,CACtC,CAAC;YACJ,CAAC;YACD,IAAI,CAAC,GAAG,CAAC,QAAQ,EAAE,GAAG,CAAC,CAAC;YACxB,OAAO,EAAE,GAAG,GAAG,EAAE,CAAC,eAAe,CAAC,EAAE,QAAQ,EAAE,CAAC;QACjD,CAAC,CAAC,CAAC;IACL,CAAC;CACF,CAAA;AAv0DY,uCAAuC;IADnD,UAAU,EAAE;IAqHR,WAAA,MAAM,CAAC,uBAAuB,CAAC,kBAAkB,CAAC,CAAA;IAElD,WAAA,MAAM,CAAC,uBAAuB,CAAC,+BAA+B,CAAC,CAAA;IAE/D,WAAA,MAAM,CAAC,uBAAuB,CAAC,+BAA+B,CAAC,CAAA;IAE/D,WAAA,MAAM,CAAC,uBAAuB,CAAC,yBAAyB,CAAC,CAAA;IAEzD,WAAA,MAAM,CAAC,uBAAuB,CAAC,0BAA0B,CAAC,CAAA;IAE1D,WAAA,MAAM,CAAC,uBAAuB,CAAC,cAAc,CAAC,CAAA;IAG9C,WAAA,MAAM,CAAC,uBAAuB,CAAC,6BAA6B,CAAC,CAAA;IAG7D,WAAA,MAAM,CAAC,uBAAuB,CAAC,gBAAgB,CAAC,CAAA;IAGhD,WAAA,MAAM,CAAC,uBAAuB,CAAC,iCAAiC,CAAC,CAAA;IAEjE,WAAA,MAAM,CAAC,kBAAkB,CAAC,MAAM,CAAC,CAAA;;GAzIzB,uCAAuC,CAu0DnD","sourcesContent":["import { MetaWorkflow_ElicitationNonAnswer } from '@wildo-ai/saas-models/meta-workflows';\nimport { existsSync, readFileSync, statSync } from 'node:fs';\nimport { basename, dirname, join, relative, resolve } from 'node:path';\n\nimport { inject, injectable } from 'inversify';\nimport { CodingAgentHostLoginState } from '@wildo-ai/external-connectors-models';\nimport { SAAS_SERVICE_TYPES, describeCaughtError, type LoggerService } from '@wildo-ai/saas-backend-lib';\nimport { resolveFrameworkKnowledgeAssetPath } from '@wildo-ai/framework-knowledge';\nimport {\n WORKBENCH_CREATION_PLANE_BEHAVIOR_IDS,\n WorkbenchCreationPlaneBehavior,\n WorkbenchDossierEntryStanding,\n Workbench_PlaybookRunState,\n sanitizeWorkbenchCreationPlaneIdentity,\n WORKBENCH_CODING_LANE_STATUS_ROW_ID,\n workbenchDossierEntryIdentity,\n} from '@wildo-ai/platform-core-shared';\nimport { FlowsActors_Status } from '@wildo-ai/saas-models';\n\nimport { PlaybookSpendMeasurement, composeGovernanceQuestionnaires, deriveOpenGovernanceQuestions, deriveProductGovernanceFacts } from '@wildo-ai/application-creation-runtime';\nimport { ApplicationAssuranceDocumentFactContributionResolutionKind, ApplicationCreatorInputAnswerStanding, ApplicationSpecificationFamily, PlaybookActivationStatus, creatorInputAnswerStanding, isCreatorInputNonAnswer, playbookInstanceId } from '@wildo-ai/saas-specifications/application-creation';\n\nimport type { CodingAgentDispatchCompanionService } from '../../../claude-cli/services/coding-agent-dispatch.companion.service';\nimport type { CodingRunWriteRegisterCompanionService } from '../../../claude-cli/services/coding-run-write-register.companion.service';\nimport { describeCodingAgentProbeRoute } from '../../../claude-cli/models/coding-agent-route.models';\n\nimport { COMPANION_SERVICE_TYPES } from '../../inject/models/service-types';\nimport { playbookRunRoundsOf, readPlaybookRunChoreography, readPlaybookRunJudgeVerdict } from '../../../meta-workflows/models/playbook-run-record.models';\nimport type { PlaybookRunCompanionService } from '../../../meta-workflows/services/playbook-run.companion.service';\nimport {\n isBuildPlanHeldByFailedModule,\n isCountedBuildTaskAttempt,\n settledRunWriteKey,\n type ApplicationBuildDispatchCompanionService,\n type ApplicationBuildTaskAttempt,\n type ApplicationBuildTaskRecord,\n type ApplicationBuildTaskUnmetProbe,\n} from '../../../meta-workflows/services/application-build-dispatch.companion.service';\nimport { BuildPlanTaskLandedProbeKind, buildPlanTaskLandedProbePaths } from '../../../meta-workflows/services/application-build-task-coding-policy.companion.service';\nimport { describeFailedLandingRemedies, type PlaybookRunWriteRegisterCompanionService } from '../../../meta-workflows/services/playbook-run-write-register.companion.service';\nimport type { ExecutionTraceReadCompanionService } from '../../../meta-workflows/services/execution-trace-read.companion.service';\nimport type { DossierCompanionService, DossierEntry } from '../../../meta-workflows/services/dossier.companion.service';\nimport type { CompanionContext } from '../../context/companion-context';\nimport { signEvaluatedCompanionTree } from '../../context/companion-package-loaders.companion';\nimport { loadSpecificationFamilyData } from '../../context/specification-family-data.companion';\nimport { signSchemaPlanInputs } from '../../../meta-workflows/services/application-build-generation-step.companion.service';\nimport { projectSpecificationArtifacts, specificationFamilyConcern } from '../subprocess/specification-artifacts.behavior';\nimport { buildCreationHomeLines, buildCreationOutcomes } from './creation-home-projection.companion';\nimport { describeVerificationHostCause } from '../../../claude-cli/models/verification-tool-availability.models';\nimport { readApplicationBootFailures, readUnavailableApplicationRuntimes } from '../../runtime/application-runtime-liveness.companion';\nimport { signDerivedInputs } from '../../utils/derived-input-signature.companion.utils';\nimport type { IntrospectionSourceWatcherCompanionService } from '../services/introspection-source-watcher.companion.service';\nimport { resolveIntrospectedApplicationPackageRoots } from '../services/introspection-source-state.companion.service';\nimport { readApplicationSecrets } from './application-secrets.companion';\n\n/**\n * An instant as the creation-plane schema declares it: a `Date`, or `null` (#1377).\n *\n * Every instant on the workbench's creation plane was declared `z.string()`, so detail panes printed\n * raw ISO in UTC, no date preference applied, and one row could carry two spellings of an instant —\n * a dispatch's `startedAt` with a `+02:00` offset beside a `settledAt` in `Z` — which a string sort\n * orders wrongly. The fields are `z.date()` now, with one wire form, and this is the ONE conversion\n * every emit site goes through, so a new instant cannot be converted differently.\n *\n * Unparseable input answers `null` rather than an Invalid Date: on a nullable field that is the\n * honest absence, and on a required one it fails the resource's own parse exactly as an empty string\n * failed `.min(1)` before — no invented instant either way.\n */\n/**\n * Where a dossier question stands: answered here, answered by the STEP for an instance that has none of\n * its own (#1609), or still needed. One function, because the badge and the \"asked of you now\" filter\n * must not disagree about an instance running on the step's answer.\n */\nexport function dossierEntryStanding(entry: DossierEntry): WorkbenchDossierEntryStanding {\n /* Answered without a value (#3437): the person's own say, so it outranks the step's answer an instance would fall back on. */\n if (entry.answer && isCreatorInputNonAnswer(entry.answer)) {\n return entry.answer.nonAnswer === MetaWorkflow_ElicitationNonAnswer.NOT_APPLICABLE\n ? WorkbenchDossierEntryStanding.NOT_APPLICABLE\n : WorkbenchDossierEntryStanding.DEFERRED;\n }\n if (entry.answer) {\n /* A proposal — kept by the creator, or recorded unattended (#2129) — is answered and still not theirs: the dossier says so. */\n return creatorInputAnswerStanding(entry.answer) === ApplicationCreatorInputAnswerStanding.ASSUMED\n ? WorkbenchDossierEntryStanding.ASSUMED\n : WorkbenchDossierEntryStanding.FROM_YOU;\n }\n /* The step said it does not apply, or deferred it (#3437): an instance running on that runs without it too. */\n if (entry.answerFromTheStep && isCreatorInputNonAnswer(entry.answerFromTheStep)) {\n return entry.answerFromTheStep.nonAnswer === MetaWorkflow_ElicitationNonAnswer.NOT_APPLICABLE\n ? WorkbenchDossierEntryStanding.NOT_APPLICABLE\n : WorkbenchDossierEntryStanding.DEFERRED;\n }\n if (entry.answerFromTheStep) {\n /*\n * An instance running on the step's ASSUMED answer runs on an assumption: that is what a person reviewing\n * the instance needs to see, so it outranks \"from the step\" (#2129 review L3). The run's brief already\n * reads it as one.\n */\n return creatorInputAnswerStanding(entry.answerFromTheStep) === ApplicationCreatorInputAnswerStanding.ASSUMED\n ? WorkbenchDossierEntryStanding.ASSUMED\n : WorkbenchDossierEntryStanding.FROM_THE_STEP;\n }\n return WorkbenchDossierEntryStanding.STILL_NEEDED;\n}\n\nexport function toInstant(value: unknown): Date | null {\n if (value instanceof Date) return Number.isNaN(value.getTime()) ? null : value;\n if (typeof value !== 'string' || value.length === 0) return null;\n const parsed = new Date(value);\n return Number.isNaN(parsed.getTime()) ? null : parsed;\n}\n\n/**\n * What one attempt spent, as the row carries it (#2530): a coding run's cost and tokens as its agent reported them, a\n * generation step's as its model calls were MEASURED, a floor where some of them reported nothing. A step's cost is per\n * currency; one that spent in several has no single figure, so it shows none rather than one of them.\n */\nfunction projectBuildTaskAttemptSpend(attempt: ApplicationBuildTaskAttempt): {\n costAmount: number | null; costCurrency: string | null; spendIsFloor: boolean; totalTokens: number | null;\n} {\n const spend = attempt.generationStepSpend;\n if (!spend) {\n return { costAmount: attempt.cost?.amount ?? null, costCurrency: attempt.cost?.currency ?? null, spendIsFloor: false, totalTokens: attempt.tokens?.totalTokens ?? null };\n }\n // A spend nothing measured (NOT_OBSERVED, UNMEASURED) carries no cost and no tokens, so it shows none: never a zero.\n const costs = Object.entries(spend.cost ?? {});\n const [single] = costs.length === 1 ? costs : [];\n return {\n costAmount: single ? single[1] : null,\n costCurrency: single ? single[0] : null,\n spendIsFloor: spend.measurement === PlaybookSpendMeasurement.PARTIAL,\n totalTokens: spend.totalTokens ?? null,\n };\n}\n\n/**\n * A landing probe the working tree does not satisfy, as the row carries it (#2530, #3204): where it looks and what for — the paths, the\n * symbols it wants declared there, a label pack's key, the shell surface it reads — and a shell probe's explanation of\n * what that surface lacks, still carries, or could not be asked. The probe's KIND stays the companion's: what it looks\n * for is what a reader needs, and each kind's facts say which it is.\n */\nfunction projectBuildTaskUnmetProbe(unmet: ApplicationBuildTaskUnmetProbe): Record<string, unknown> {\n const { probe } = unmet;\n const declares = probe.kind === BuildPlanTaskLandedProbeKind.COMMITTED_FILE_DECLARES || probe.kind === BuildPlanTaskLandedProbeKind.ANY_COMMITTED_FILE_DECLARES;\n return {\n paths: [...buildPlanTaskLandedProbePaths(probe)],\n declarations: declares ? [...probe.declarations] : [],\n keyPrefix: probe.kind === BuildPlanTaskLandedProbeKind.COMMITTED_LABEL_PACKS_DECLARE ? probe.keyPrefix : null,\n shellSurface: probe.kind === BuildPlanTaskLandedProbeKind.SHELL_SURFACE_CARRIES_PLAN ? probe.surface : null,\n shell: unmet.shell ? {\n unanswerable: unmet.shell.unanswerable ? unmet.shell.unanswerable : null,\n missing: [...unmet.shell.missing],\n declinedButPresent: [...unmet.shell.declinedButPresent],\n absentPaths: [...unmet.shell.absentPaths],\n } : null,\n registered: unmet.registered ? {\n unanswerable: unmet.registered.unanswerable ? unmet.registered.unanswerable : null,\n missing: unmet.registered.missing.map((shortfall) => ({ ...shortfall })),\n absentPaths: [...unmet.registered.absentPaths],\n } : null,\n };\n}\n\n/**\n * One build task's record as the workbench row carries it (#2530) — `Workbench_BuildTaskRecord`. Pure.\n *\n * What the record leaves out it leaves ABSENT, never false: an attempt that reported no cost has a null cost, a task\n * that is not stuck a null reason. The record's own vocabularies the shared contract cannot name (a probe's kind, a\n * run's disposition) are carried as what they mean for a reader: what a probe reads and looks for there, and on each\n * attempt what made it fail or not count (the checks it failed, what it wrote out of scope, a sibling that overwrote it).\n */\nexport function projectBuildTaskRecordRow(record: ApplicationBuildTaskRecord, attemptsTruncated: boolean): Record<string, unknown> {\n return {\n workbenchBuildPlanTaskId: sanitizeWorkbenchCreationPlaneIdentity(record.taskRef),\n taskRef: record.taskRef,\n status: record.status,\n attemptCount: record.attempts.filter(isCountedBuildTaskAttempt).length,\n attempts: record.attempts.map((attempt) => ({\n runTaskId: attempt.runTaskId,\n startedAt: toInstant(attempt.startedAt),\n settledAt: toInstant(attempt.settledAt),\n status: attempt.status,\n generationStep: attempt.generationStep === true,\n refusedBeforeStart: attempt.refusedBeforeStart === true,\n ranNothing: attempt.ranNothing === true,\n failureAttribution: attempt.failureAttribution ?? null,\n interferenceSuspected: attempt.interferenceSuspected === true,\n rearmReason: attempt.rearm?.reason ?? null,\n rearmNote: attempt.rearm?.note ? attempt.rearm.note : null,\n error: attempt.error ? attempt.error : null,\n ...projectBuildTaskAttemptSpend(attempt),\n filesChanged: attempt.filesChanged ?? null,\n failedCheckRefs: [...(attempt.failedCheckRefs ?? [])],\n outOfScopePaths: [...(attempt.outOfScopePaths ?? [])],\n interference: attempt.interference ? {\n overlappingTaskRefs: [...attempt.interference.overlappingTaskRefs],\n contendedProductPaths: [...attempt.interference.contendedProductPaths],\n requeued: attempt.interference.requeued,\n } : null,\n })),\n attemptsTruncated,\n stuckReason: record.stuck?.reason ?? null,\n stuckQuestion: record.stuck?.question ? record.stuck.question : null,\n stuckDocumentRef: record.stuck?.documentRef ? record.stuck.documentRef : null,\n waitingOnTaskRefs: [...(record.waitingOn ?? [])],\n unmetProbes: (record.unmetProbes ?? []).map(projectBuildTaskUnmetProbe),\n schemaPlanSyncState: record.schemaPlanSyncState ?? null,\n designTokenBlockState: record.designTokenBlockState ?? null,\n brandDesignState: record.brandDesignState ?? null,\n landingBlockedBy: record.landingBlockedBy ? record.landingBlockedBy : null,\n // By build-plan task row id, the sanitized ref, so each opens the task it names (#2652).\n followUpTaskIds: (record.followUpTaskRefs ?? []).map(sanitizeWorkbenchCreationPlaneIdentity),\n followUpOfTaskId: record.followUpOf ? sanitizeWorkbenchCreationPlaneIdentity(record.followUpOf) : null,\n // A person's closure (#3224, #3227): landed because they said so, which the record must never let pass for a probe.\n closureKind: record.closure?.kind ?? null,\n closureSatisfiedBy: record.closure?.satisfiedBy ?? null,\n closureReason: record.closure?.reason ?? null,\n unverifiable: record.unverifiable === true,\n landedBeforeAnyRun: record.landedBeforeAnyRun !== undefined,\n landedBeforeAnyRunPaths: [...(record.landedBeforeAnyRun?.probedPaths ?? [])],\n };\n}\n\n/**\n * How often the input signature is re-read when nothing has prompted it.\n *\n * The longest a change made outside this process can go unnoticed when the watcher did not report it.\n * The composite signature walks ~10,400 files on Wonder Todos (~60-110 ms warm, 2026-09-24) — but only\n * when the companion's change feed cannot vouch that nothing it covers moved (#3452): while the source\n * watcher is proven live, each part reuses its fingerprint until an event touches its inputs, so a quiet\n * sweep walks nothing. The watcher now covers the whole working tree and git's `HEAD` and reflog, so a\n * hand edit or a commit reaches `reconcileInputSignature` through the settled seam within the settle\n * window, not at the next sweep. The signature half of a sweep does nothing while no board is cached; its\n * publication half (see `sweep()`) runs only while a served board is WATCHED. It replaces a 60 s TTL.\n */\nconst INPUT_SIGNATURE_SWEEP_INTERVAL_MS = 15_000;\n\n/**\n * How old the secrets listing may be before a read starts refreshing it behind the rows it serves (#1637).\n * See `deriveApplicationSecretRows`: a read never waits for a refresh, only for the first listing.\n */\nconst APPLICATION_SECRETS_LISTING_REUSE_MS = 60_000;\n\n/**\n * How long an invalidation waits before the boards are re-derived for publication.\n *\n * Invalidations arrive in bursts — a dispatch operation's `finally` and the write register's mutation\n * seam fire for one landing — and each re-derivation can cost seconds. Waiting for the burst to settle\n * turns N invalidations into one recompute, and a quarter second is invisible next to the recompute.\n */\nconst REPUBLISH_SETTLE_MS = 250;\n\n/**\n * The longest a burst may keep postponing a publication pass.\n *\n * The settle window restarts on every invalidation, so a steady stream of them less than 250 ms apart\n * would otherwise postpone publication for as long as the stream lasted. Past this bound the pass runs\n * anyway; anything arriving during it asks for one more pass.\n */\nconst REPUBLISH_MAX_WAIT_MS = 2_000;\n\n/**\n * How long one read of the input signature may be reused by another cache MISS.\n *\n * A cold Home read misses four slots in the same tick, and each records the signature it was computed\n * under; without this they walk the tree four times for one answer. Reusing a signature read a moment\n * EARLIER is the safe direction: an edit landing inside the window leaves the slot marked with the\n * older signature, so the next check drops it. The sweep and the REST door never reuse — they ask for\n * a fresh reading.\n */\nconst INPUT_SIGNATURE_REUSE_MS = 500;\n\n/**\n * The longest the boards are kept while the input signature cannot be READ.\n *\n * An unreadable tree (a permission error, a vanished root) cannot show movement — and the signature\n * helper's own contract is that `null` must never authorize a cache hit. Treating it as movement on\n * every sweep would recompute every board every 15 s; ignoring it would switch every out-of-process\n * freshness line off, silently and for good. So it degrades to a bounded clock, with a warning, which\n * is the most this plane can honestly promise about inputs it cannot see.\n */\nconst UNREADABLE_SIGNATURE_MAX_AGE_MS = 60_000;\n\n/**\n * The fields this plane stamps as PROVENANCE rather than content — they describe WHEN a row was\n * computed, so they differ on every recompute by construction.\n *\n * Excluded from the \"did the board move?\" comparison, never from the rows. Declared here, beside the\n * one place that stamps them, because only the producer knows which of its fields are provenance —\n * and a producer declaring its OWN field is not the hand-kept vocabulary of other people's fields\n * that `projected-row-determinism.test.ts` rejected.\n */\nexport const CREATION_PLANE_PROVENANCE_ROW_FIELDS: readonly string[] = ['computedAt'];\n\n/**\n * One creation-plane board whose re-derivation differs from what its readers were last served.\n *\n * `before` is what a reader holds; `after` is what they would read now. The listener diffs them by\n * the resource's own identity field, which the projection has already stamped onto both.\n */\nexport interface CreationPlaneBoardChange {\n readonly behavior: string;\n readonly before: readonly Record<string, unknown>[];\n readonly after: readonly Record<string, unknown>[];\n readonly provenanceFields: readonly string[];\n}\n\nexport type CreationPlaneBoardChangeListener = (change: CreationPlaneBoardChange) => void;\n\n/**\n * Boards published by publication PASSES only — the 15 s sweep's, or the one an invalidation\n * schedules — never by a read (#1310, fourth review R3).\n *\n * A read-time announcement is right for a board whose rows change when something HAPPENS: the\n * reader's own re-read after the publication compares equal, and it stops. The trace-session board\n * is not such a board. Its `eventCount` and `stepCount` grow continuously while a coding or playbook\n * run is tracing, so every re-read after a publication could find new events and publish again —\n * one publication per list round trip for as long as a run is active. Published by passes alone (a\n * sweep every 15 s; an invalidation's after a 250 ms settle, bounded at 2 s), it moves at most once\n * per pass, which is as fresh as a count of events needs to be.\n */\nconst CREATION_PLANE_PASS_ONLY_BEHAVIORS: ReadonlySet<string> = new Set<string>([WorkbenchCreationPlaneBehavior.TRACE_SESSIONS]);\n\n/**\n * Whether a publication for this behavior would reach anybody.\n *\n * The notifier answers it from the live socket rooms. It is what bounds the background cost: a board\n * is re-derived for publication only while a subscriber is listening for it, so a companion with no\n * workbench open recomputes nothing on an invalidation, however many it receives.\n */\nexport type CreationPlaneBoardWatchedPredicate = (behavior: string) => boolean;\n\n/**\n * The RAW eligibility board, cached beside the rows derived from it, so `GET /playbooks` — the REST\n * door scripts and `wildo context` use — shares the one derivation instead of paying its own (the\n * issue's item 5: measured 22–134 s, with no single-flight, so repeated calls stacked).\n */\nconst PLAYBOOK_ELIGIBILITY_BOARD_CACHE_KEY = 'creation-plane.playbook-eligibility-board';\n\n/**\n * The cache slot of the family states Home reads — keyed beside the behaviors, though no behavior\n * serves it directly: it is an INPUT two behaviors share, and one slot is what keeps them agreeing.\n */\nconst SPECIFICATION_ARTIFACT_STATES_CACHE_KEY = 'creation-plane.home.specification-artifact-states';\n\n/** The trace index is bounded by the shared workbench page ceiling, not by the read route's default 50. */\nconst TRACE_SESSION_LIMIT = 1000;\n\n/**\n * Re-exported from the SHARED vocabulary (`@wildo-ai/platform-core-shared`), where the identity\n * rule moved once the frontend needed it too — an interrupted run's re-dispatch derives the row\n * address from its `playbookRef`. One named source; this alias keeps companion-side call sites\n * and pins stable.\n */\nexport const sanitizeCreationPlaneIdentity = sanitizeWorkbenchCreationPlaneIdentity;\n\n/**\n * Whether a re-derived board says the same thing as the one its readers hold, provenance aside.\n *\n * The gate that keeps an idle application silent: the introspection notifier would reach the same\n * conclusion row by row, but deciding it here means an unchanged board costs no listener call at\n * all. Order-sensitive on purpose — every board is produced by one code path in a stable order, and\n * a reordering IS a change a list surface would show.\n */\nexport function areBoardRowsEqual(\n before: readonly Record<string, unknown>[],\n after: readonly Record<string, unknown>[],\n): boolean {\n if (before.length !== after.length) return false;\n const withoutProvenance = (row: Record<string, unknown>): string => JSON.stringify(\n Object.fromEntries(Object.entries(row).filter(([key]) => !CREATION_PLANE_PROVENANCE_ROW_FIELDS.includes(key))),\n );\n return before.every((row, index) => withoutProvenance(row) === withoutProvenance(after[index]!));\n}\n\n/**\n * The field each creation-plane behavior writes its row identity to — ONE total map, so the field a\n * row is stamped with and the field a publication is diffed by cannot be two spellings of one fact.\n *\n * The notifier diffs by the resource's registered `resourceFieldIdentifier`. If the two ever\n * differed, `diffProjectedRows` would find no identity on any row and a moved board would publish\n * nothing, with nothing reporting it — so `creation-plane-projection.test.ts` holds this map equal to\n * the registry, and `Record<WorkbenchCreationPlaneBehavior, …>` makes a new behavior a compile error\n * here rather than a silent gap.\n */\nexport const CREATION_PLANE_IDENTITY_FIELDS: Readonly<Record<WorkbenchCreationPlaneBehavior, string>> = {\n [WorkbenchCreationPlaneBehavior.PLAYBOOK_ELIGIBILITY]: 'workbenchPlaybookId',\n [WorkbenchCreationPlaneBehavior.BUILD_PLAN_TASKS]: 'workbenchBuildPlanTaskId',\n [WorkbenchCreationPlaneBehavior.RUN_WRITE_RECORDS]: 'workbenchRunWriteRecordId',\n [WorkbenchCreationPlaneBehavior.TRACE_SESSIONS]: 'workbenchTraceSessionId',\n [WorkbenchCreationPlaneBehavior.GOVERNANCE_DOCUMENTS]: 'workbenchGovernanceDocumentId',\n [WorkbenchCreationPlaneBehavior.GOVERNANCE_QUESTIONS]: 'workbenchGovernanceQuestionId',\n [WorkbenchCreationPlaneBehavior.BUILD_DISPATCH_PLAN]: 'workbenchBuildDispatchPlanId',\n [WorkbenchCreationPlaneBehavior.BUILD_DISPATCHES]: 'workbenchBuildDispatchId',\n [WorkbenchCreationPlaneBehavior.BUILD_TASK_RECORDS]: 'workbenchBuildTaskRecordId',\n [WorkbenchCreationPlaneBehavior.PLAYBOOK_RUNS]: 'workbenchPlaybookRunId',\n [WorkbenchCreationPlaneBehavior.WAITING_PLAYBOOK_RUNS]: 'workbenchWaitingPlaybookRunId',\n [WorkbenchCreationPlaneBehavior.CODING_LANE_STATUS]: 'workbenchCodingLaneStatusId',\n [WorkbenchCreationPlaneBehavior.PARKED_CODING_QUESTIONS]: 'workbenchParkedCodingQuestionId',\n [WorkbenchCreationPlaneBehavior.DOSSIER_ENTRIES]: 'workbenchDossierEntryId',\n [WorkbenchCreationPlaneBehavior.HOME_LINES]: 'workbenchCreationHomeLineId',\n [WorkbenchCreationPlaneBehavior.CREATION_OUTCOMES]: 'workbenchCreationOutcomeId',\n [WorkbenchCreationPlaneBehavior.APPLICATION_SECRETS]: 'workbenchApplicationSecretId',\n};\n\n/** One cached derivation — a board's rows, or an input two boards share. */\ninterface BoardCacheSlot {\n cache: { value: unknown } | null;\n /**\n * Bumped by every {@link CreationPlaneProjectionCompanionService.invalidateDerivedBoards}. A\n * recompute captures it BEFORE deriving and refuses to populate the cache when it moved — without\n * this, an invalidation that fires while a recompute is in flight (a poll-started derivation\n * straddling a dispatch's post-operation invalidation) is silently cancelled out: the in-flight\n * closure would repopulate the cache with the PRE-mutation board, which is the exact \"as of before\n * your dispatch\" answer this cache's contract forbids. With no TTL any more, that stale board\n * would stay until the next invalidation, so the guard matters more than it did.\n */\n epoch: number;\n /** Concurrent LISTs during a cold recompute share ONE derivation instead of stacking ~14s reads. */\n inFlight: Promise<unknown> | null;\n /** The input signature read when the cached value's derivation STARTED; `null` when it could not be read. */\n inputSignature: string | null;\n /** The same, for the derivation currently in flight — so a check can drop a flight that started before an edit. */\n inFlightInputSignature: string | null;\n}\n\n/**\n * The IN-PROCESS half of the companion's introspection source — the CREATION PLANE\n * (the mechanism that decided issue #166).\n *\n * The behaviors here — one per `WorkbenchCreationPlaneBehavior` member, fifteen today — project the\n * companion's OWN runtime services: no subprocess, no app-dist import, and mostly milliseconds per\n * read. The exceptions are the eligibility board, the build-plan board and the dispatch plan, whose\n * seconds-long derivations are exactly why the CACHE below exists. The behavior-id vocabulary is owned by\n * `@wildo-ai/platform-core-shared` (`WorkbenchCreationPlaneBehavior`), the same package that writes\n * the ids into the resource bindings, so the two ends cannot drift.\n *\n * ## The eligibility cache (requirement R3 of the plan)\n *\n * Resource surfaces multiply the consumers of a LIST (RMM, embedded lists, label resolution), so\n * serving the raw recompute would make the board WORSE than the bespoke route it replaces. The\n * cache is `{rows, computedAt}`, held until something says its inputs moved — see \"Freshness\"\n * below — and `computedAt` is projected onto every row so the board can render \"as of\".\n *\n * ## Freshness: two lines, and why the TTL is gone (#1310)\n *\n * The cache was freshened by THREE mechanisms — a 60 s TTL, an epoch, and a mutation listener —\n * while the two costs beneath it (the specifications evaluation, `53d843d6`; the schema-plan\n * subprocess, `a6fa293f`) were already keyed on input signatures. Now there are two lines, one per\n * KIND of input:\n *\n * 1. **In-process mutations announce themselves.** A run's landing (the write register), a commit\n * the loop makes (#1534), every change to a build task's run state (a coding execution selected,\n * admitted or resumed, a chain settling, a pre-admission refusal, a re-arm, a generation step\n * opening and ending — `announceRunStateChanged`), a dispatch operation and the explicit Refresh\n * route all call {@link invalidateDerivedBoards}.\n * 2. **Everything outside this process is SIGNED.** {@link readInputSignature} fingerprints the\n * application's working tree (no `node_modules`, no `dist`, no dotted directories), every build\n * output the boards read (each application package's companion tree, and the schema-plan inputs,\n * through the signatures of the caches that read them), the compiled\n * playbook catalog, and git's `HEAD` plus its reflog — the file every commit, checkout and reset\n * appends to. A slot remembers the signature it was computed under; when the current one differs,\n * the boards drop. That is what closes the two gaps the TTL existed for: a HUMAN commit, and a\n * hand-edited specification (its edit, and then its emit).\n *\n * The signature is checked by a 15 s sweep AND whenever the introspection source watcher reports a\n * settled burst of events (since #3452 the watcher covers the whole working tree and git's `HEAD` and reflog,\n * so an edit or a commit is noticed within its settle window). The sweep does not walk on its own any more:\n * each part of the signature is reused while the watcher's change feed vouches its inputs did not move. So a\n * move the watcher MISSED (a dropped event, a write through a hard link on Linux, a watcher gone deaf) reaches\n * the boards when the watcher's clock marks everything moved (30 s off macOS, 5 min on macOS) or its canary\n * withdraws the feed (~35 s), not at the next sweep; with no watcher at all, every sweep walks, as before\n * #3452 (`staleness-presents-as-a-logic-defect.md` records why a watcher alone is never trusted). A cache HIT never walks the tree;\n * a MISS reads the signature it is computed under (~60-110 ms warm, reused across the misses of one\n * moment), which is noise beside the seconds a miss costs. The one read that asks for a fresh check\n * is `GET /playbooks` — see {@link readFreshPlaybookEligibilityBoard}.\n *\n * In the monorepo `logs/HEAD` is repository-wide, so any session's commit drops the boards. That is\n * the safe direction, and its cost is bounded by the publication gate below: a board is re-derived in\n * the background only while somebody is watching it.\n *\n * **Rejected: keeping the TTL as a third line.** A TTL can only be correct by expiring, so it both\n * serves stale rows for up to its length AND recomputes an unchanged board on schedule — and at 60 s\n * it matched the workbench's poll, so most polls paid the recompute (the issue's item 4). The\n * signature has neither cost. What it cannot see is an input nobody enumerated; the answer to that is\n * to add the input to the signature, and the Refresh route stays as the operator's escape hatch.\n * The `.git/index` is deliberately NOT signed: the derivation's own `git status` may rewrite it, which\n * would make every board recompute invalidate itself.\n *\n * ## Push (#1310)\n *\n * An invalidation also RE-DERIVES every board a reader has been served and hands each one whose rows\n * moved to {@link onBoardRowsChanged} listeners — the introspection notifier, which diffs by row\n * identity and publishes over the socket the workbench already listens on. A recompute identical to\n * what was served publishes NOTHING, so an idle application stays silent. A board is re-derived only\n * while a subscriber is WATCHING it (the notifier answers from the live socket rooms), so a companion\n * with no workbench open recomputes nothing in the background, however many invalidations it gets.\n *\n * Push also covers the boards NO event invalidates — a playbook run moving between states, a new\n * trace session — because each 15 s sweep runs a publication pass over the watched boards too (see\n * {@link sweep}). That matters more than it looks: a workbench LIST is served from the browser's read\n * cache while its collection room is confirmed, so a client poll never reaches this companion, and a\n * publication is the only thing that clears that cache.\n *\n * Rule-5 posture (`one-source-of-truth.md`): this is a per-run projection cache. Deleting it costs\n * one recompute, never truth, and nothing anywhere reads it as an acceptance.\n *\n * ## Identity sanitization, and why it is here\n *\n * The binding's `identityFields` composition refuses any value outside `[a-zA-Z0-9_-]`, and this\n * plane's business keys legitimately violate it: playbook refs carry dots (`top_down.phase-gate`),\n * trace session ids are `dev-<ISO-ish>` directory names. So each projection emits its identity\n * field itself — `.` becomes `__`, any other invalid character becomes `-` — and REFUSES on a\n * post-sanitization duplicate rather than serving two rows under one id (the same trade the\n * source's composed-identity stamping makes, for the same reason: READ returning an arbitrary row\n * is worse than a refusal).\n */\n/**\n * A product-derived fact's value as one line, read the way a \"from you\" answer is (#1454 review): a\n * string as written, a list joined, anything else as its JSON — a structured value has no sentence of\n * its own, and inventing one here would be display text no label owns.\n */\nfunction summarizeDerivedFactValue(value: unknown): string {\n if (typeof value === 'string') return value;\n if (Array.isArray(value) && value.every((item) => typeof item === 'string' || typeof item === 'number')) return value.map(String).join(', ');\n return JSON.stringify(value);\n}\n\n/** What a board over the build plan answers while a failed module holds the plan (#3258): nothing to show, and the feed names the module. */\nfunction holdBoardOnFailedModule<THeld>(held: THeld): (error: unknown) => THeld {\n return (error) => {\n if (isBuildPlanHeldByFailedModule(error)) return held;\n throw error;\n };\n}\n\n@injectable()\nexport class CreationPlaneProjectionCompanionService {\n /**\n * One cache slot per EXPENSIVE behavior, keyed by behavior id.\n *\n * It was three fields serving eligibility alone. Measured 2026-09-17 against the running Wonder\n * Todos companion, per authenticated LIST:\n *\n * | behavior | cold | warm |\n * |---|---|---|\n * | `workbench-playbooks` | 17.1s | **0.02s** — it had this cache |\n * | `workbench-build-plan-tasks` | 13.8s | **13.8s** — it did not |\n * | `workbench-trace-sessions` | 0.50s | — cheap, needs none |\n * | `workbench-run-write-records` | 0.13s | — cheap, needs none |\n *\n * Both expensive derivations pay the same thing — `loadSpecificationsCompanionData` plus the\n * build-plan read and its git landing probes — so the cache belongs to the COST, not to\n * eligibility. Giving the build plan its own copy of the epoch/in-flight pair would be the\n * \"N call sites that drift\" shape this file's own constructor comment warns about, so the slot is\n * keyed instead and both go through {@link deriveCached}.\n *\n * The cheap two are deliberately NOT cached: a cache that saves 130ms buys nothing and adds a\n * staleness window to a surface that currently has none.\n */\n private readonly boardCaches = new Map<string, BoardCacheSlot>();\n\n /**\n * The creation plane's CHANGE CURSOR (#1657) — what `GET /creation/pulse` serves, in O(1).\n *\n * Moved by every invalidation, which every mutation path ends in (run writes, accepted runs, coding-run\n * state changes, every creation-plane operation), and by a watched board's republication. It is a\n * hint that something may have moved, never a statement of what: a poller that sees it move reads the\n * feed. Not persisted — a restart resets it to 0, which a poller reads as \"moved\".\n */\n private changeSequence = 0;\n private changedAt: string | null = null;\n\n private markCreationChanged(): void {\n this.changeSequence += 1;\n this.changedAt = new Date().toISOString();\n }\n\n public readChangeCursor(): { readonly sequence: number; readonly changedAt: string | null } {\n return { sequence: this.changeSequence, changedAt: this.changedAt };\n }\n\n private boardCacheSlot(behaviorId: string): BoardCacheSlot {\n let slot = this.boardCaches.get(behaviorId);\n if (!slot) {\n slot = { cache: null, epoch: 0, inFlight: null, inputSignature: null, inFlightInputSignature: null };\n this.boardCaches.set(behaviorId, slot);\n }\n return slot;\n }\n\n /**\n * Serve one expensive derivation from its slot, recomputing on a miss.\n *\n * Every property the eligibility cache had, now shared: single-flight, and the epoch guard that\n * keeps a derivation which straddled an invalidation OUT of the cache while still answering its own\n * callers. The slot also records the input signature it was computed under, read BEFORE deriving —\n * so an input that moves mid-derivation leaves the slot marked with the older signature and the\n * next check drops it, rather than the reverse.\n */\n private deriveCached<TValue>(cacheKey: string, compute: () => Promise<TValue>): Promise<TValue> {\n const slot = this.boardCacheSlot(cacheKey);\n if (slot.cache) return Promise.resolve(slot.cache.value as TValue);\n if (slot.inFlight) return slot.inFlight as Promise<TValue>;\n\n const epochAtStart = slot.epoch;\n // Read on a MISS only — a hit never walks the tree — and shared across the misses of one moment.\n const signatureAtStart = this.readInputSignature({ reuse: true });\n const flight = (async () => {\n const value = await compute();\n if (slot.epoch === epochAtStart) {\n slot.cache = { value };\n slot.inputSignature = signatureAtStart;\n }\n return value;\n })().finally(() => {\n if (slot.inFlight === flight) slot.inFlight = null;\n });\n slot.inFlight = flight;\n slot.inFlightInputSignature = signatureAtStart;\n return flight;\n }\n\n /** The rows each behavior was last SERVED to a reader — what the next publication diffs against. */\n private readonly lastServedRows = new Map<string, readonly Record<string, unknown>[]>();\n /**\n * The START sequence of the derivation that produced each baseline (#1310, fourth review R2).\n *\n * Derivations finish out of order — a dropped in-flight derivation still answers its callers, and a\n * read can outlast a pass or the reverse — so \"last to finish\" is not \"newest\". A finishing\n * derivation that STARTED before the one behind the current baseline neither replaces it nor\n * announces anything: its rows describe an older world, and publishing them would hand a live\n * detail pane stale content under a newer generation.\n */\n private readonly lastServedSequence = new Map<string, number>();\n private derivationSequence = 0;\n private readonly boardChangeSubscribers = new Set<{\n readonly listener: CreationPlaneBoardChangeListener;\n readonly isWatched: CreationPlaneBoardWatchedPredicate | undefined;\n }>();\n private lastSignatureReading: { value: string | null; atMs: number } | undefined;\n private unreadableSignatureSinceMs: number | undefined;\n private republishTimer: NodeJS.Timeout | undefined;\n /** When the currently pending publication was FIRST requested — what {@link REPUBLISH_MAX_WAIT_MS} is measured from. */\n private republishRequestedSinceMs: number | undefined;\n private republishing: Promise<void> | undefined;\n private republishRequested = false;\n private sweepTimer: NodeJS.Timeout | undefined;\n private unsubscribeWatcher: (() => void) | undefined;\n /** Resolved once: where git keeps `HEAD` for this application, or `null` when it is not in a repository. */\n private gitSignatureFiles: readonly string[] | undefined;\n\n constructor(\n @inject(COMPANION_SERVICE_TYPES.PlaybookRunService)\n private readonly playbookRunService: PlaybookRunCompanionService,\n @inject(COMPANION_SERVICE_TYPES.ApplicationBuildDispatchService)\n private readonly buildDispatchService: ApplicationBuildDispatchCompanionService,\n @inject(COMPANION_SERVICE_TYPES.PlaybookRunWriteRegisterService)\n private readonly runWriteRegister: PlaybookRunWriteRegisterCompanionService,\n @inject(COMPANION_SERVICE_TYPES.ExecutionTraceReadService)\n private readonly executionTraceReadService: ExecutionTraceReadCompanionService,\n @inject(COMPANION_SERVICE_TYPES.CodingAgentDispatchService)\n private readonly codingAgentDispatchService: CodingAgentDispatchCompanionService,\n @inject(COMPANION_SERVICE_TYPES.DossierService)\n private readonly dossierService: DossierCompanionService,\n /* Which coding runs have been accepted (#1454, Step 7) — joined onto the dispatch rows by task id. */\n @inject(COMPANION_SERVICE_TYPES.CodingRunWriteRegisterService)\n private readonly codingRunWriteRegister: CodingRunWriteRegisterCompanionService,\n /* The specifications package, for the artifact states Home's outcomes and suggestions are measured on. */\n @inject(COMPANION_SERVICE_TYPES.CompanionContext)\n private readonly companionContext: CompanionContext,\n /* The settled-source seam that makes an input-signature check EARLY (#1310); the sweep makes it certain. */\n @inject(COMPANION_SERVICE_TYPES.IntrospectionSourceWatcherService)\n private readonly sourceWatcher: IntrospectionSourceWatcherCompanionService,\n @inject(SAAS_SERVICE_TYPES.Logger)\n private readonly logger: LoggerService,\n ) {\n /*\n * A run landing files is exactly the event that changes playbook eligibility, and every run's\n * landing reports to the write register — so the register's mutation seam is the ONE hook that\n * covers playbook runs AND reverts without this service being wired into each dispatch handler\n * (the N-call-sites shape that drifts). What it does NOT cover — a coding-agent landing the\n * HUMAN commits in git — no hook can see; the input signature (see {@link start}) is what\n * notices it.\n */\n this.runWriteRegister.registerMutationListener(() => this.invalidateDerivedBoards());\n /*\n * A coding run the LOOP commits under the autonomy posture (#1534) is a landing the loop can see:\n * the dispatch service announces it and the boards drop. Subscribed from this side because this\n * service already depends on the dispatch service; the reverse injection would be a cycle.\n */\n this.codingAgentDispatchService.registerRunAcceptedListener(() => this.invalidateDerivedBoards());\n /*\n * And every other change to a build task's RUN STATE (#1310): a coding execution selected, a run\n * admitted or resumed, a chain settling — including one that committed nothing — a dispatch\n * refused before admission, a re-arm, and a generation step opening and ending. Each is\n * actor-plane state no file shows: a selected or started run is in flight to the next-task\n * selection, a no-product task lands on a completed durable run (the RAN-not-PROVEN mark), a\n * refusal leaves a counted failure, a re-arm releases a task held as stuck. Neither the accepted-run hook\n * above nor the input signature can see them; they were bounded only by the 60 s TTL, and this is\n * what let that go.\n */\n this.codingAgentDispatchService.registerRunStateChangedListener(() => this.invalidateDerivedBoards());\n }\n\n /**\n * Begin watching the boards' out-of-process inputs. Idempotent; started by the companion's\n * freshness plane, after the WebSocket server exists.\n *\n * Two triggers for one check — see \"Freshness\" in the class notes: the watcher's settled bursts\n * make it early, the sweep makes it certain. Both are `unref`'d, so neither holds a process open.\n */\n public start(): void {\n if (this.sweepTimer) return;\n this.unsubscribeWatcher = this.sourceWatcher.onSourceSettled(() => this.reconcileInputSignature());\n this.sweepTimer = setInterval(() => this.sweep(), INPUT_SIGNATURE_SWEEP_INTERVAL_MS);\n this.sweepTimer.unref?.();\n }\n\n /**\n * One sweep: check the input signature, then run a publication pass over the WATCHED boards.\n *\n * The pass is what makes push the freshness line for EVERY board, not only for the ones an event\n * invalidates. A workbench LIST is served from the browser's read cache while its collection room\n * is confirmed — a poll never reaches the companion — and that cache is cleared only by a\n * publication. So a board that moves with no invalidating event of its own (a playbook run changing\n * state, a waiting run, a new trace session) would otherwise stay stale on screen indefinitely.\n *\n * What a pass costs: every CACHED board (eligibility, build-plan tasks, the dispatch plan, the\n * family states) answers from its slot and compares equal. The rest are actor-plane and file reads —\n * runs, dispatches, waiting runs, parked questions, the dossier, governance documents — which Home's\n * lines also join. Only boards someone watches are re-derived, and nothing runs while nobody is.\n *\n * The trace-session board moves whenever the companion records a session — which it does for its\n * own API requests (measured 2026-09-24: a `GET /api/companion/playbooks/runs` produced one, three\n * resource LISTs produced none) — AND whenever a live run appends events or steps, since each row\n * carries `eventCount` / `stepCount`. That second source is continuous while a run traces, which is\n * why the board is pass-only ({@link CREATION_PLANE_PASS_ONLY_BEHAVIORS}): it is republished at\n * most once per publication pass, and a read never publishes it.\n */\n public sweep(): void {\n this.reconcileInputSignature();\n this.scheduleRepublish();\n }\n\n public stop(): void {\n if (this.sweepTimer) clearInterval(this.sweepTimer);\n if (this.republishTimer) clearTimeout(this.republishTimer);\n this.sweepTimer = undefined;\n this.republishTimer = undefined;\n this.republishRequestedSinceMs = undefined;\n this.unsubscribeWatcher?.();\n this.unsubscribeWatcher = undefined;\n }\n\n /**\n * Subscribe to boards whose re-derivation moved — the seam the WebSocket notifier plugs into.\n *\n * `isWatched`, when given, says whether a publication for a behavior would reach anybody; a board no\n * subscriber watches is not re-derived by a pass, though its served baseline is kept (see\n * {@link republishChangedBoards}). Without it the subscriber counts as watching everything.\n */\n public onBoardRowsChanged(listener: CreationPlaneBoardChangeListener, isWatched?: CreationPlaneBoardWatchedPredicate): () => void {\n const subscriber = { listener, isWatched };\n this.boardChangeSubscribers.add(subscriber);\n return () => this.boardChangeSubscribers.delete(subscriber);\n }\n\n /**\n * Drop the boards when the input signature says something outside this process moved them.\n *\n * Compared per SLOT, against the signature that slot was computed under, so a slot filled after a\n * change is not dropped for it and one filled before it always is.\n *\n * An UNREADABLE signature is not \"unchanged\". It cannot show movement, but the helper's contract is\n * that `null` never authorizes a cache hit — so the boards are dropped at most once per\n * {@link UNREADABLE_SIGNATURE_MAX_AGE_MS}, with a warning the first time, rather than every sweep\n * (a recompute storm) or never (freshness silently off for good).\n */\n public reconcileInputSignature(): void {\n /*\n * Cached slots AND derivations still in flight: a flight that started before an edit would\n * otherwise be JOINED by the next reader and answer about the tree as it was.\n *\n * A dropped flight is not cancelled — nothing here can cancel a derivation — so it runs to\n * completion for the callers already waiting on it, and the epoch guard keeps its answer out of\n * the cache. The trade is deliberate: under continuous edits a new derivation may start beside an\n * orphan, but ONLY when the inputs really moved (an unmoved signature never drops anything), and a\n * stale answer served as fresh would be the worse failure.\n */\n const cachedSlots = [...this.boardCaches.values()].filter((slot) => slot.cache !== null || slot.inFlight !== null);\n if (cachedSlots.length === 0) return;\n const current = this.readInputSignature({ reuse: false });\n if (current === null) {\n const now = Date.now();\n if (this.unreadableSignatureSinceMs === undefined) {\n this.unreadableSignatureSinceMs = now;\n this.logger.warn(\n 'Creation-plane input signature is unreadable; boards now refresh on a '\n + `${UNREADABLE_SIGNATURE_MAX_AGE_MS / 1000}s clock until it can be read again`,\n { saasRoot: this.companionContext.saasRoot },\n );\n return;\n }\n if (now - this.unreadableSignatureSinceMs >= UNREADABLE_SIGNATURE_MAX_AGE_MS) {\n this.unreadableSignatureSinceMs = now;\n this.invalidateDerivedBoards();\n }\n return;\n }\n this.unreadableSignatureSinceMs = undefined;\n if (cachedSlots.some((slot) => (slot.cache !== null ? slot.inputSignature : slot.inFlightInputSignature) !== current)) {\n this.invalidateDerivedBoards();\n }\n }\n\n /**\n * A fingerprint of every out-of-process input the cached boards read, composed of four parts:\n *\n * 1. **The application's working tree**, signed WHOLE (bar `node_modules`, `dist` and dotted\n * directories) rather than the specifications package alone, because a build task LANDS when its\n * declared product is committed and clean — and a product can be any file of any package.\n * 2. **Every BUILD OUTPUT the boards read.** Part 1 skips `dist`, and without this part a `src` edit\n * moved the signature BEFORE its emit: the board recomputed against the old build, was cached\n * under the new signature, and the emit then changed nothing the signature saw — stale until an\n * unrelated invalidation. The builds are read two ways, and both are signed:\n * - the COMPANION TREE of every application package an introspection derivation can import —\n * the specifications package the eligibility loader evaluates, and the shared library and\n * services the generation-step landing checks reach through introspection (the i18n step's\n * planner reads the resource registry and the frontend's labels that way; #1310, seventh\n * review G1). Signed with `signEvaluatedCompanionTree` over the same APPLICATION population\n * the introspection observer walks (`resolveIntrospectedApplicationPackageRoots`), so a\n * package added to the application is covered without an edit here;\n * - the schema-plan inputs (`backend-api/dist`, the resolved engine dists and the accepted plan — `signSchemaPlanInputs`).\n * Reusing the inner signatures, rather than naming the trees again here, is what keeps them from\n * drifting apart.\n * 3. **The compiled playbook catalog**, read from disk on every eligibility derivation, so a\n * framework-knowledge rebuild moves the board with no application file changing.\n * 4. **git `HEAD` and its reflog** — see {@link resolveGitSignatureFiles}.\n *\n * **Deliberately NOT signed: the injected `@wildo-ai/*` framework packages** the observer also\n * walks, which the introspection children behind the i18n landing import too (#1310, eighth review\n * L2). They cannot move while this process runs without it restarting: an engine package that\n * recompiles respawns the companion, and a restart empties every cache here — the same reason\n * `resolveSchemaPlanSyncState` gives for the planner contract. Published packages never change at\n * all. Signing them would add the whole engine to every walk to detect an event that already\n * resets this state.\n *\n * `null` only when the working tree itself cannot be read; an inner part that cannot be read (no\n * build yet) is recorded as such, so its later appearance is a movement.\n *\n * Measured on `examples/wonder-todos`, 2026-09-24, over the WHOLE composite (~10,400 files: ~3,740 in\n * parts 1 and 3, ~3,840 in `backend-api/dist` + `infrastructure`, ~2,160 in the seven application\n * packages' companion trees): ~60-65 ms warm, ~110 ms on a first walk, and a few hundred ms cold on\n * a loaded machine.\n */\n public readInputSignature(options: { readonly reuse: boolean } = { reuse: false }): string | null {\n const now = Date.now();\n if (options.reuse && this.lastSignatureReading && now - this.lastSignatureReading.atMs < INPUT_SIGNATURE_REUSE_MS) {\n return this.lastSignatureReading.value;\n }\n const value = this.computeInputSignature();\n this.lastSignatureReading = { value, atMs: now };\n return value;\n }\n\n private computeInputSignature(): string | null {\n const saasRoot = this.companionContext.saasRoot;\n if (!saasRoot) return null;\n const workingTree = signDerivedInputs([saasRoot, ...this.resolveCatalogSignatureRoots()], this.resolveGitSignatureFiles(saasRoot));\n if (workingTree === null) return null;\n const packageBuilds = resolveIntrospectedApplicationPackageRoots(this.companionContext)\n .map((packageRoot) => `package:${packageRoot}=${signEvaluatedCompanionTree(packageRoot) ?? 'unreadable'}`);\n const schemaPlanBuild = signSchemaPlanInputs(saasRoot);\n return [workingTree, ...packageBuilds, `schema-plan:${schemaPlanBuild ?? 'unreadable'}`].join('\\n');\n }\n\n private resolveCatalogSignatureRoots(): readonly string[] {\n try {\n return [resolveFrameworkKnowledgeAssetPath('playbooks'), resolveFrameworkKnowledgeAssetPath('registries')];\n } catch {\n // No compiled knowledge payload: the eligibility read will refuse on its own, far more legibly.\n return [];\n }\n }\n\n /**\n * `HEAD` and `logs/HEAD` in the git directory that holds this application — found by walking up,\n * because an application inside a monorepo has its `.git` at the repository root, and read through\n * a `gitdir:` pointer when `.git` is a file (a worktree).\n *\n * The reflog is the file that moves on EVERY commit, checkout, reset and merge, which is precisely\n * the event class the TTL existed to bound. The index is left out on purpose — see the class notes.\n *\n * What that costs, stated rather than left to be found (#1310, sixth review F3): an INDEX-ONLY change\n * — `git rm --cached`, `git restore --staged` — can flip whether a path counts as committed without\n * touching the working tree or the reflog, so nothing here sees it. It surfaces at the next event\n * that moves either, at any invalidation, or through the Refresh route; signing the index instead\n * would make every derivation (which runs `git status`) invalidate itself.\n */\n private resolveGitSignatureFiles(saasRoot: string): readonly string[] {\n if (this.gitSignatureFiles !== undefined) return this.gitSignatureFiles;\n let gitDirectory: string | null = null;\n for (let directory = resolve(saasRoot); ; directory = dirname(directory)) {\n const candidate = join(directory, '.git');\n if (existsSync(candidate)) {\n try {\n gitDirectory = statSync(candidate).isDirectory()\n ? candidate\n : resolve(directory, readFileSync(candidate, 'utf8').replace(/^gitdir:\\s*/, '').trim());\n } catch {\n gitDirectory = null;\n }\n break;\n }\n if (dirname(directory) === directory) break;\n }\n this.gitSignatureFiles = gitDirectory ? [join(gitDirectory, 'HEAD'), join(gitDirectory, 'logs', 'HEAD')] : [];\n return this.gitSignatureFiles;\n }\n\n public supports(behaviorId: string): boolean {\n return WORKBENCH_CREATION_PLANE_BEHAVIOR_IDS.includes(behaviorId);\n }\n\n /**\n * Drop EVERY derived-board cache. Called after every creation-plane mutation — the board must not\n * answer \"as of before your dispatch\" to the person who just dispatched.\n *\n * Named `invalidateEligibility` until 2026-09-17, when the build-plan board gained the same cache.\n * One mutation changes both boards — a dispatch moves what is eligible AND what has landed — so\n * one invalidation covers them, and a name saying \"eligibility\" would have been the narrower of\n * the two things it does.\n */\n public invalidateDerivedBoards(): void {\n this.markCreationChanged();\n for (const slot of this.boardCaches.values()) {\n slot.epoch += 1;\n slot.cache = null;\n /*\n * Also drop the in-flight handle: a reader arriving AFTER the invalidation must start a fresh\n * derivation rather than join one computing the pre-mutation board. The orphaned computation\n * still completes for its own callers, and the epoch guard keeps it out of the cache.\n */\n slot.inFlight = null;\n }\n this.scheduleRepublish();\n }\n\n /**\n * Re-derive the served boards once an invalidation burst settles, and publish the ones that moved.\n *\n * A no-op with no listener or no reader: publication exists for someone watching, and a board no\n * reader was served has nothing to diff against — the same reason the introspection notifier stays\n * silent on a first compilation.\n */\n private scheduleRepublish(): void {\n if (this.boardChangeSubscribers.size === 0 || this.lastServedRows.size === 0) return;\n const now = Date.now();\n this.republishRequestedSinceMs ??= now;\n if (this.republishTimer) clearTimeout(this.republishTimer);\n // The settle window, but never past the bound measured from the FIRST request of this burst.\n const delay = Math.min(REPUBLISH_SETTLE_MS, Math.max(0, this.republishRequestedSinceMs + REPUBLISH_MAX_WAIT_MS - now));\n this.republishTimer = setTimeout(() => {\n this.republishTimer = undefined;\n this.republishRequestedSinceMs = undefined;\n // A pass never throws out of its own body (see below); this catch is for a defect in that claim.\n this.republishChangedBoards().catch((error: unknown) => {\n this.logger.warn('Creation-plane publication pass failed', { error: describeCaughtError(error) });\n });\n }, delay);\n this.republishTimer.unref?.();\n }\n\n /**\n * The subscribers a publication for this behavior would reach. A predicate that throws counts as\n * NOT watching — it can only cost a publication, never a pass.\n */\n private watchersOf(behavior: string): readonly { readonly listener: CreationPlaneBoardChangeListener }[] {\n return [...this.boardChangeSubscribers].filter((subscriber) => {\n try {\n return subscriber.isWatched?.(behavior) ?? true;\n } catch (error) {\n this.logger.warn('Creation-plane watched predicate failed; treating the board as unwatched', {\n behavior,\n error: describeCaughtError(error),\n });\n return false;\n }\n });\n }\n\n /**\n * Hand a board that moved to its watchers — the ONE place a change is announced, whether a pass or a\n * read noticed it. Each listener is isolated from the others, and a comparison that throws is\n * reported rather than let escape.\n */\n private announceIfMoved(\n behavior: string,\n before: readonly Record<string, unknown>[],\n after: readonly Record<string, unknown>[],\n watchers: readonly { readonly listener: CreationPlaneBoardChangeListener }[],\n ): void {\n if (watchers.length === 0) return;\n try {\n if (areBoardRowsEqual(before, after)) return;\n } catch (error) {\n this.logger.warn('Creation-plane board could not be compared for publication', { behavior, error: describeCaughtError(error) });\n return;\n }\n this.markCreationChanged();\n const change: CreationPlaneBoardChange = { behavior, before, after, provenanceFields: CREATION_PLANE_PROVENANCE_ROW_FIELDS };\n for (const { listener } of watchers) {\n try {\n listener(change);\n } catch (error) {\n this.logger.warn('Creation-plane board-change listener failed', { behavior, error: describeCaughtError(error) });\n }\n }\n }\n\n /**\n * One publication pass over every board a reader was served. Serialized: an invalidation arriving\n * mid-pass asks for ONE more pass rather than a concurrent one, because two passes diffing against\n * the same served rows would publish the same change twice.\n *\n * A board whose re-derivation throws is skipped and keeps its served rows, so the next pass diffs\n * against what the reader actually holds. Its readers will meet the same failure on their next\n * read, where the resource lane reports it properly.\n */\n public republishChangedBoards(): Promise<void> {\n if (this.republishing) {\n this.republishRequested = true;\n return this.republishing;\n }\n this.republishing = (async () => {\n /*\n * Yield FIRST. A pass that finds nothing to re-derive (every board unwatched) never awaits, so\n * without this the whole body — `finally` included — would run synchronously inside the\n * assignment's right-hand side: `finally` would clear `republishing`, and the assignment would\n * then set it to the already-settled promise, where it would stay. Every later pass would take\n * the early return above and publish nothing, for the life of the process.\n */\n await Promise.resolve();\n try {\n do {\n this.republishRequested = false;\n for (const behavior of [...this.lastServedRows.keys()]) {\n const watchers = this.watchersOf(behavior);\n if (watchers.length === 0) {\n /*\n * Nobody would receive it, so it is NOT re-derived — that is what bounds the background\n * cost; without it, one workbench read would make every later invalidation re-derive\n * every board ever served, for the life of the process.\n *\n * Its served baseline is KEPT, deliberately. A browser joins the collection room AFTER\n * the companion served the rows, sometimes much later (a page load, a socket still\n * connecting), and once joined it serves its polls from its read cache and never asks\n * again. Forgetting the baseline in that window would make every later change to the\n * board unpublishable until a reload. The map is bounded by the creation-plane behaviors.\n */\n continue;\n }\n let after: readonly Record<string, unknown>[];\n const sequence = ++this.derivationSequence;\n try {\n after = await this.deriveRowsFor(behavior);\n } catch (error) {\n this.logger.warn('Creation-plane board could not be re-derived for publication', {\n behavior,\n error: describeCaughtError(error),\n });\n continue;\n }\n this.adoptBaseline(behavior, after, sequence, watchers);\n }\n } while (this.republishRequested);\n } finally {\n this.republishing = undefined;\n }\n })();\n return this.republishing;\n }\n\n /**\n * ONE row, addressed by its identity — for a behavior whose LIST is display-bounded.\n *\n * A READ is otherwise served by filtering the derived LIST, which is right while the list is the\n * whole population and WRONG the moment it is a window onto it. Trace sessions are that case: the\n * listing keeps the newest {@link TRACE_SESSION_LIMIT}, the write-record JOIN deliberately resolves\n * against the UNBOUNDED id listing (so an older record keeps its trace link), and the link it\n * produced then opened onto a 404 — measured 2026-09-21 on a four-day-old run, whose detail pane\n * said \"failed to load\" about a trace that was on disk. A join that is unbounded and a read that is\n * bounded disagree about which rows exist.\n *\n * Three answers, and the difference matters: a ROW; `null` — this behavior reads per-row and the\n * identity names nothing; `undefined` — this behavior has no per-row path, so filter the list.\n */\n public async deriveRowByIdentity(behaviorId: string, identity: string): Promise<Record<string, unknown> | null | undefined> {\n if ((behaviorId as WorkbenchCreationPlaneBehavior) !== WorkbenchCreationPlaneBehavior.TRACE_SESSIONS) return undefined;\n /* Identities are SANITIZED business keys, so the session is found by sanitizing the candidates, never by un-sanitizing the request. */\n const sessionId = (await this.executionTraceReadService.listSessionIds())\n .find((candidate) => sanitizeCreationPlaneIdentity(candidate) === identity);\n if (sessionId === undefined) return null;\n const session = await this.executionTraceReadService.summarizeSession(sessionId);\n if (session === null) return null;\n return this.stampIdentities(\n [this.toTraceSessionRow(session)],\n (row) => String(row.sessionId),\n WorkbenchCreationPlaneBehavior.TRACE_SESSIONS,\n )[0] ?? null;\n }\n\n /**\n * A board's rows, as served to a reader — and REMEMBERED as served, because that is what a later\n * publication must diff against: the reader holds these rows, not whatever the cache held last.\n */\n public async deriveRows(behaviorId: string): Promise<readonly Record<string, unknown>[]> {\n const sequence = ++this.derivationSequence;\n const rows = await this.deriveRowsFor(behaviorId);\n if (!this.lastServedRows.has(behaviorId)) {\n this.lastServedRows.set(behaviorId, rows);\n this.lastServedSequence.set(behaviorId, sequence);\n return rows;\n }\n /*\n * A PASS-ONLY board is published by publication passes and nowhere else — see\n * {@link CREATION_PLANE_PASS_ONLY_BEHAVIORS}. Its read neither announces nor moves the baseline,\n * so the baseline stays what was last PUBLISHED and the next publication pass diffs against exactly that.\n */\n if (CREATION_PLANE_PASS_ONLY_BEHAVIORS.has(behaviorId)) return rows;\n this.adoptBaseline(behaviorId, rows, sequence, this.watchersOf(behaviorId));\n return rows;\n }\n\n /**\n * Make a finished derivation the board's baseline, announcing it if it moved — unless a derivation\n * that STARTED later already set the baseline, in which case this one is older news and is dropped.\n *\n * The comparison is always against the baseline as it stands NOW, never one captured before the\n * derivation, so a change a concurrent read already announced is not announced twice.\n */\n private adoptBaseline(\n behaviorId: string,\n rows: readonly Record<string, unknown>[],\n sequence: number,\n watchers: readonly { readonly listener: CreationPlaneBoardChangeListener }[],\n ): void {\n if (sequence < (this.lastServedSequence.get(behaviorId) ?? 0)) return;\n const previous = this.lastServedRows.get(behaviorId);\n this.lastServedRows.set(behaviorId, rows);\n this.lastServedSequence.set(behaviorId, sequence);\n if (previous === undefined) return;\n /*\n * Announced from BOTH paths. A PASS announces what it re-derived. A READ that finds the board\n * MOVED announces it too, before replacing the baseline (#1310, third review N1). The baseline is ONE per board, while the browser caches each QUERY separately and\n * never re-asks while its room is confirmed. So when a board moves with no invalidating event and\n * some other query — a detail pane's READ, another list variant, a second tab — is served first,\n * the next pass would compare equal and publish nothing, and every other cached query of that\n * board would stay stale. Publishing here clears them all (the client drops a resource type's\n * entries on a publication), and the reader's own re-read then compares equal and stops.\n */\n this.announceIfMoved(behaviorId, previous, rows, watchers);\n }\n\n private async deriveRowsFor(behaviorId: string): Promise<readonly Record<string, unknown>[]> {\n switch (behaviorId as WorkbenchCreationPlaneBehavior) {\n case WorkbenchCreationPlaneBehavior.PLAYBOOK_ELIGIBILITY:\n return this.derivePlaybookEligibilityRows();\n case WorkbenchCreationPlaneBehavior.BUILD_PLAN_TASKS:\n return this.deriveBuildPlanTaskRows();\n case WorkbenchCreationPlaneBehavior.RUN_WRITE_RECORDS:\n return this.deriveRunWriteRecordRows();\n case WorkbenchCreationPlaneBehavior.TRACE_SESSIONS:\n return this.deriveTraceSessionRows();\n case WorkbenchCreationPlaneBehavior.GOVERNANCE_QUESTIONS:\n return this.deriveGovernanceQuestionRows();\n case WorkbenchCreationPlaneBehavior.GOVERNANCE_DOCUMENTS:\n return this.deriveGovernanceDocumentRows();\n case WorkbenchCreationPlaneBehavior.BUILD_DISPATCH_PLAN:\n return this.deriveBuildDispatchPlanRows();\n case WorkbenchCreationPlaneBehavior.BUILD_DISPATCHES:\n return this.deriveBuildDispatchRows();\n case WorkbenchCreationPlaneBehavior.BUILD_TASK_RECORDS:\n return this.deriveBuildTaskRecordRows();\n case WorkbenchCreationPlaneBehavior.WAITING_PLAYBOOK_RUNS:\n return this.deriveWaitingPlaybookRunRows();\n case WorkbenchCreationPlaneBehavior.PLAYBOOK_RUNS:\n return this.derivePlaybookRunRows();\n case WorkbenchCreationPlaneBehavior.CODING_LANE_STATUS:\n return this.deriveCodingLaneStatusRows();\n case WorkbenchCreationPlaneBehavior.PARKED_CODING_QUESTIONS:\n return this.deriveParkedCodingQuestionRows();\n case WorkbenchCreationPlaneBehavior.DOSSIER_ENTRIES:\n return this.deriveDossierEntryRows();\n case WorkbenchCreationPlaneBehavior.HOME_LINES:\n return this.deriveHomeLineRows();\n case WorkbenchCreationPlaneBehavior.CREATION_OUTCOMES:\n return this.deriveCreationOutcomeRows();\n case WorkbenchCreationPlaneBehavior.APPLICATION_SECRETS:\n return this.deriveApplicationSecretRows();\n default:\n throw new Error(\n `'${behaviorId}' is not a creation-plane behavior. The supported set is: `\n + `${WORKBENCH_CREATION_PLANE_BEHAVIOR_IDS.join(', ')}.`,\n );\n }\n }\n\n /**\n * The eligibility board for the REST door, after a FRESH input-signature check.\n *\n * The resource lane may serve a board up to one sweep (15 s) behind an out-of-process edit, because\n * the push closes that gap for anyone watching. `GET /playbooks` has no push — its callers\n * (`wildo context journey`, scripts) typically ask right after an agent edited files — and it used to\n * be exact on every call. One signature walk (~60-110 ms) against a derivation of 22-134 s buys that\n * back: a moved input drops the cached boards AND any derivation still in flight from before the\n * move (see {@link reconcileInputSignature}), so this read computes against the tree as it is now.\n *\n * Not side-effect-free: finding the inputs moved drops every board, which schedules the usual\n * publication pass. That changes what readers are told, never what is true.\n */\n public readFreshPlaybookEligibilityBoard(): Promise<{\n readonly playbooks: Awaited<ReturnType<PlaybookRunCompanionService['listPlaybookEligibility']>>['playbooks'];\n readonly applicationLine: Awaited<ReturnType<PlaybookRunCompanionService['listPlaybookEligibility']>>['applicationLine'];\n readonly applicationLineOrphans: Awaited<ReturnType<PlaybookRunCompanionService['listPlaybookEligibility']>>['applicationLineOrphans'];\n readonly activeSet: Awaited<ReturnType<PlaybookRunCompanionService['listPlaybookEligibility']>>['activeSet'];\n readonly datedByWaitingInterviews: Awaited<ReturnType<PlaybookRunCompanionService['listPlaybookEligibility']>>['datedByWaitingInterviews'];\n readonly computedAt: Date;\n }> {\n this.reconcileInputSignature();\n return this.readPlaybookEligibilityBoard();\n }\n\n /**\n * The eligibility board as the playbook service answers it — CACHED, and shared by the board's rows\n * and by `GET /playbooks`, so the REST door stops paying its own derivation (#1310 item 5).\n *\n * `computedAt` is the instant the BOARD was derived, carried with it so the rows stamp that rather\n * than the moment they happened to be mapped.\n */\n public readPlaybookEligibilityBoard(): Promise<{\n readonly playbooks: Awaited<ReturnType<PlaybookRunCompanionService['listPlaybookEligibility']>>['playbooks'];\n readonly applicationLine: Awaited<ReturnType<PlaybookRunCompanionService['listPlaybookEligibility']>>['applicationLine'];\n readonly applicationLineOrphans: Awaited<ReturnType<PlaybookRunCompanionService['listPlaybookEligibility']>>['applicationLineOrphans'];\n readonly activeSet: Awaited<ReturnType<PlaybookRunCompanionService['listPlaybookEligibility']>>['activeSet'];\n readonly datedByWaitingInterviews: Awaited<ReturnType<PlaybookRunCompanionService['listPlaybookEligibility']>>['datedByWaitingInterviews'];\n readonly computedAt: Date;\n }> {\n return this.deriveCached(PLAYBOOK_ELIGIBILITY_BOARD_CACHE_KEY, async () => {\n const board = await this.playbookRunService.listPlaybookEligibility();\n return {\n playbooks: board.playbooks,\n applicationLine: board.applicationLine,\n applicationLineOrphans: board.applicationLineOrphans,\n activeSet: board.activeSet,\n // Absent from a board a test double answers: then nothing is held for an interview (#3361).\n datedByWaitingInterviews: board.datedByWaitingInterviews ?? [],\n computedAt: new Date(),\n };\n });\n }\n\n private derivePlaybookEligibilityRows(): Promise<readonly Record<string, unknown>[]> {\n return this.deriveCached(WorkbenchCreationPlaneBehavior.PLAYBOOK_ELIGIBILITY, async () => {\n const board = await this.readPlaybookEligibilityBoard();\n const computedAt = board.computedAt;\n // Whether the application's line runs each playbook, and why not (#1607); keyed once, read per row.\n const activationByRef = new Map((board.activeSet?.entries ?? []).map((entry) => [entry.playbookRef, entry]));\n const rows = this.stampIdentities(\n board.playbooks.map((playbook) => ({\n playbookRef: playbook.playbookRef,\n playbookVersion: playbook.playbookVersion,\n /*\n * The PLAYBOOK's own taxonomy label, which is what the field's name implies and what the\n * workbench renders per row. It carried `board.phase` — the APPLICATION-level derived phase —\n * until 2026-09-04, so every row showed the same value and the row badge was describing\n * something other than the row. The derived application phase no longer exists; this is the\n * only phase there ever truthfully was.\n */\n phase: String(playbook.phase),\n intent: playbook.intent,\n eligible: playbook.eligible,\n unmet: playbook.unmet,\n blockedOnlyBySequencing: playbook.blockedOnlyBySequencing,\n requiresElicitation: playbook.requiresElicitation,\n unansweredQuestionRefs: playbook.unansweredQuestionRefs,\n wouldReplace: playbook.wouldReplace,\n outputOwners: playbook.outputOwners,\n unresolvedPlaybookRefs: playbook.unresolvedPlaybookRefs,\n unlandableFamilies: playbook.unlandableFamilies,\n staleOutputs: playbook.staleOutputs,\n /*\n * Its declared edges (#2530). A family is addressed by the specification-artifact row's id, which IS the raw\n * family; a playbook by its row id, which is the sanitized ref, as every other playbook reference here.\n */\n inputFamilyIds: playbook.inputFamilies,\n preconditionFamilyIds: playbook.preconditionFamilies,\n conditionFamilyIds: playbook.conditionFamilies,\n admittedPlaybookIds: playbook.admits.map(sanitizeWorkbenchCreationPlaneIdentity),\n // Absent from a board computed without a line scope; the row then says nothing rather than guess.\n ...(activationByRef.has(playbook.playbookRef)\n ? {\n activeInLine: activationByRef.get(playbook.playbookRef)!.status === PlaybookActivationStatus.ACTIVE,\n activationDetail: activationByRef.get(playbook.playbookRef)!.detail,\n /*\n * Its OPEN instances (#1609), key and purpose. Closed ones are on the board and in git; saying how\n * one ended would need the closure vocabulary's words, which this row's package does not import.\n */\n openInstances: activationByRef.get(playbook.playbookRef)!.instances\n .filter((activation) => activation.closure === undefined)\n .map((activation) => ({ instanceKey: activation.instanceKey, purpose: activation.purpose })),\n }\n : {}),\n computedAt,\n })),\n (row) => String(row.playbookRef),\n WorkbenchCreationPlaneBehavior.PLAYBOOK_ELIGIBILITY,\n );\n /*\n * An epoch that moved means something mutated mid-derivation: `deriveCached` serves the\n * computed rows to THIS caller (at worst one mutation old, same as any read that finished a\n * moment earlier) and does not cache them — the next read recomputes against the\n * post-mutation world.\n */\n return rows;\n });\n }\n\n /**\n * The build-plan board — CACHED since 2026-09-17, and it is the same cost as its sibling.\n *\n * Measured per authenticated LIST against the running companion: 13.8s, on every call, with no\n * warm benefit — while `workbench-playbooks` went 17.1s cold to 0.02s warm through the cache it\n * already had. Both pay `loadSpecificationsCompanionData` plus the build-plan read and its git\n * landing probes; only one of them was paying it once.\n *\n * The cost is what an operator meets: the board's embedded task list took ~32s to render its rows\n * in a browser, half a minute of skeletons on the pane a creation run is driven from.\n */\n private deriveBuildPlanTaskRows(): Promise<readonly Record<string, unknown>[]> {\n return this.deriveCached(WorkbenchCreationPlaneBehavior.BUILD_PLAN_TASKS, async () => {\n const tasks = await this.buildDispatchService.describeBuildPlanBoard().catch(holdBoardOnFailedModule([]));\n return this.stampIdentities(\n tasks.map((task) => ({ ...task })),\n (row) => String(row.taskRef),\n WorkbenchCreationPlaneBehavior.BUILD_PLAN_TASKS,\n );\n });\n }\n\n /**\n * Everything the build knows about each task (#2530): the companion's per-task record (`describeBuildTaskRecords`,\n * #1521), one row per task under the build-plan task row's own id, so a task's detail reads its record by the id it\n * already has. Its own resource, cached like the task list: reading the attempts, classifying a stuck task and probing\n * the tree is the cost this exists to keep off every row of that list.\n */\n private deriveBuildTaskRecordRows(): Promise<readonly Record<string, unknown>[]> {\n return this.deriveCached(WorkbenchCreationPlaneBehavior.BUILD_TASK_RECORDS, async () => {\n const records = await this.buildDispatchService.describeBuildTaskRecords().catch(holdBoardOnFailedModule(undefined));\n if (!records) return [];\n return this.stampIdentities(\n records.tasks.map((record) => projectBuildTaskRecordRow(record, records.attemptsTruncated)),\n (row) => String(row.taskRef),\n WorkbenchCreationPlaneBehavior.BUILD_TASK_RECORDS,\n );\n });\n }\n\n private async deriveRunWriteRecordRows(): Promise<readonly Record<string, unknown>[]> {\n const records = await this.runWriteRegister.list();\n /*\n * The trace JOIN: the register RECORDS the session id at run time (#1358 — a run id is the actor\n * execution's id and encodes no session, so the former `<sessionId>-<playbookRef>-<ts>` prefix\n * match is gone). Listed ONCE per derivation — a per-record listing would re-read the directory N\n * times for one answer. NULL when the record carries none or nothing listed matches: the register\n * legitimately outlives its trace directory, and a dangling reference would render as a broken link.\n *\n * Checked against the UNBOUNDED id listing, not the display-limited summaries: the join is a\n * correctness question and must not lose links for records older than the newest\n * TRACE_SESSION_LIMIT sessions (completion-review finding 11a). The bound stays on the\n * trace-sessions ROWS below, where it is a display decision.\n */\n const listedSessionIds = new Set(await this.executionTraceReadService.listSessionIds());\n return this.stampIdentities(\n records.map((record) => {\n // RECORDED on the register at run time (#1358), and only linked when the session still exists.\n const sessionId = record.traceSessionId && listedSessionIds.has(record.traceSessionId) ? record.traceSessionId : undefined;\n return {\n runId: record.runId,\n playbookRef: record.playbookRef,\n /*\n * The join keys, SANITIZED so values match the target rows' addressable ids — the same\n * identity rule every creation-plane row is addressed by.\n */\n workbenchPlaybookId: sanitizeWorkbenchCreationPlaneIdentity(record.playbookRef),\n workbenchTraceSessionId: sessionId ? sanitizeWorkbenchCreationPlaneIdentity(sessionId) : null,\n at: toInstant(record.at),\n /*\n * Pre-image BYTES stay behind: `previousContent` belongs to the revert mechanism, and a\n * LIST carrying every pre-image would ship the working tree's history on every render.\n */\n files: record.files.map((file) => ({ path: file.path, existedBefore: file.existedBefore })),\n fileCount: record.files.length,\n /* Stamped by the workbench's `accept` (#1454, Step 7); NULL until then. */\n acceptedCommitSha: record.acceptedCommitSha ?? null,\n /* A run that failed after writing (#3265): its record is listed as a failure, never as a landing. */\n landingFailed: record.landingFailed === true,\n // The doors only while nobody settled it: an accepted failed landing stays marked failed, with nothing to do.\n failedLandingRemedies: record.landingFailed === true && record.acceptedCommitSha === undefined ? describeFailedLandingRemedies(record.runId) : null,\n };\n }),\n (row) => String(row.runId),\n WorkbenchCreationPlaneBehavior.RUN_WRITE_RECORDS,\n );\n }\n\n /** One shape for a trace-session row, whether it came from the bounded listing or an addressed read. */\n private toTraceSessionRow(session: { sessionId: string; startedAt: string; label: string | null; eventCount: number; stepCount: number }): Record<string, unknown> {\n return {\n sessionId: session.sessionId,\n startedAt: toInstant(session.startedAt),\n label: session.label,\n eventCount: session.eventCount,\n stepCount: session.stepCount,\n };\n }\n\n private async deriveTraceSessionRows(): Promise<readonly Record<string, unknown>[]> {\n const sessions = await this.executionTraceReadService.listSessions(TRACE_SESSION_LIMIT);\n return this.stampIdentities(\n sessions.map((session) => this.toTraceSessionRow(session)),\n (row) => String(row.sessionId),\n WorkbenchCreationPlaneBehavior.TRACE_SESSIONS,\n );\n }\n\n /**\n * One row per GOVERNED DOCUMENT — the document half of the same composition the questions come\n * from, so the two can never describe different documents.\n *\n * `derivedFactRefs` lives here and not on the question rows because it is a fact about the\n * document. Carried per question it would be a value with no owner, and eight rows of one document\n * could disagree.\n */\n private async deriveGovernanceDocumentRows(): Promise<readonly Record<string, unknown>[]> {\n const [authored, drafted, creatorInputs] = await Promise.all([\n this.dossierService.readAuthoredDocumentFacts(),\n this.dossierService.listDraftedGovernedDocumentDefinitionRefs(),\n this.dossierService.readCreatorInputs(),\n ]);\n /* `derivedFactRefs` is a fact about the document the diff does not carry; it comes from the questionnaire itself. */\n const derivedByRef = new Map(composeGovernanceQuestionnaires(undefined).map((questionnaire) => [questionnaire.definitionRef, [...questionnaire.derivedFactRefs]]));\n const rows = deriveOpenGovernanceQuestions({ authored, ...(creatorInputs?.deferredDocumentFacts ? { deferredDocumentFacts: creatorInputs.deferredDocumentFacts } : {}) }).map((document) => ({\n definitionRef: document.definitionRef,\n /* A deferred question (#3437) is still asked, and no longer open: nothing waits on it. */\n askCount: document.open.length + document.answered.length + document.deferred.length,\n derivedFactRefs: derivedByRef.get(document.definitionRef) ?? [],\n openCount: document.open.length,\n drafted: drafted.has(document.definitionRef),\n }));\n return this.stampIdentities(\n rows,\n (row) => String(row.definitionRef),\n WorkbenchCreationPlaneBehavior.GOVERNANCE_DOCUMENTS,\n );\n }\n\n /**\n * The governance questionnaires, FLATTENED to one row per question.\n *\n * The composer answers per DOCUMENT — a definition and the prompts it asks. A creator answers one\n * QUESTION, and a queue lists one question, so the row is the question and its document travels on\n * it. Same flattening as the write register's files, for the same reason: a row is whatever a\n * reader selects.\n *\n * NOT cached, deliberately, where the eligibility board is. The board recomputes a working-tree\n * analysis and is expensive; this composes from already-loaded governed-document definitions, and a\n * cache would only add a second thing to invalidate when a definition changes.\n *\n * `derivedFactRefs` is dropped on purpose: it names the facts the GENERATOR establishes, which is\n * the complement of this collection rather than a member of it. A row here is a question somebody\n * must answer, and a derived fact is a question nobody is being asked.\n *\n * One row per question, with its STANDING (#1454, Step 6): answered in the authored facts, or\n * still needed. The answer a person reads is summarised from the declaration — its text, its chosen\n * options, or the \"does not apply\" reason — and its instant is the declaration's own.\n */\n private async deriveGovernanceQuestionRows(): Promise<readonly Record<string, unknown>[]> {\n const [authored, drafted, derived, creatorInputs] = await Promise.all([\n this.dossierService.readAuthoredDocumentFacts(),\n this.dossierService.listDraftedGovernedDocumentDefinitionRefs(),\n this.dossierService.readDerivedDocumentFacts(),\n this.dossierService.readCreatorInputs(),\n ]);\n /*\n * READ FROM THE PRODUCT (#1454, gap 4): the facts the application's own declarations establish,\n * listed beside the ones asked of a person so the creator sees the whole of what a document\n * rests on. Never needed, never asked; the summary is what the product answered, or nothing yet\n * when the step that reads it has not run.\n */\n const productRows = deriveProductGovernanceFacts({ derived }).flatMap((document) => document.facts.map(({ prompt, declaration }) => ({\n ...this.toGovernanceQuestionRow(document.definitionRef, prompt),\n standing: WorkbenchDossierEntryStanding.READ_FROM_PRODUCT,\n answerSummary: declaration === undefined\n ? null\n : declaration.resolutionKind === ApplicationAssuranceDocumentFactContributionResolutionKind.KNOWN\n ? summarizeDerivedFactValue(declaration.value)\n : declaration.reason,\n answeredAt: null,\n askedNow: false,\n })));\n const rows = deriveOpenGovernanceQuestions({ authored, ...(creatorInputs?.deferredDocumentFacts ? { deferredDocumentFacts: creatorInputs.deferredDocumentFacts } : {}) }).flatMap((document) => [\n ...document.answered.map(({ prompt, declaration }) => ({\n ...this.toGovernanceQuestionRow(document.definitionRef, prompt),\n standing: WorkbenchDossierEntryStanding.FROM_YOU,\n answerSummary: declaration.resolutionKind === 'KNOWN'\n ? (Array.isArray(declaration.value) ? declaration.value.map(String).join(', ') : String(declaration.value))\n : declaration.reason,\n answeredAt: toInstant(declaration.authority.decidedAt),\n askedNow: false,\n })),\n /* Deferred by the person (#3437): not decided yet, so nothing waits on it; the document keeps the clause owed. */\n ...document.deferred.map(({ prompt, deferral }) => ({\n ...this.toGovernanceQuestionRow(document.definitionRef, prompt),\n standing: WorkbenchDossierEntryStanding.DEFERRED,\n answerSummary: deferral.reason,\n answeredAt: toInstant(deferral.answeredAt),\n askedNow: false,\n })),\n ...document.open.map((prompt) => ({\n ...this.toGovernanceQuestionRow(document.definitionRef, prompt),\n standing: WorkbenchDossierEntryStanding.STILL_NEEDED,\n answerSummary: null,\n answeredAt: null,\n /* A draft is waiting on it: the narrow \"asked of you\" the dossier page and Home both use. */\n askedNow: drafted.has(document.definitionRef),\n })),\n ]).concat(productRows);\n return this.stampIdentities(\n rows,\n /*\n * BOTH halves. A `questionRef` is unique within its questionnaire and repeats across documents\n * — several governed documents ask for a retention period — so the document alone or the\n * question alone would collide, and `stampIdentities` would drop the second as a duplicate.\n */\n (row) => `${String(row.definitionRef)}--${String(row.questionRef)}`,\n WorkbenchCreationPlaneBehavior.GOVERNANCE_QUESTIONS,\n );\n }\n\n private toGovernanceQuestionRow(\n definitionRef: string,\n ask: ReturnType<typeof deriveOpenGovernanceQuestions>[number]['open'][number],\n ): Record<string, unknown> {\n return {\n definitionRef,\n questionRef: ask.questionRef,\n factRef: ask.factRef,\n creatorPrompt: ask.creatorPrompt,\n decisionPurpose: ask.decisionPurpose,\n answerKind: String(ask.answerKind),\n factAuthorityKind: String(ask.factAuthorityKind),\n allowsNotApplicable: ask.allowsNotApplicable,\n sensitivityRef: String(ask.sensitivityRef),\n semanticOptions: ask.semanticOptions.map((option) => ({\n optionRef: option.optionRef,\n creatorMeaning: option.creatorMeaning,\n })),\n };\n }\n\n /**\n * CACHED like the build-plan board (#1310, third review N2). It runs the full next-task selection —\n * landing resolution with batched git subprocesses, measured ~1 s warm on Wonder Todos — and Home's\n * lines derive it a second time, so uncached it cost ~2 s per 15 s sweep for as long as Home was\n * open. Its inputs, enumerated from `prepareNextBuildTask`: the build plan and the landing probes\n * (files and git — the input signature), the schema-plan sync state (its own signature, composed\n * in), and actor-plane run state — which runs are IN FLIGHT, which completed or failed runs still\n * COUNT against a task (loop guard, attempt budget, re-arms), and which are PARKED. Every change to\n * that actor-plane state is announced through `announceRunStateChanged`: a coding execution opened\n * at selection, a run admitted or resumed, a chain settling, a dispatch refused before admission\n * (its PENDING row settles ABORTED, or FAILED for a refused contract — #1581), a re-arm, and a generation step opening and ending — plus the\n * dispatch operations' own invalidation.\n */\n private deriveBuildDispatchPlanRows(): Promise<readonly Record<string, unknown>[]> {\n return this.deriveCached(WorkbenchCreationPlaneBehavior.BUILD_DISPATCH_PLAN, () => this.computeBuildDispatchPlanRows());\n }\n\n /**\n * The next build task, as ONE row — or the exhausted plan, or the wholly-stuck queue, also as one row.\n *\n * Never zero rows once a plan EXISTS (an application with no plan yet answers none — see the body). \"There is no next task\" is a real answer with a shape (every task landed, and\n * here is how many), and rendering it as an empty list would make the end of the journey look like\n * a failed read — which is exactly what it DID look like until the companion stopped answering a\n * finished plan with a non-2xx.\n *\n * The row is identified by the task ref, and by a constant when there is none: the exhausted state\n * and the wholly-stuck state are each a singleton by definition.\n */\n private async computeBuildDispatchPlanRows(): Promise<readonly Record<string, unknown>[]> {\n /*\n * The ONE case with zero rows, and it is not the case the paragraph above rules out. An EXHAUSTED plan is a\n * finished journey and must render as one; an ABSENT plan is a journey that has not reached decompose, where\n * there is no next task and no count to show. It used to fall through to `describeNextBuildTask`, which\n * refuses a missing plan, so every new application's board answered 500 on every poll. Absence is asked\n * through the shared test, which keeps an INVALID plan on the refusing path.\n */\n if (!(await this.buildDispatchService.hasAuthoredBuildPlan())) return [];\n /* A plan a failed module holds has no next task to show; the feed names the module (#3258). Every board over the plan holds the same way. */\n const description = await this.buildDispatchService.describeNextBuildTaskOrExhaustion().catch(holdBoardOnFailedModule(null));\n if (description === null) return [];\n const plan = description.plan;\n const exhausted = description.exhausted;\n const stuckQueue = description.stuckQueue;\n const specificationFault = exhausted?.specificationFault ?? stuckQueue?.specificationFault;\n /* Absent facts land as NULL / [] — the row schema's required-and-nullable shape, as elsewhere here. */\n const stuckTasks = description.stuckTasks.map((entry) => ({\n taskRef: entry.taskRef,\n reason: entry.reason,\n priorTaskId: entry.priorTaskId === '' ? null : entry.priorTaskId,\n question: entry.question ?? null,\n documentRef: entry.documentRef ?? null,\n }));\n const row = plan\n ? {\n taskRef: plan.taskRef,\n objective: plan.objective,\n targetKind: String(plan.targetKind),\n generationStepRef: plan.generationStepRef ?? null,\n allowedPathPrefixes: [...plan.allowedPathPrefixes],\n prohibitedPathPrefixes: [...plan.prohibitedPathPrefixes],\n requiredChecks: [...plan.requiredChecks],\n installedSkillRefs: [...plan.installedSkillRefs],\n readyTaskRefs: [...plan.readyTaskRefs],\n landedTaskRefs: [...plan.landedTaskRefs],\n unverifiableLandedTaskRefs: [...(plan.unverifiableLandedTaskRefs ?? [])],\n landedBeforeAnyRunTaskRefs: [...(description.landedBeforeAnyRunTaskRefs ?? [])],\n exhausted: false,\n failingSpecificationModules: [],\n specificationRepairOwed: false,\n stuckTasks,\n taskCount: plan.readyTaskRefs.length + plan.landedTaskRefs.length,\n landedCount: plan.landedTaskRefs.length,\n }\n : {\n taskRef: null,\n objective: null,\n targetKind: null,\n generationStepRef: null,\n allowedPathPrefixes: [],\n prohibitedPathPrefixes: [],\n requiredChecks: [],\n installedSkillRefs: [],\n /* A stuck queue still has progress to report; zeroes here would say a plan with tasks has none. */\n readyTaskRefs: [...(stuckQueue?.readyTaskRefs ?? [])],\n landedTaskRefs: [...(stuckQueue?.landedTaskRefs ?? [])],\n unverifiableLandedTaskRefs: [...(stuckQueue?.unverifiableLandedTaskRefs ?? exhausted?.specificationFault?.ranNotProvenTaskRefs ?? [])],\n // Beside a FINISHED plan too: \"every task has landed\" is the sentence this list exists to qualify (#2217).\n landedBeforeAnyRunTaskRefs: [...(description.landedBeforeAnyRunTaskRefs ?? [])],\n /*\n * No plan is one of TWO answers (#1451): every task landed, or every ready task is stuck. Only the\n * first is `exhausted`; the second is carried by `stuckTasks`, which is then non-empty. A plan with nothing left to\n * run while a specifications module fails is the second (#3258): its steps may only have run.\n */\n exhausted: exhausted !== undefined && exhausted.specificationFault === undefined,\n failingSpecificationModules: [...(specificationFault?.failingModules ?? [])],\n // Only a finished-looking plan is repaired by its next dispatch; a stuck one is not reached by it.\n specificationRepairOwed: exhausted?.specificationFault?.repairOwed === true,\n stuckTasks,\n taskCount: exhausted?.taskCount ?? stuckQueue?.taskCount ?? 0,\n // As progress counts, a step that only ran left out (#3258): the exhausted answer counts so already, the stuck queue does not.\n landedCount: exhausted?.landedCount\n ?? (stuckQueue === undefined ? 0 : stuckQueue.landedTaskRefs.length - (stuckQueue.specificationFault?.ranNotProvenTaskRefs.length ?? 0)),\n };\n return this.stampIdentities(\n [row],\n (candidate) => String(candidate.taskRef ?? (candidate.exhausted === true ? 'build-exhausted' : 'build-stuck')),\n WorkbenchCreationPlaneBehavior.BUILD_DISPATCH_PLAN,\n );\n }\n\n /**\n * The build lane's dispatch history, one row per ATTEMPT.\n *\n * `settledAt`, `codingTaskId` and `error` arrive as ABSENT keys and land as `null`. That is the\n * distinction the row schema makes deliberately: a dispatch still running HAS no end, and the\n * display's empty test treats `null` as empty and hides the row, where an absent key on a required\n * field would simply fail to parse.\n */\n private async deriveBuildDispatchRows(): Promise<readonly Record<string, unknown>[]> {\n // A projection of the dispatches' actor-plane executions since #1359 — nothing in memory.\n const dispatches = await this.buildDispatchService.readDetachedDispatches();\n /*\n * ACCEPTED is a join onto the coding-run write register, by task id (#1454, Step 7), read against the\n * run's own status — never the dispatch phase (#2523). A coding dispatch's phase stays ADMITTED\n * however its run ends, so the `phase === FINISHED` this keyed on held for no coding run: Accept was\n * never offered and an accepted run never said so.\n *\n * - TRUE: the record carries a commit, whatever the run's outcome (a shared-tree commit names failed\n * runs too, #1805) — or the run completed and git already holds every write it recorded, so nothing of it waits on\n * a commit (#3219). TRUE therefore means \"nothing to accept\", not \"accepted by this run's own door\"; a run whose\n * writes were discarded and restored to HEAD reads TRUE as well, which is the honest answer to \"is anything left\n * to commit\".\n * - FALSE: the run COMPLETED, recorded writes, and none is committed — the state `accept` addresses.\n * - NULL: nothing to accept now — no record (a generation step, a run that never reached capture, a run\n * older than the register), a run that wrote nothing, or a run still running, waiting on an answer,\n * or that did not complete.\n */\n const writeRecords = new Map((await this.codingRunWriteRegister.list()).map((record) => [record.taskId, record]));\n /*\n * Whether a completed run's writes still WAIT on a commit is read from git (#3219), never from the stamp alone. The\n * stamp (`acceptedCommitSha`) is a cache of what `git log` knows, written only by the doors that commit a run under\n * its name; a run whose files reached HEAD another way (a sibling's accept, a wave reconciliation, a person) kept\n * reading \"finished to commit\" on a clean tree for as long as the record lived (`app-creation-test-007`). Every\n * awaiting run is asked in ONE batch, deletions included (a deletion is settled when git no longer tracks the path\n * and the tree no longer holds it).\n */\n const awaitingStamp = dispatches.flatMap((dispatch) => {\n const record = dispatch.codingTaskId ? writeRecords.get(dispatch.codingTaskId) : undefined;\n return record !== undefined && record.files.length > 0 && record.acceptedCommitSha === undefined && dispatch.runStatus === FlowsActors_Status.COMPLETED\n ? [record] : [];\n });\n const settledPaths = awaitingStamp.length === 0\n ? new Set<string>()\n : await this.buildDispatchService.selectSettledRunWrites(awaitingStamp.flatMap((record) => record.files));\n const committedSinceRun = (record: (typeof awaitingStamp)[number]): boolean => record.files.every((file) => settledPaths.has(settledRunWriteKey(file)));\n /* The task's own sentence, joined by ref, so the run is named by what it delivers (#1454, gap 1). */\n const objectives = new Map((await this.deriveBuildPlanTaskRows()).map((task) => [String(task.taskRef), typeof task.objective === 'string' ? task.objective : null]));\n // Each row's identity is its execution's, kept beside the row rather than on it (the row is the shared contract's).\n const executionIdOf = new Map<Record<string, unknown>, string>();\n const rows = dispatches.map((dispatch) => {\n const record = dispatch.codingTaskId ? writeRecords.get(dispatch.codingTaskId) : undefined;\n const row: Record<string, unknown> = {\n taskRef: dispatch.taskRef,\n objective: objectives.get(dispatch.taskRef) ?? null,\n phase: dispatch.phase,\n startedAt: toInstant(dispatch.startedAt),\n settledAt: toInstant(dispatch.settledAt),\n codingTaskId: dispatch.codingTaskId ?? null,\n error: dispatch.error ?? null,\n failureAttribution: dispatch.failureAttribution ?? null,\n conversationId: dispatch.conversationId ?? null,\n runStatus: dispatch.runStatus,\n runFinishedAt: toInstant(dispatch.runFinishedAt),\n accepted: record === undefined || record.files.length === 0\n ? null\n : record.acceptedCommitSha !== undefined || (dispatch.runStatus === FlowsActors_Status.COMPLETED && committedSinceRun(record))\n ? true\n : dispatch.runStatus === FlowsActors_Status.COMPLETED ? false : null,\n };\n executionIdOf.set(row, dispatch.executionId);\n return row;\n });\n return this.stampIdentities(\n rows,\n /*\n * The dispatch's own EXECUTION (#2530). A task is re-dispatchable, and this was keyed on the task and the start\n * instant: two attempts started in the same second got one id, and READ answered an arbitrary one of them.\n */\n (row) => executionIdOf.get(row)!,\n WorkbenchCreationPlaneBehavior.BUILD_DISPATCHES,\n );\n }\n\n /**\n * The playbook runs suspended waiting on a person.\n *\n * `unreadable` is dropped: the read answers both the runs it could parse and the run DIRECTORIES it\n * could not, and the second is a diagnostic about the companion's own disk rather than a row\n * anybody selects. A resource that mixed them would list a thing with no question on it.\n */\n private async deriveWaitingPlaybookRunRows(): Promise<readonly Record<string, unknown>[]> {\n const suspended = await this.playbookRunService.readSuspendedRuns();\n /*\n * BOTH halves of what the reader found. A checkpoint that exists and fails to parse is a\n * suspended run nothing will resume, so it is a row carrying `readable: false` and its id —\n * the only thing knowable about it — rather than a count beside the rows that no row template\n * could reach.\n */\n const unreadable = suspended.unreadable.map((runId) => ({\n runId,\n readable: false,\n playbookRef: null,\n family: null,\n suspendedAt: null,\n round: null,\n dryRun: null,\n requests: [],\n routedToUserId: null,\n }));\n const rows = suspended.suspended.map((run) => ({\n runId: run.runId,\n readable: true,\n playbookRef: run.playbookRef,\n family: run.family,\n suspendedAt: toInstant(run.suspendedAt),\n round: run.round,\n dryRun: run.dryRun,\n requests: run.requests.map((request) => ({\n ref: request.ref,\n question: request.question,\n why: request.why,\n kind: String(request.kind),\n /* Normalised to an array: the wire omits it for a free-text question, and the row's own\n * `hideWhenEmpty` reads an EMPTY ARRAY, never an absent key. */\n options: request.options ?? [],\n })),\n routedToUserId: run.routedToUserId ?? null,\n }));\n return this.stampIdentities(\n [...rows, ...unreadable],\n (row) => String(row.runId),\n WorkbenchCreationPlaneBehavior.WAITING_PLAYBOOK_RUNS,\n );\n }\n\n /**\n * Every playbook run this process knows about, FLATTENED into one row set with its state.\n *\n * The service answers four collections; a row set is what a resource is, and the four are one thing\n * in four states. Nothing is dropped: every entry of every collection becomes a row, and the fields\n * a given state cannot supply are NULL rather than absent, so a layout can show exactly what is\n * known about each one.\n *\n * `awaitingCreatorInput` is flattened onto the row as `awaitingFamily` / `awaitingRound` rather than\n * kept as a nested object. It is the half of a COMPLETED run that decides whether the operator has\n * anything to do — `ok` is TRUE for a run that suspended to ask — so it belongs beside the verdict\n * it qualifies rather than one level down.\n */\n private async derivePlaybookRunRows(): Promise<readonly Record<string, unknown>[]> {\n const inFlight = await this.playbookRunService.readRunsInFlight();\n const rows: Record<string, unknown>[] = [];\n\n const base = {\n runId: null, instanceKey: null, traceSessionId: null, conversationId: null, startedAt: null, finishedAt: null, ok: null, error: null,\n completedIterations: null, checkpointedAt: null, awaitingFamily: null, awaitingRound: null,\n judgeOverall: null, judgeCriteria: null, judgeSkipped: null, choreographyRounds: null,\n };\n\n /* The composites holding a single-flight subject — one per instance since #1610, so several may run at once. */\n for (const running of inFlight.running) {\n rows.push({\n ...base,\n runId: running.runId,\n instanceKey: running.instanceKey ?? null,\n playbookRef: running.playbookRef,\n state: Workbench_PlaybookRunState.RUNNING,\n startedAt: toInstant(running.startedAt),\n });\n }\n for (const run of inFlight.runningDetached) {\n rows.push({\n ...base,\n runId: run.runId,\n instanceKey: run.instanceKey ?? null,\n traceSessionId: run.traceSessionId ?? null,\n conversationId: run.conversationId ?? null,\n playbookRef: run.playbookRef,\n state: Workbench_PlaybookRunState.RUNNING_DETACHED,\n startedAt: toInstant(run.startedAt),\n });\n }\n for (const entry of inFlight.interrupted) {\n rows.push({\n ...base,\n instanceKey: entry.instanceKey ?? null,\n playbookRef: entry.playbookRef,\n state: Workbench_PlaybookRunState.INTERRUPTED,\n completedIterations: entry.completedIterations ?? null,\n checkpointedAt: toInstant(entry.checkpointedAt),\n });\n }\n /*\n * A run the ENVIRONMENT took is INTERRUPTED, never refused (#3235): a lost network or a wake that aborted a model\n * call judged nothing about the work. It is shown ONCE, by whichever row is the interruption's: while its instance\n * holds a resumable checkpoint, the row above (a thrown composite keeps one); once a later run of the instance has\n * started (it resumed, adopting that checkpoint), nothing, because the interruption is over; otherwise this run,\n * dated when it ENDED. Showing it after the adoption would hand a follower a new line one second after the resume,\n * which is the symptom #3235 (c) reports (review F3).\n */\n const superseded = new Set([\n ...inFlight.interrupted.map((entry) => playbookInstanceId(entry.playbookRef, entry.instanceKey)),\n ...[...inFlight.running, ...inFlight.runningDetached].map((entry) => playbookInstanceId(entry.playbookRef, entry.instanceKey)),\n ]);\n for (const run of inFlight.lastCompleted) {\n if (run.interruptedByEnvironment === true) {\n if (superseded.has(playbookInstanceId(run.playbookRef, run.instanceKey))) continue;\n rows.push({\n ...base,\n runId: run.runId,\n instanceKey: run.instanceKey ?? null,\n traceSessionId: run.traceSessionId ?? null,\n conversationId: run.conversationId ?? null,\n playbookRef: run.playbookRef,\n state: Workbench_PlaybookRunState.INTERRUPTED,\n startedAt: toInstant(run.startedAt),\n finishedAt: toInstant(run.finishedAt),\n checkpointedAt: toInstant(run.finishedAt),\n ok: false,\n error: run.error ?? null,\n });\n continue;\n }\n rows.push({\n ...base,\n runId: run.runId,\n instanceKey: run.instanceKey ?? null,\n traceSessionId: run.traceSessionId ?? null,\n conversationId: run.conversationId ?? null,\n playbookRef: run.playbookRef,\n /*\n * A run that stopped to ask is settled in the RECORD's sense (it did not throw) and not in the creator's:\n * nothing landed and a person owes an answer. Its own state, so no reader has to un-say COMPLETED.\n */\n state: run.awaitingCreatorInput ? Workbench_PlaybookRunState.AWAITING_ANSWER : Workbench_PlaybookRunState.COMPLETED,\n startedAt: toInstant(run.startedAt),\n finishedAt: run.awaitingCreatorInput ? null : toInstant(run.finishedAt),\n ok: run.ok,\n error: run.error ?? null,\n awaitingFamily: run.awaitingCreatorInput?.family ?? null,\n awaitingRound: run.awaitingCreatorInput?.round ?? null,\n // ONE reader for a live envelope and for the summary a row carries after a restart (#1362).\n ...readPlaybookRunJudgeVerdict(run.result),\n // A composite's rounds and the children that ran in them, read the same way (#2530).\n choreographyRounds: (() => { const choreography = readPlaybookRunChoreography(run.result); return choreography ? playbookRunRoundsOf(choreography) : null; })(),\n });\n }\n\n /*\n * The identity is STATE + playbook INSTANCE + run id when there is one. A playbook legitimately\n * appears once per state (running detached now, last completed from an earlier submission), so the\n * state stays in the key. The run id joined it with #1609: two ordinary runs of one playbook overlap\n * (they hold no single-flight subject), and keyed on state + ref they became two rows under ONE id,\n * so READ answered an arbitrary one of them. An INTERRUPTED entry carries no run id; it is one per\n * instance, which the instance id already separates.\n */\n return this.stampIdentities(\n rows,\n (row) => [\n String(row.state),\n playbookInstanceId(String(row.playbookRef), row.instanceKey === null ? undefined : String(row.instanceKey)),\n ...(row.runId === null ? [] : [String(row.runId)]),\n ].join('--'),\n WorkbenchCreationPlaneBehavior.PLAYBOOK_RUNS,\n );\n }\n\n /**\n * The coding lane's posture — exactly one row, always.\n *\n * ONE row and never zero: \"the lane has no status\" is not a state the lane can be in, and an empty\n * list would render as \"nothing here\" on a pane whose whole job is to say whether an agent is\n * registered. The identity is a constant for the same reason — there is one coding lane.\n *\n * The PARKED QUESTIONS the status payload also carries are deliberately not here; they are their\n * own resource, because a queue of work waiting on a person is a different thing from a statement\n * about the lane.\n */\n private async deriveCodingLaneStatusRows(): Promise<readonly Record<string, unknown>[]> {\n const status = await this.codingAgentDispatchService.getStatus();\n return this.stampIdentities(\n [{\n codingAgentRegistered: status.codingAgentRegistered,\n codingAgentProviderRef: status.codingAgentLogin?.providerRef ?? null,\n // UNKNOWN is not an answer, and neither is a status command that is not installed (the npx adapters\n // run without it): both stay NULL rather than becoming a `false` the board would read as \"signed out\".\n codingAgentSignedIn: status.codingAgentLogin === null\n || status.codingAgentLogin.state === CodingAgentHostLoginState.UNKNOWN\n || status.codingAgentLogin.state === CodingAgentHostLoginState.NOT_INSTALLED\n ? null\n : status.codingAgentLogin.state === CodingAgentHostLoginState.SIGNED_IN,\n codingAgentLoginDetail: status.codingAgentLogin?.detail ?? null,\n codingAgentLoginRemedy: status.codingAgentLogin?.remedy ?? null,\n activeRunTaskId: status.activeRun?.taskId ?? null,\n activeRunStartedAt: toInstant(status.activeRun?.startedAt),\n lockFilePath: status.lockFilePath ?? null,\n defaultTimeoutMs: status.limits.defaultTimeoutMs,\n hardMaxTimeoutMs: status.limits.hardMaxTimeoutMs,\n defaultMaxCapturedBytes: status.limits.defaultMaxCapturedBytes,\n hardMaxCapturedBytes: status.limits.hardMaxCapturedBytes,\n }],\n () => WORKBENCH_CODING_LANE_STATUS_ROW_ID,\n WorkbenchCreationPlaneBehavior.CODING_LANE_STATUS,\n );\n }\n\n /**\n * The coding runs parked on a question.\n *\n * Lifted OUT of the coding-agent status payload, which stays a companion read: the status is a\n * singleton (is an agent registered, is a run active, what are the limits) and these are a queue.\n * The `decision` bag the wire carries is dropped — it is the answer CHANNEL's contract, and a row\n * that carried it would be the second place the decision lives.\n */\n private async deriveParkedCodingQuestionRows(): Promise<readonly Record<string, unknown>[]> {\n // Read from the actor plane since #1359, so the queue survives a companion restart.\n const rows = (await this.codingAgentDispatchService.listPendingCodingQuestions()).map((pending) => ({\n taskId: pending.taskId,\n taskRef: pending.taskRef,\n question: pending.question,\n parkedAt: toInstant(pending.parkedAt),\n resumable: pending.resumable,\n suspensionRef: pending.suspensionRef,\n }));\n return this.stampIdentities(\n rows,\n (row) => String(row.taskId),\n WorkbenchCreationPlaneBehavior.PARKED_CODING_QUESTIONS,\n );\n }\n\n /** The last completed `wildo secrets list` read — served to every read, however old (see below). */\n private applicationSecretsListing: { readonly at: number; readonly rows: readonly Record<string, unknown>[] } | null = null;\n /** The listing being read now, shared by every caller that has to wait for it, with the generation it was started in. */\n private applicationSecretsRefresh: { readonly generation: number; readonly token: object; readonly promise: Promise<readonly Record<string, unknown>[]> } | null = null;\n /**\n * Advanced by every change the section makes. A listing started before a change describes the world\n * before it: it may still answer the callers that were waiting for it, but it may neither satisfy a\n * read made after the change nor overwrite the listing the change produced (#1782 review, F2). A CLI\n * listing takes up to 86 s under load, so a set landing while one is in flight is the ordinary case.\n */\n private applicationSecretsGeneration = 0;\n /** What the last secrets listing could not derive, as last logged — see `refreshApplicationSecretsListing`. */\n private lastReportedPartialSecretsListing = '';\n\n /**\n * THE SECRETS SECTION (#1637): one row per (environment, secret) the application declares a use for,\n * read by running `wildo secrets list --all --json` — the companion holds no secret of its own.\n *\n * SERVED FROM THE LAST LISTING, REFRESHED BEHIND IT. A listing starts the CLI, loads the application and\n * asks GitHub once per remote environment: measured 86 s on a loaded machine (2026-09-26), and 74 s wall /\n * 19.5 s CPU for `local` once it also read system-of-record facets and the built backend's inbound endpoints\n * (2026-09-27). A read that waited on it past the companion's bound left the page on \"Loading\" and the\n * request answering an error.\n * So only the FIRST read (nothing listed yet) and the read after a change that FAILED part way\n * ({@link forgetApplicationSecretsListing}) wait. A successful set/unset hands over the environment's rows\n * after it ({@link applyApplicationSecretsChange}), so the read after it answers at once with the new\n * standing. Every other read answers at once with the last listing,\n * and starts a refresh when that listing is older than {@link APPLICATION_SECRETS_LISTING_REUSE_MS}; when\n * the refresh finishes the watched boards are republished, so an open page moves to the new rows. A hand\n * edit of `secrets.json` or a change from a terminal therefore shows up one refresh later. An environment\n * the CLI could not read (a remote one without `gh`) contributes no rows and is logged, never silently\n * absent from a list that would then read as \"nothing needed there\".\n */\n private async deriveApplicationSecretRows(): Promise<readonly Record<string, unknown>[]> {\n const listing = this.applicationSecretsListing;\n if (listing === null) return this.refreshApplicationSecretsListing();\n if (Date.now() - listing.at >= APPLICATION_SECRETS_LISTING_REUSE_MS) {\n void this.refreshApplicationSecretsListing(true).catch((error: unknown) => {\n this.logger.warn('[CreationPlane] Secrets listing could not be refreshed; the previous one stays on screen', {\n error: describeCaughtError(error),\n });\n });\n }\n return listing.rows;\n }\n\n /** Read the listing once, however many callers are waiting; republish the watched boards when it lands behind a read. */\n private refreshApplicationSecretsListing(republish = false): Promise<readonly Record<string, unknown>[]> {\n const generation = this.applicationSecretsGeneration;\n if (this.applicationSecretsRefresh?.generation === generation) return this.applicationSecretsRefresh.promise;\n // Identifies THIS refresh, so its `finally` clears the slot only if a newer one has not taken it.\n const token = {};\n const promise = (async () => {\n try {\n const { rows, unreadable, incomplete } = await readApplicationSecrets(this.companionContext.saasRoot);\n for (const environment of unreadable) {\n this.logger.warn(`[CreationPlane] Secrets of environment '${environment.envName}' could not be read: ${environment.error}`);\n }\n // Said once per distinct reason, not on every refresh: a backend that is not built stays not built.\n const partial = incomplete.map((environment) => `'${environment.envName}': ${environment.incomplete.join(' ')}`).join(' · ');\n if (partial !== this.lastReportedPartialSecretsListing) {\n this.lastReportedPartialSecretsListing = partial;\n if (partial.length > 0) this.logger.info(`[CreationPlane] Secrets are listed in part — ${partial}`);\n }\n // Only a listing started in the CURRENT generation may become the listing; an older one answers\n // its own callers and is discarded, so it cannot put a change's previous values back.\n if (generation === this.applicationSecretsGeneration) {\n this.applicationSecretsListing = { at: Date.now(), rows };\n if (republish) void this.republishChangedBoards();\n }\n return rows;\n } finally {\n if (this.applicationSecretsRefresh?.token === token) this.applicationSecretsRefresh = null;\n }\n })();\n this.applicationSecretsRefresh = { generation, token, promise };\n return promise;\n }\n\n /**\n * Record a change the section made (#1782). With the environment's rows after the change (the CLI\n * re-derives them from the inputs it checked the change against), they replace that environment's rows in\n * place and every read answers at once; the caller's `invalidateDerivedBoards()` then republishes the board.\n * Without them, the listing is dropped and the next read waits for a fresh one.\n *\n * Replacing rather than re-listing is what keeps the page on the new standing. A re-list re-loads the\n * application and took longer than a read may wait, so the page that had just set a secret swapped to\n * \"could not load\" instead of showing it set.\n */\n public applyApplicationSecretsChange(envName: string, environmentRows: readonly Record<string, unknown>[] | null): void {\n this.applicationSecretsGeneration += 1;\n const listing = this.applicationSecretsListing;\n if (environmentRows === null || listing === null) {\n this.applicationSecretsListing = null;\n return;\n }\n const rows: Record<string, unknown>[] = [];\n let placed = false;\n for (const row of listing.rows) {\n if (row.environmentName !== envName) {\n rows.push(row);\n } else if (!placed) {\n rows.push(...environmentRows);\n placed = true;\n }\n }\n if (!placed) rows.push(...environmentRows);\n this.applicationSecretsListing = { at: listing.at, rows };\n }\n\n /** Drop the listing — after a change whose effect is unknown (it failed part way), so the next read waits for a fresh one. */\n public forgetApplicationSecretsListing(): void {\n this.applicationSecretsGeneration += 1;\n this.applicationSecretsListing = null;\n }\n\n /**\n * THE DOSSIER (#1454, Step 5): one row per question a playbook interview declares, joined with\n * the creator's answer from `creator-inputs` and with whether the asking playbook can run now.\n *\n * Not cached on its own: the join is a catalog walk plus one companion-exports read (the SAME\n * read the eligibility board pays, so it is warm whenever the board is), and `playbookEligible`\n * comes from the cached eligibility rows. An answer recorded a moment ago must show at once —\n * the interview asks the NEXT question from this list — so a TTL here would be a question asked\n * twice.\n *\n * Orphaned answers (a question the catalog no longer asks) are deliberately NOT rows: a row is a\n * question, and an answer with no question would render as one the person could re-answer into a\n * void. They are reported through the service, for the dossier page's own notice.\n */\n private async deriveDossierEntryRows(): Promise<readonly Record<string, unknown>[]> {\n const [listing, eligibilityRows] = await Promise.all([\n this.dossierService.listDossierEntries(),\n this.derivePlaybookEligibilityRows(),\n ]);\n const eligibleByRef = new Map(eligibilityRows.map((row) => [String(row.playbookRef), row.eligible === true]));\n /*\n * Whether an ANSWER each step reads changed after the step made its result — the fact a question's\n * out-of-date mark states. Only a stale output whose changed inputs include `creator-inputs` counts:\n * a step stale because its market snapshot moved has not had its answers change, and marking every\n * row it asks \"changed since the result was made\" would say so (#1454 review, F4).\n */\n const staleByRef = new Map(eligibilityRows.map((row) => [\n String(row.playbookRef),\n Array.isArray(row.staleOutputs) && (row.staleOutputs as readonly { changedInputs?: readonly string[] }[])\n .some((stale) => (stale.changedInputs ?? []).includes(ApplicationSpecificationFamily.CREATOR_INPUTS)),\n ]));\n const rows = listing.entries.map((entry) => {\n const readingSteps = [entry.playbookRef, ...entry.sharedWithPlaybookRefs];\n /* A shared decision blocks EVERY step that asks it: eligible if its owner or any sharing step can run. */\n const playbookEligible = readingSteps.some((ref) => eligibleByRef.get(ref) === true);\n /* ...and dates every step that reads it: each one whose result predates an input is out of date. */\n /*\n * Freshness is still PER STEP, so it is said only on the step's own rows: an instance's result is\n * not the step's, and \"regenerate\" there would rerun the step (per-instance freshness: #1609 R11).\n */\n const outOfDateStepRefs = entry.answer === undefined || entry.instanceKey !== undefined ? [] : readingSteps.filter((ref) => staleByRef.get(ref) === true);\n const recorded = entry.answer ?? entry.answerFromTheStep;\n const nonAnswer = recorded !== undefined && isCreatorInputNonAnswer(recorded) ? recorded : undefined;\n const valueAnswer = recorded !== undefined && !isCreatorInputNonAnswer(recorded) ? recorded : undefined;\n return {\n playbookRef: entry.playbookRef,\n questionRef: entry.questionRef,\n instanceKey: entry.instanceKey ?? null,\n instancePurpose: entry.instancePurpose ?? null,\n question: entry.question,\n kind: entry.kind,\n options: entry.options,\n // Index-aligned with `options` when the options are computed; empty when they are authored (no detail exists).\n optionDetails: entry.optionDetails.length === 0 ? [] : entry.options.map((option) => entry.optionDetails.find((detail) => detail.option === option)?.detail ?? ''),\n optionsState: entry.optionsState,\n position: entry.position,\n standing: dossierEntryStanding(entry),\n /* A non-answer (#3437) carries no value: its reason is its own field, so nothing reads it as an answer. */\n value: valueAnswer?.value ?? null,\n nonAnswerReason: nonAnswer?.reason ?? null,\n answeredAt: toInstant(recorded?.answeredAt),\n answeredByRef: recorded?.answeredByRef ?? null,\n shownOptionDetail: valueAnswer?.shownOptionDetail ?? null,\n playbookEligible,\n /* Still needed by a step that can run: the one state that blocks something now. */\n askedNow: dossierEntryStanding(entry) === WorkbenchDossierEntryStanding.STILL_NEEDED && playbookEligible,\n affectsFamilies: [...entry.affectsFamilies],\n subject: specificationFamilyConcern(entry.subjectFamily ?? ''),\n outOfDate: outOfDateStepRefs.length > 0,\n outOfDateStepRefs,\n sharedWithPlaybookRefs: [...entry.sharedWithPlaybookRefs],\n /* #2129: what a simple interview asks, what may be proposed, what is named before it is kept. */\n askedInSimpleInterview: entry.askedInSimpleInterview,\n proposable: entry.proposable,\n regulatedDomain: entry.regulatedDomain,\n /* #3439: what the row offers instead of a value, and what its answer door admits. */\n admittedNonAnswers: [...entry.admittedNonAnswers],\n assumptionRationale: valueAnswer?.assumptionRationale ?? null,\n interviewDepth: listing.interviewDepth ?? null,\n };\n });\n return this.stampIdentities(\n rows,\n (row) => workbenchDossierEntryIdentity({\n playbookRef: String(row.playbookRef),\n questionRef: String(row.questionRef),\n instanceKey: row.instanceKey === null ? null : String(row.instanceKey),\n }),\n WorkbenchCreationPlaneBehavior.DOSSIER_ENTRIES,\n );\n }\n\n /**\n * The specification families' STATES — landed and valid, landed and refused, not landed — read\n * IN-PROCESS through the same projection the subprocess `specification-artifacts` behavior renders\n * for the artifact list, so Home and that list cannot disagree about which families exist.\n *\n * Cached like the eligibility board and for the same reason: it evaluates the specifications\n * companion exports and runs every family validator, which is the cost that board pays. The cache\n * slot rides the same invalidation, so a run landing a family moves the outcomes on the next read.\n *\n * An application with no specifications package has no families to measure; the outcomes then\n * read \"not started\" over zero families, which is the truthful answer rather than a refusal on the\n * page a creator opens first.\n */\n private readSpecificationArtifactStates(): Promise<readonly Record<string, unknown>[]> {\n return this.deriveCached(SPECIFICATION_ARTIFACT_STATES_CACHE_KEY, async () => {\n const packageRoot = this.companionContext.resolvedSpecifications?.packageRoot;\n const appDeclarationRoot = this.companionContext.resolvedHomes.app.layout?.declarationRoot;\n if (packageRoot === undefined || appDeclarationRoot === undefined) return [];\n const exports = await loadSpecificationFamilyData(this.companionContext);\n const relativePath = relative(appDeclarationRoot, packageRoot);\n const projected = projectSpecificationArtifacts({\n /* The loader answers the RESOLVED surface; the projection resolves a module's default export, so it is handed one. */\n moduleExports: { default: exports },\n packageRoot,\n appRelativePackagePrefix: relativePath.length > 0 && !relativePath.startsWith('..') ? relativePath : basename(packageRoot),\n evaluatedAt: new Date().toISOString(),\n });\n return projected.artifacts.map((artifact) => ({ family: artifact.family, state: artifact.state }));\n });\n }\n\n /**\n * HOME's lines (#1454) — a JOIN over the sibling projections, in the shapes they serve: what\n * happened (runs, dispatches), what is asked (waiting runs, parked questions, drafted documents),\n * what could be done next (the dispatch plan, eligible playbooks against the family states).\n *\n * Not cached on its own: its expensive inputs are cached in their own slots (eligibility, the\n * dispatch plan, the family states), and the rest are actor-plane and file reads (runs, dispatches,\n * waiting runs, parked questions, governance documents). A line about a run that just settled must\n * show on the next read, and a sweep's publication pass re-derives it while Home is watched.\n */\n private async deriveHomeLineRows(): Promise<readonly Record<string, unknown>[]> {\n const [runs, dispatches, waiting, parked, documents, dispatchPlan, playbooks, artifacts, eligibilityBoard] = await Promise.all([\n this.derivePlaybookRunRows(),\n this.deriveBuildDispatchRows(),\n this.deriveWaitingPlaybookRunRows(),\n this.deriveParkedCodingQuestionRows(),\n this.deriveGovernanceDocumentRows(),\n this.deriveBuildDispatchPlanRows(),\n this.derivePlaybookEligibilityRows(),\n this.readSpecificationArtifactStates(),\n // The same cached board the playbook rows come from: which waiting interviews hold work for an unattended round (#3361).\n this.readPlaybookEligibilityBoard(),\n ]);\n // The usage limit holding the build NOW (#2388): the pause itself, so Home says so exactly while it lasts.\n const codingAgentUsageLimit = this.codingAgentDispatchService.readCodingAgentUsageLimitHold();\n // The network loss holding coding admissions NOW (#3236, #3262): Home says so exactly while no turn is admitted.\n const connectivityHold = this.codingAgentDispatchService.readCodingAgentConnectivityHold();\n const verificationToolHold = this.codingAgentDispatchService.readVerificationToolUnavailableHold();\n // A person's closures and the follow-ups landed still reporting a gap (#3224, #2583). Best effort: a read that\n // fails costs these lines, never Home, and says so.\n const [closures, followUpsLandedWithGaps, uncommittedLeftovers, landedTasksWithAdvisories, gapsAwaitingDecision] = await Promise.all([\n Promise.resolve().then(() => this.buildDispatchService.readHonouredBuildTaskClosures()).catch((error: unknown) => {\n this.logger.warn('Could not read the build-task closures; Home lists none', { error: describeCaughtError(error) });\n return [];\n }),\n Promise.resolve().then(() => this.buildDispatchService.readFollowUpsLandedWithGaps()).catch((error: unknown) => {\n this.logger.warn('Could not read the follow-ups landed with a gap; Home lists none', { error: describeCaughtError(error) });\n return [];\n }),\n // Files the tasks' runs left that no automatic door will commit (#3267). Best effort, like the two above.\n Promise.resolve().then(() => this.codingAgentDispatchService.listUncommittedRunLeftovers()).catch((error: unknown) => {\n this.logger.warn('Could not list the files build-task runs left uncommitted; Home lists none', { error: describeCaughtError(error) });\n return [];\n }),\n // Landed tasks with something left unfinished, a billing catalogue nothing serves (#3285). Best effort, like the rest.\n Promise.resolve().then(() => this.buildDispatchService.readLandedTasksWithAdvisories()).catch((error: unknown) => {\n this.logger.warn('Could not read the landed tasks with a landing advisory; Home lists none', { error: describeCaughtError(error) });\n return [];\n }),\n // Reported gaps only the person's decision can close (#3886). Best effort, like the rest.\n Promise.resolve().then(() => this.buildDispatchService.readGapsAwaitingDecision()).catch((error: unknown) => {\n this.logger.warn('Could not read the reported gaps awaiting a decision; Home lists none', { error: describeCaughtError(error) });\n return [];\n }),\n ]);\n const rows = buildCreationHomeLines({\n runs: runs as never, dispatches: dispatches as never, waiting: waiting as never, parked: parked as never,\n documents: documents as never, dispatchPlan: dispatchPlan as never, playbooks: playbooks as never, artifacts: artifacts as never,\n ...(codingAgentUsageLimit ? { codingAgentUsageLimit } : {}),\n ...(connectivityHold ? {\n codingAgentConnectivityHold: {\n observedAt: connectivityHold.observedAt,\n taskRef: connectivityHold.taskRef,\n ...(connectivityHold.probeRoute ? { route: describeCodingAgentProbeRoute(connectivityHold.probeRoute) } : {}),\n },\n } : {}),\n ...(verificationToolHold ? {\n verificationToolUnavailableHold: { observedAt: verificationToolHold.observedAt, taskRef: verificationToolHold.taskRef, cause: describeVerificationHostCause(verificationToolHold) },\n } : {}),\n closures,\n followUpsLandedWithGaps,\n uncommittedLeftovers,\n landedTasksWithAdvisories,\n gapsAwaitingDecision,\n datedByWaitingInterviews: eligibilityBoard.datedByWaitingInterviews,\n });\n return this.stampIdentities(\n rows as unknown as readonly Record<string, unknown>[],\n /* A target can appear in two sections (a settled dispatch's line and its ACCEPT suggestion are one line, but a playbook may be both stale and asked), so section and kind are part of the key. */\n (row) => `${String(row.section)}--${String(row.kind)}--${String(row.targetResourceId)}`,\n WorkbenchCreationPlaneBehavior.HOME_LINES,\n );\n }\n\n /** The four creation outcomes (#1454) — always four rows, measured on the family states, the stale set and the build-plan tasks. */\n private async deriveCreationOutcomeRows(): Promise<readonly Record<string, unknown>[]> {\n const [artifacts, playbooks, tasks, unavailable] = await Promise.all([\n this.readSpecificationArtifactStates(),\n this.derivePlaybookEligibilityRows(),\n this.deriveBuildPlanTaskRows(),\n // Whether the application can START (#1537) — read, not probed: the dev loop's supervisors decide it.\n readUnavailableApplicationRuntimes(this.companionContext.saasRoot),\n ]);\n /*\n * And what the backend itself recorded about its last start (#2405), which an app-creator application — no\n * supervisor — has instead. No commit time here, so a failure counts even while a fresh commit's restart is\n * pending; that reads \"down\" a few seconds early on a status page, never \"up\" while it is not.\n *\n * The two sources name a runtime differently (a supervisor label like `backend-api`, a bootstrap service identifier\n * like `services.backendApi`), and no mapping between them is declared anywhere, so a backend both report can be\n * listed twice. Accepted: the row is down either way, and a guessed mapping could hide one that is.\n */\n const bootFailures = await readApplicationBootFailures(this.companionContext.saasRoot, { newestCommitAtMs: undefined });\n const unavailableLabels = unavailable === undefined && bootFailures === undefined ? undefined : [\n ...(unavailable ?? []).map((runtime) => runtime.label),\n ...(bootFailures ?? []).map((failure) => failure.serviceIdentifier).filter((label) => !(unavailable ?? []).some((runtime) => runtime.label === label)),\n ];\n const staleFamilies = new Set<string>();\n for (const playbook of playbooks) {\n for (const stale of (playbook.staleOutputs as readonly { family: string }[] | undefined) ?? []) staleFamilies.add(stale.family);\n }\n // From progress, the one answer that says what a marked step is (#3258), not from the task rows' status.\n const specificationFault = (await this.buildDispatchService.resolveBuildExecutionProgress().catch(() => undefined))?.specificationFault;\n const rows = buildCreationOutcomes({\n artifacts: artifacts as never,\n staleFamilies,\n tasks: tasks as never,\n ...(specificationFault === undefined ? {} : { specificationFault }),\n ...(unavailableLabels === undefined ? {} : { unavailableRuntimes: unavailableLabels }),\n });\n return this.stampIdentities(\n rows as unknown as readonly Record<string, unknown>[],\n (row) => String(row.outcome),\n WorkbenchCreationPlaneBehavior.CREATION_OUTCOMES,\n );\n }\n\n private stampIdentities(\n rows: readonly Record<string, unknown>[],\n businessKey: (row: Record<string, unknown>) => string,\n behavior: WorkbenchCreationPlaneBehavior,\n ): readonly Record<string, unknown>[] {\n const fieldIdentifier = CREATION_PLANE_IDENTITY_FIELDS[behavior];\n const seen = new Map<string, string>();\n return rows.map((row) => {\n const raw = businessKey(row);\n const identity = sanitizeCreationPlaneIdentity(raw);\n const previous = seen.get(identity);\n if (previous !== undefined && previous !== raw) {\n throw new Error(\n `Creation-plane behavior '${behavior}' sanitized two distinct keys ('${previous}', '${raw}') to one `\n + `identity '${identity}'. Served, READ would return an arbitrary one of them; refused instead. `\n + 'Rename one of the colliding keys.',\n );\n }\n seen.set(identity, raw);\n return { ...row, [fieldIdentifier]: identity };\n });\n }\n}\n"]}
|