Skip to content

Normalize directional network input directly - #1383

Open
Gudge (MGudgin) wants to merge 1 commit into
user/gudge/remove-schema-0-6-to-0-8from
user/gudge/directional-network-normalization
Open

Gudge (MGudgin) wants to merge 1 commit into
user/gudge/remove-schema-0-6-to-0-8from
user/gudge/directional-network-normalization

Conversation

@MGudgin

@MGudgin Gudge (MGudgin) commented Oct 3, 2026 •

Copy link
Copy Markdown
Member

This PR removes obsolete legacy network-format selection after #1382 retires
pre-v0.9 contracts. Shared normalization now applies the directional network
sections directly, without changing runtime compatibility or policy identity.

Details

  • Remove unreachable legacy parser, backend checks, and loopback-only tests.
  • Keep directional defaults, proxy validation, and state-aware network presence.
  • Assert that all supported one-shot contracts reject legacy network fields.

Test

  • cargo fmt --manifest-path .\src\Cargo.toml --all -- --check — passed.
  • cargo test --manifest-path .\src\Cargo.toml -p wxc_common -p bwrap_common -p nanvix_runner --quiet — passed (922 shared-crate tests plus backend and integration groups).
  • cargo check --manifest-path .\src\Cargo.toml --workspace --all-targets --quiet — passed.
  • cargo clippy --manifest-path .\src\Cargo.toml -p wxc_common --all-targets -- -D warnings — passed.
  • cargo clippy --manifest-path .\src\Cargo.toml --workspace --all-targets -- -D warnings — failed on pre-existing clippy::unnecessary_sort_by in src/backends/process_container/common/src/appcontainer_runner.rs:117; unchanged by this PR.
Microsoft Reviewers: Open in CodeFlow

This PR removes legacy network-format selection after the pre-v0.9
contracts are retired. Shared normalization applies directional policy
and proxy sections without changing runtime compatibility or policy identity.

Details

* Remove unreachable legacy parsing and validation paths.
* Keep directional defaults and state-aware network presence behavior.
* Test exact-contract rejection of legacy fields and update versioning docs.

Tests

* cargo fmt --manifest-path .\src\Cargo.toml --all -- --check: passed.
* cargo test --manifest-path .\src\Cargo.toml -p wxc_common -p
  bwrap_common -p nanvix_runner --quiet: passed.
* cargo check --manifest-path .\src\Cargo.toml --workspace --all-targets
  --quiet: passed.
* cargo clippy --manifest-path .\src\Cargo.toml -p wxc_common
  --all-targets -- -D warnings: passed.
* Workspace Clippy fails on the unchanged process_container_common
  unnecessary_sort_by lint in appcontainer_runner.rs:117.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: ff6d3538-5272-492f-aba0-5f7ef9feda2f
Generated-with: gpt-6-sol
@MGudgin
Gudge (MGudgin) requested a review from a team as a code owner October 3, 2026 02:25
@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
There may be pipelines that require an authorized user to comment /azp run to run.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant