Repository navigation
[docs] ci-doctor: add CI-007 enclave gateway hosts-resolution finding - #11511
Merged
Merged
Conversation
Co-authored-by: Copilot <[email protected]>
lpcox
marked this pull request as ready for review
November 12, 2026 23:08
Contributor
There was a problem hiding this comment.
🟡 Changes recommended
The change has unresolved correctness and integration issues: CI-007 misrepresents unavailable error details and the generated workflow catalog and portable agent remain stale, causing the diagnostics freshness check to fail.
2 open issues
What changed in this PR
Adds the CI-007 diagnostic finding for enclave gateway host-resolution failures after private-network attachment, with probing guidance, remediation, provenance, and registry updates.
Changes:
- Adds the canonical CI-007 finding with symptoms, conditions, probe, action, and references.
- Registers CI-007 in the diagnostics index and symptom lookup table.
- Generated workflow and portable-agent consumers still require regeneration to remain synchronized.
| File | Description |
|---|---|
| docs/diagnostics/README.md | Registers CI-007 in the generated finding catalog and symptom lookup table. |
| docs/diagnostics/findings/ci/CI-007.json | Defines the enclave gateway host-resolution diagnosis, diagnostic probe, remediation guidance, conditions, and provenance. |
Review effort: Lite (auto)
| @@ -0,0 +1,33 @@ | |||
| { | |||
| "$schema": "../../schema.json", | |||
| "id": "CI-007", | |||
| "rootCause": "The prestarted gateway's resolver cannot see the AWF-created private network alias, and the first hosts-file update could not replace Docker's bind-mounted /etc/hosts. Without the alias, initialize could not reach the enclave MCP server.", | ||
| "probe": { | ||
| "command": "jq '.diagnostic.enclaveStartup.hostPreflight' path/to/protected/startup.json", | ||
| "expect": "Find the gateway-attachment preflight and the phase that failed (contract, identity, network-connect or network-membership). A network-membership failure with the resolution message points here; an absent record is unknown, not success. Do not read container environments.", |
Collaborator
|
@copilot address review feedback |
Co-authored-by: lpcox <[email protected]>
Contributor
Contributor
Author
|
✅ Copilot review passed with no inline comments. @github-actions[bot] Add the |
Contributor
Author
Documentation PreviewDocumentation has been built for this PR. To view locally:
Built from commit a1020e1 |
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.


Caution
Protected files were modified in this change.
This pull request is in
request-reviewmode and requires explicit human scrutiny before merge.Protected files:
README.mdAllow intentional protected-file changes
If this workflow is intended to modify these files, add specific filenames or folder prefixes to
safe-outputs.create-pull-request.protected-files.excludein the workflow Markdown frontmatter. For example, to allow.changeset/*, exclude the folder using.changeset/:Keep your existing policy and exclusions. Folder exclusions use path prefixes, not glob patterns, and allow all files beneath that folder, including subfolders. Other protected files still require review. If
allowed-filesis configured, these paths must also match it. Rungh aw compileafter updating the workflow.Coverage
Reviewed the first-time queue (109 candidates, 0 deferred, 109 pending). Deep-reviewed enclave/CI PRs: #11160, #11192, #11194, #11191, #11193, #11222, #11223, #11239, #11276, #11277, #11275, #11393, #11472. Many are already covered by CI-003..006 and RT-003/004. Not all 109 are reviewed yet; the rest (model catalogue, budget notices, docs syncs, dependency bumps and the like) remain pending. Cursors: updatedSince 2026-11-12T22:44:55Z, historyBefore 2026-11-05T22:44:55Z, historyFloor 2025-10-16. Freshness: no overdue CI records.
New finding: CI-007 (ci, status
fixed, versions unknown)Prestarted mcpg gateway cannot resolve
awf-enclave-mcpafter being attached to the private control network. #11393 added the in-gateway hosts mapping. #11472 fixed thesed -irename over Docker's bind-mounted/etc/hostsby rewriting the existing inode.jq '.diagnostic.enclaveStartup.hostPreflight' path/to/protected/startup.json(read-only, secret-safe).src/enclave/gateway.ts(configureGatewayHostResolution),src/enclave/gateway.test.ts(inode-preservation cases across all six engine/runtime configs).Validation
npm run diagnostics:validatepasses (26 findings). README index regenerated. Generated prompt/agent consumers are deliberately left for trusted CI.Gaps
Hosted acceptance is unverified. Fix release versions are unknown. Remaining pending PRs need review in later runs.