Repository navigation
fix: preserve mounted hosts inode during enclave gateway setup - #11472
Merged
lpcox merged 3 commits intoNov 11, 2026
Merged
Conversation
Copilot
AI
changed the title
[WIP] Investigate enclave real-agent step failure across engines
fix: preserve mounted hosts inode during enclave gateway setup
Nov 11, 2026
Use POSIX sed expressions for alias boundaries while preserving the mounted hosts inode. Cover stale aliases followed by spaces and tabs. Co-authored-by: Copilot App <[email protected]>
Contributor
There was a problem hiding this comment.
🔵 Needs a closer look
Supported-Linux CI and the six-job enclave matrix remain unverified, while the local hard-link test does not validate Docker bind-mount behavior or end-to-end gateway startup.
No open issues 🎉
What changed in this PR
Addresses the shared enclave gateway attachment failure in #11458 by updating Docker’s bind-mounted /etc/hosts without replacing its inode.
Changes:
- Replaces
sed -iwith portable alias filtering followed by rewriting the existing file. - Adds generated-shell regression coverage for inode preservation, alias replacement, and repeat-update idempotency across six engine/runtime configurations.
| File | Description |
|---|---|
src/enclave/gateway.ts |
Rewrites hosts contents without renaming the mounted file. |
src/enclave/gateway.test.ts |
Updates shell expectations and adds inode, alias, and idempotency checks. |
Review effort: Max (auto)
lpcox
deleted the
copilot/awf-regression-job-investigate-enclave-failure
branch
November 11, 2026 18:54
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.
All six enclave jobs—Copilot, Codex, and Claude on Docker and Cloud Hypervisor—stop at gateway attachment in daily regression run 42974312039. The shared
sed -ioperation attempts to rename over Docker’s bind-mounted/etc/hosts; this patch rewrites the existing inode instead.sedexpressions for exact alias boundaries.Local validation and remaining gates
At head
59ca87e65, root build and lint pass, and all 67 tests insrc/enclave/gateway.test.tspass. The original new regression cases failed on macOS because GNU-onlysedalternation retained stale aliases; the portability follow-up fixes those failures without weakening assertions.The full root
npm test -- --runInBandwas attempted but interrupted before a final summary. It exposed failures in unchanged tests, including Unix-socket lifecycle setup (ENOENTonexecutor.sock, independently reproduced), Linux/proc/sys/kernel/random/boot_idassumptions, and evidence directory ancestry checks. The full suite is not green and needs validation on the supported Linux CI runner.No existing reviews or review threads required action. Prior PR workflow runs require human approval and have no job logs; the only completed check observed was License compliance. CI on the latest head and the live daily six-job Docker/Cloud Hypervisor matrix remain unverified. A maintainer must authorize/re-trigger CI and review results before merge. No CI dispatch, approval, or merge was performed. PR remains draft pending these gates.