Skip to content

[docs] network-doctor: Add NET-006 subnet collision and NET-007 orphaned awf-net findings - #11660

Merged
lpcox merged 3 commits into
mainfrom
network-doctor/net-006-007-subnet-orphan-network-292059938d1adb83
Nov 16, 2026
Merged

lpcox merged 3 commits into
mainfrom
network-doctor/net-006-007-subnet-orphan-network-292059938d1adb83

Conversation

@github-actions

Copy link
Copy Markdown
Contributor

Caution

Protected files were modified in this change.
This pull request is in request-review mode and requires explicit human scrutiny before merge.

Protected files: README.md

Allow 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.exclude in the workflow Markdown frontmatter. For example, to allow .changeset/*, exclude the folder using .changeset/:

safe-outputs:
  create-pull-request:
    protected-files:
      policy: request-review
      exclude:
        - .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-files is configured, these paths must also match it. Run gh aw compile after updating the workflow.

Adds two network-boundary diagnosis records for behavior that is already fixed on main, and regenerates the registry README index.

Coverage this run

  • Reviewed the first 50 of 201 first-time candidates (#10992–#11176). Remaining first-time backlog: 151. Deferred queue: 0.
  • Every reviewed merge is classified in receipts.json: 49 no-impact (owning boundary recorded), 1 covered (#11083, already cited by NET-005).
  • Historical catch-up: the cursor is at historyBefore 2026-11-02, with history floor 2025-10-16. Not complete.

Changes

ID Boundary Status Version scope Summary
NET-006 network workaround unknown awf-net subnet collides with host/cluster DNS resolver or routes. Relocate with --network-subnet; assertNetworkSubnetUsable fails loudly.
NET-007 network fixed unknown Compose refuses a leftover awf-net owned by another project. removeConflictingComposeNetworks reclaims it before compose up.

Probe for each record is read-only and secret-safe (grep on /etc/resolv.conf, docker network inspect label/attachment read). Neither probe dumps environment or sends traffic.

Provenance (verified on main)

  • NET-006: issue #8390, PR #8398. Code src/network-subnet.ts (assertNetworkSubnetUsable), call site src/commands/validators/network-options.ts, test src/network-subnet.test.ts.
  • NET-007: issue #7809, PR #7817. Code src/compose-network-conflicts.ts, call site src/container-startup.ts, test src/compose-network-conflicts.test.ts.
  • Cited tests run locally: 29/29 pass.

Why workaround for NET-006

The default 172.30.0.0/24 still collides on OpenShift/ARO, so the fix is an operator override plus a loud startup failure, not a changed default. Marked workaround, not fixed.

Validation

  • npm run diagnostics:validate: registry valid, 30 findings.
  • npm run diagnostics:freshness: no overdue records.
  • npm run diagnostics:render: only docs/diagnostics/README.md is in this PR. The two generated .github consumers (diagnosis-findings.md, diagnose-awf.md) are left to trusted CI/reviewer rendering per the contract, so diagnostics:check reports them stale until that happens. This is expected for this allowed-files scope.

Review notes

  • #11059 changed files were hidden by the integrity filter; it was resolved via its PR metadata (3 test-only files, targets the #11057 branch, no production change).
  • #11005's sidecar change is model-fallback routing, not egress policy; classified outside this boundary.
  • No auto-merge. Human review of the canonical record is required.

Attribution: records were drafted by the Network Doctor Updater automation and need human review before merge.

Generated by Network Doctor Updater · copilot · routed: haiku55 xhigh · ~52 AIC · ⌖ ~2 AIC · ⊞ 6K · ◷

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]>
@github-actions github-actions Bot added ai-generated documentation Improvements or additions to documentation labels Nov 16, 2026
@lpcox
lpcox marked this pull request as ready for review November 16, 2026 14:55
Copilot AI adaptive review requested due to automatic review settings November 16, 2026 14:55

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 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)

Comment on lines +25 to +26
"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.",

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Comment on lines +16 to +20
"affects": {
"runner": "any",
"runtime": "runc|chroot",
"provider": "any",
"authMode": "any"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changed NET-006’s runtime scope to any, since subnet validation runs before runtime-specific setup. Commit: c924a33.

Comment on lines +29 to +30
"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.",

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Comment on lines +15 to +19
"affects": {
"runner": "any",
"runtime": "runc|chroot",
"provider": "any",
"authMode": "any"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changed NET-007’s runtime scope to any to include microVM backends that still use generated Compose infrastructure services. Commit: c924a33.

@lpcox

lpcox commented Nov 16, 2026

Copy link
Copy Markdown
Collaborator

@copilot address review feedback

Copilot AI requested a review from lpcox November 16, 2026 15:39
@github-actions

github-actions Bot commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ Copilot review passed with no inline comments.

@github-actions[bot] Add the ready-for-aw label to this PR to trigger agentic CI smoke tests.

@github-actions

github-actions Bot commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor Author

Documentation Preview

Documentation has been built for this PR.

Download preview artifact

To view locally:

  1. Download the docs-preview-pr-11660 artifact from the workflow run
  2. Unzip and open index.html in your browser

Built from commit 9ed6573

@lpcox

lpcox commented Nov 16, 2026

Copy link
Copy Markdown
Collaborator

@copilot make sure that 'npm test' runs without any failures

Copilot AI commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

@copilot address review feedback

Addressed the review feedback in c924a33 (docs: address NET-006 and NET-007 review feedback): both findings now cover all runtimes, NET-006 inspects /proc/net/route, and NET-007 qualifies recovery when the project label is absent.

@copilot make sure that 'npm test' runs without any failures

I attempted npm test, but it could not start because this checkout has no installed dependencies. npm ci was then blocked by DNS resolution failure for packagefeedproxy.microsoft.io (ENOTFOUND), so Jest could not be run here; this is an environment/dependency-fetch failure, not a reported test assertion failure.

@lpcox
lpcox merged commit 20a456c into main Nov 16, 2026
38 of 40 checks passed
@lpcox
lpcox deleted the network-doctor/net-006-007-subnet-orphan-network-292059938d1adb83 branch November 16, 2026 19:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ai-generated documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants