Repository navigation
[docs] network-doctor: Add NET-006 subnet collision and NET-007 orphaned awf-net findings - #11660
Conversation
Add two network-boundary diagnosis records for fixed behavior already on main: - NET-006: awf-net subnet collides with host/cluster DNS resolver or routes (--network-subnet override plus fail-loud assertNetworkSubnetUsable check). - NET-007: Compose refuses a leftover awf-net owned by another project (removeConflictingComposeNetworks orphan reclaim). Regenerate the registry README index. Generated .github consumers are left to trusted CI/reviewer rendering per the diagnosis maintenance contract. Co-authored-by: Copilot <[email protected]>
There was a problem hiding this comment.
🟡 Changes recommended
Active findings remain around incomplete route validation, overly narrow affected-runtime scopes, and an overstated automatic-recovery claim for unlabelled networks.
4 open issues
What changed in this PR
Adds two canonical network diagnosis records for known AWF startup failures and updates the generated diagnostics index.
Changes:
- Adds NET-006 for awf-net subnet collisions with DNS resolvers or host routes, including relocation guidance.
- Adds NET-007 for orphaned Compose-managed awf-net networks and reclamation guidance.
- Regenerates the diagnostics README index and symptom mappings.
| File | Description |
|---|---|
| docs/diagnostics/README.md | Adds NET-006 and NET-007 to the diagnostics registry and symptom lookup tables. |
| docs/diagnostics/findings/network/NET-007.json | Defines orphaned Compose network symptoms, conditions, probing guidance, remediation, and provenance. |
| docs/diagnostics/findings/network/NET-006.json | Defines subnet-collision symptoms, conditions, probing guidance, remediation, and provenance. |
Review effort: Lite (dynamic)
| "status": "fixed", | ||
| "rootCause": "Compose does not scope fixed network names per project, so an orphaned awf-net from an earlier run is treated as foreign and refused. The run reclaims the network before compose up when its project label differs, and retries after detaching stale endpoints left by killed containers.", |
There was a problem hiding this comment.
Updated NET-007 to qualify automatic recovery when the network lacks a Compose project label and to direct manual cleanup only for confirmed stale endpoints. Commit: c924a33.
| "affects": { | ||
| "runner": "any", | ||
| "runtime": "runc|chroot", | ||
| "provider": "any", | ||
| "authMode": "any" |
There was a problem hiding this comment.
Changed NET-006’s runtime scope to any, since subnet validation runs before runtime-specific setup. Commit: c924a33.
| "command": "grep -n nameserver /etc/resolv.conf && docker network inspect awf-net --format '{{json .IPAM.Config}}'", | ||
| "expect": "Compare the nameserver addresses and any awf-net subnet with the chosen --network-subnet. A nameserver inside the subnet reproduces the collision; a clean result rules it out. This probe reads only resolver and network metadata.", |
There was a problem hiding this comment.
Added /proc/net/route to NET-006’s read-only probe and clarified that resolver/network output alone cannot rule out route overlap. Commit: c924a33.
| "affects": { | ||
| "runner": "any", | ||
| "runtime": "runc|chroot", | ||
| "provider": "any", | ||
| "authMode": "any" |
There was a problem hiding this comment.
Changed NET-007’s runtime scope to any to include microVM backends that still use generated Compose infrastructure services. Commit: c924a33.
|
@copilot address review feedback |
Co-authored-by: copilot-swe-agent[bot] <[email protected]>
|
✅ Copilot review passed with no inline comments. @github-actions[bot] Add the |
Documentation PreviewDocumentation has been built for this PR. To view locally:
Built from commit 9ed6573 |
|
@copilot make sure that 'npm test' runs without any failures |
Addressed the review feedback in
I attempted |
Co-authored-by: Copilot App <[email protected]>


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.Adds two
network-boundary diagnosis records for behavior that is already fixed onmain, and regenerates the registry README index.Coverage this run
#10992–#11176). Remaining first-time backlog: 151. Deferred queue: 0.receipts.json: 49no-impact(owning boundary recorded), 1covered(#11083, already cited by NET-005).historyBefore 2026-11-02, with history floor2025-10-16. Not complete.Changes
awf-netsubnet collides with host/cluster DNS resolver or routes. Relocate with--network-subnet;assertNetworkSubnetUsablefails loudly.awf-netowned by another project.removeConflictingComposeNetworksreclaims it beforecompose up.Probe for each record is read-only and secret-safe (
grepon/etc/resolv.conf,docker network inspectlabel/attachment read). Neither probe dumps environment or sends traffic.Provenance (verified on
main)#8390, PR#8398. Codesrc/network-subnet.ts(assertNetworkSubnetUsable), call sitesrc/commands/validators/network-options.ts, testsrc/network-subnet.test.ts.#7809, PR#7817. Codesrc/compose-network-conflicts.ts, call sitesrc/container-startup.ts, testsrc/compose-network-conflicts.test.ts.Why
workaroundfor NET-006The default
172.30.0.0/24still collides on OpenShift/ARO, so the fix is an operator override plus a loud startup failure, not a changed default. Markedworkaround, notfixed.Validation
npm run diagnostics:validate: registry valid, 30 findings.npm run diagnostics:freshness: no overdue records.npm run diagnostics:render: onlydocs/diagnostics/README.mdis in this PR. The two generated.githubconsumers (diagnosis-findings.md,diagnose-awf.md) are left to trusted CI/reviewer rendering per the contract, sodiagnostics:checkreports them stale until that happens. This is expected for this allowed-files scope.Review notes
#11059changed files were hidden by the integrity filter; it was resolved via its PR metadata (3 test-only files, targets the#11057branch, no production change).#11005's sidecar change is model-fallback routing, not egress policy; classified outside this boundary.Attribution: records were drafted by the Network Doctor Updater automation and need human review before merge.