Repository navigation
Split Docker host enclave executor into focused modules - #11600
Merged
Merged
Conversation
Co-authored-by: copilot-swe-agent[bot] <[email protected]>
lpcox
marked this pull request as ready for review
November 14, 2026 19:52
Contributor
There was a problem hiding this comment.
🟡 Changes recommended
The Linux test fails because it expects two diagnostic events, but the recorder emits workload-start’s started and succeeded events before a third workload-exit event.
1 open issue
What changed in this PR
Refactors the Docker host enclave executor into focused modules with explicit shared state, addressing #11595 while preserving the public executor API.
Changes:
- Introduces a shared context and reduces the factory to module wiring.
- Separates container lifecycle, invocation execution, authority settlement, and recovery initialization.
- Adds focused tests for journal ordering, cleanup gates, ownership checks, and readiness caching.
| File | Description |
|---|---|
src/enclave/docker-host-recovery.ts |
Adds recovery-state creation and initialization alongside journal primitives. |
src/enclave/docker-host-recovery.test.ts |
Covers recovery safeguards and readiness caching. |
src/enclave/docker-host-executor.ts |
Wires the extracted modules and preserves the public API. |
src/enclave/docker-host-execute.ts |
Extracts invocation execution, settlement, and active-invocation tracking. |
src/enclave/docker-host-context.ts |
Defines shared types, validates configuration, and initializes backend state. |
src/enclave/docker-host-container.ts |
Extracts container creation, execution, reconciliation, cleanup, and diagnostic retention. |
src/enclave/docker-host-container.test.ts |
Covers container operations, journal ordering, cancellation, and cleanup gates. |
Review effort: Max (dynamic)
Collaborator
Author
|
@copilot address review feedback |
Contributor
|
✅ Copilot review passed with no inline comments. @lpcox Add the |
Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Contributor
Updated the assertion to verify all three diagnostic events and their statuses in order. Commit: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

The Docker host executor combined container lifecycle, invocation execution, recovery, and settlement in one large closure. This refactor separates those responsibilities over an explicit shared context while preserving the public API.