Repository navigation
Separate Docker host enclave execution concerns - #11788
Merged
Merged
Conversation
Co-authored-by: copilot-swe-agent[bot] <[email protected]>
lpcox
marked this pull request as ready for review
November 18, 2026 19:00
Contributor
There was a problem hiding this comment.
🔵 Needs a closer look
Human review is needed to confirm that the new asynchronous validation and authority-settlement boundaries preserve cancellation cleanup, journal-before-allocation, and revocation-before-result guarantees across modules.
No open issues 🎉
What changed in this PR
Refactors Docker-host enclave execution into focused modules for #11783, preserving the exported API and keeping lifecycle orchestration in the execution module.
Changes:
- Extracts plan and path validation, launch arguments, storage-probe arguments, and debug-secret collection.
- Moves recovery-record construction and authority settlement into the recovery module.
- Adds focused tests for the extracted helpers.
| File | Description |
|---|---|
src/enclave/docker-host-recovery.ts |
Adds recovery-record and authority-settlement helpers. |
src/enclave/docker-host-recovery.test.ts |
Tests recovery records, accounting, and revocation failures. |
src/enclave/docker-host-plan-validation.ts |
Extracts identity, invocation-path, and seed validation. |
src/enclave/docker-host-plan-validation.test.ts |
Tests valid plans, unsafe paths, and seed requirements. |
src/enclave/docker-host-launch-args.ts |
Extracts launch configuration, argument construction, and secret collection. |
src/enclave/docker-host-launch-args.test.ts |
Tests launch vectors, debug settings, redaction inputs, and storage probes. |
src/enclave/docker-host-execute.ts |
Delegates extracted concerns while retaining lifecycle sequencing and cleanup. |
Review effort: Max (adaptive)
Contributor
✅ Coverage Check PassedOverall Coverage
📁 Per-file Coverage Changes (6 files)
✨ New Files (2 files)
Coverage comparison generated by |
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 execution module mixes security-critical validation, launch configuration, redaction, and settlement. This refactor separates those concerns while preserving the exported API and execution behavior.