Skip to content

Retire pre-v0.9 compatibility scaffolding - #1421

Closed
Gudge (MGudgin) wants to merge 1 commit into
mainfrom
user/gudge/retire-network-foundation
Closed

Gudge (MGudgin) wants to merge 1 commit into
mainfrom
user/gudge/retire-network-foundation

Conversation

@MGudgin

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

Copy link
Copy Markdown
Member

📖 Description

This PR removes obsolete pre-v0.9 contract and runtime scaffolding now that executable requests start at 0.9.0-alpha. It retires constant default-environment and strict-network provenance, unused wire markers, and unsupported policy guides while retaining published stable schema artifacts.

Details

  • Remove one-value compatibility markers from exact adapters and shared request normalization.
  • Remove unused wire fields and retired 0.7/0.8 Markdown guides.
  • Preserve supported directional policy and immutable published schemas.

🔗 References

Follow-up to #1382 and #1383. The next PR in this stack targets this branch.

🔍 Validation

Tests

  • From src/, cargo fmt --all -- --check: passed.
  • cargo check --workspace --all-targets --all-features --quiet: passed.
  • cargo clippy --workspace --all-targets --all-features --quiet -- -D warnings: passed.
  • cargo test --workspace --quiet: passed.
  • Debian WSL, from src/, cargo check -p mxc-sdk --all-targets --quiet: passed.
  • Debian WSL, cargo test -p mxc-sdk --lib bubblewrap::common::bwrap_runner --quiet: 30 passed.
  • From the repo root, node --test scripts/versioning/tests/check-contract-codegen.test.js: 9 passed.
  • node scripts/versioning/check-contract-codegen.js --check: passed; three exact artifact sets matched.
  • Native macOS execution was not run locally on this Windows host.

✅ Checklist

📋 Issue Type

  • Bug fix
  • Feature
  • Task

GitHub Actions runs the PR validation build automatically. The ADO pipeline
(MXC-PR-Build) is the Azure version of the PR pipeline, kept in parity with the GitHub
Actions build; it runs on merge to main, and Microsoft reviewers with write access can trigger it
on a PR with /azp run. See docs/pull-requests.md.

If the dependency-feed-check check fails on a new dependency, the crate must be added to
the feed before the PR can pass. See docs/pull-requests.md
for the steps.

Microsoft Reviewers: Open in CodeFlow

Copilot AI balanced review requested due to automatic review settings October 6, 2026 21:17
@MGudgin
Gudge (MGudgin) requested a review from a team as a code owner October 6, 2026 21:17
@azure-pipelines

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

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.

Copilot review overview

🟡 Changes recommended

An unused mutable binding causes macOS test-target Clippy checks with warnings treated as errors to fail.

Review effort: Balanced
Findings: 1 High severity

Open (1)
What changed in this PR

Completes the cleanup following #1382 and #1383 by removing pre-v0.9 compatibility scaffolding while retaining published schemas.

Changes:

  • Remove constant compatibility markers and unused network wire fields.
  • Simplify backend paths and related tests.
  • Retire outdated guides and document the policy-hash projection change.
File Description
tests/​scripts/​run_lxc_network_no_network_test.sh Update contract references and failure text.
tests/​scripts/​lib/​WinProcessContainer.Common.ps1 Update documentation reference.
src/​mxc-sdk/​src/​policy.rs Remove obsolete marker assertion.
src/​mxc-sdk/​src/​core/​mxc_engine/​run.rs Simplify attribution tests.
src/​mxc-sdk/​src/​core/​mxc_common/​wire.rs Remove retired network fields and enums.
src/​mxc-sdk/​src/​core/​mxc_common/​validator.rs Replace legacy support constant with default.
src/​mxc-sdk/​src/​core/​mxc_common/​sdk_input.rs Remove obsolete normalization fields.
src/​mxc-sdk/​src/​core/​mxc_common/​script_runner.rs Use default network support.
src/​mxc-sdk/​src/​core/​mxc_common/​sandbox_process.rs Use default network support.
src/​mxc-sdk/​src/​core/​mxc_common/​policy_identity.rs Remove compatibility marker from hashes.
src/​mxc-sdk/​src/​core/​mxc_common/​network_parser.rs Simplify network test fixtures.
src/​mxc-sdk/​src/​core/​mxc_common/​network_parser_ingress_default_tests.rs Update fixtures and contract references.
src/​mxc-sdk/​src/​core/​mxc_common/​models.rs Remove compatibility types and helpers.
src/​mxc-sdk/​src/​core/​mxc_common/​default_env.rs Simplify environment test setup.
src/​mxc-sdk/​src/​core/​mxc_common/​config_parser.rs Remove compatibility propagation and assertions.
src/​mxc-sdk/​src/​core/​mxc_common/​config_contract_adapters/​v1_0/​state_aware.rs Remove obsolete adapter fields.
src/​mxc-sdk/​src/​core/​mxc_common/​config_contract_adapters/​v1_0/​state_aware_tests/​exec.rs Remove retired-field assertions.
src/​mxc-sdk/​src/​core/​mxc_common/​config_contract_adapters/​v1_0/​one_shot.rs Remove compatibility markers.
src/​mxc-sdk/​src/​core/​mxc_common/​config_contract_adapters/​v1_0/​one_shot_tests/​stable_candidate.rs Assert supported network fields.
src/​mxc-sdk/​src/​core/​mxc_common/​config_contract_adapters/​v1_0/​common.rs Simplify network conversion.
src/​mxc-sdk/​src/​core/​mxc_common/​config_contract_adapters/​v0_9/​state_aware.rs Remove obsolete adapter fields.
src/​mxc-sdk/​src/​core/​mxc_common/​config_contract_adapters/​v0_9/​state_aware_tests/​exec.rs Remove retired-field assertions.
src/​mxc-sdk/​src/​core/​mxc_common/​config_contract_adapters/​v0_9/​one_shot.rs Remove compatibility markers.
src/​mxc-sdk/​src/​core/​mxc_common/​config_contract_adapters/​v0_9/​one_shot_tests/​stable_candidate.rs Assert supported network fields.
src/​mxc-sdk/​src/​core/​mxc_common/​config_contract_adapters/​v0_9/​common.rs Simplify network conversion.
src/​mxc-sdk/​src/​core/​mxc_common/​config_contract_adapters/​dev/​state_aware.rs Remove obsolete adapter fields.
src/​mxc-sdk/​src/​core/​mxc_common/​config_contract_adapters/​dev/​state_aware_tests/​provision.rs Update empty-network assertions.
src/​mxc-sdk/​src/​core/​mxc_common/​config_contract_adapters/​dev/​state_aware_tests/​exec.rs Remove retired-field assertions.
src/​mxc-sdk/​src/​core/​mxc_common/​config_contract_adapters/​dev/​one_shot.rs Remove compatibility markers.
src/​mxc-sdk/​src/​core/​mxc_common/​config_contract_adapters/​dev/​one_shot_tests/​stable_candidate.rs Assert supported network fields.
src/​mxc-sdk/​src/​core/​mxc_common/​config_contract_adapters/​dev/​common.rs Simplify network conversion.
src/​mxc-sdk/​src/​core/​mxc_common/​common_request_ir.rs Remove compatibility metadata.
src/​mxc-sdk/​src/​configs/​process_container.rs Remove obsolete marker assertion.
src/​mxc-sdk/​src/​backends/​wslc/​common/​state_aware.rs Simplify environment test cases.
src/​mxc-sdk/​src/​backends/​wslc/​common/​process_env.rs Simplify environment fixtures.
src/​mxc-sdk/​src/​backends/​windows_sandbox/​lifecycle/​state_aware.rs Use default network support.
src/​mxc-sdk/​src/​backends/​windows_sandbox/​lifecycle/​one_shot.rs Use default network support.
src/​mxc-sdk/​src/​backends/​seatbelt/​common/​seatbelt_runner.rs Remove unreachable environment fallback.
src/​mxc-sdk/​src/​backends/​seatbelt/​common/​default_env.rs Simplify environment tests.
src/​mxc-sdk/​src/​backends/​lxc/​common/​lxc_runner.rs Remove obsolete directory-resolution branch.
src/​mxc-sdk/​src/​backends/​isolation_session/​common/​policy.rs Simplify environment validation tests.
src/​mxc-sdk/​src/​backends/​hyperlight/​common/​mod.rs Use default network support.
src/​mxc-sdk/​src/​backends/​bubblewrap/​common/​proxy_network.rs Remove test compatibility marker.
src/​mxc-sdk/​src/​backends/​bubblewrap/​common/​bwrap_runner.rs Remove unreachable host-firewall lifecycle.
src/​mxc-sdk/​src/​backends/​bubblewrap/​common/​bwrap_command.rs Remove legacy modes and compatibility gates.
sdk/​node/​README.md Link supported networking guidance.
sdk/​dotnet/​README.md Link supported networking guidance.
README.md Remove retired policy-guide link.
docs/​versioning.md Clarify supported contracts and schema retention.
docs/​telemetry/​telemetry.md Explain policy-hash projection change.
docs/​seatbelt/​seatbelt-backend.md Link supported network fields.
docs/​sandbox-policy/​0.8.0/​policy.md Delete retired policy guide.
docs/​sandbox-policy/​0.8.0/​networking/​schema-updates.md Delete retired migration guide.
docs/​sandbox-policy/​0.8.0/​networking/​networking.md Delete retired networking guide.
docs/​sandbox-policy/​0.7.0/​policy.md Delete retired policy specification.
docs/​reference/​dotnet/​v1/​types.md Correct minimum version and terminology.
docs/​process-container/​os-version-support.md Distinguish retired and supported networking.
docs/​process-container/​networking.md Link current shared schema guidance.
docs/​process-container/​guide.md Update supported-networking guidance.
docs/​process-container/​examples/​0.8.0-schema.md Replace retired documentation links.
docs/​examples.md Point examples to supported guidance.
docs/​ci-validation-infrastructure.md Update networking coverage descriptions.
docs/​authoring-a-new-feature.md Replace retired policy references.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread src/mxc-sdk/src/backends/seatbelt/common/seatbelt_runner.rs
This PR removes obsolete contract and runtime compatibility markers now that
executable requests start at 0.9.0-alpha. Published schema artifacts stay
immutable while unsupported policy guides are removed.

Details

* Remove constant default-environment and strict-network provenance.
* Prune unused wire fields and obsolete policy documentation.
* Preserve exact-contract validation and supported request semantics.

Tests

* cargo fmt --all -- --check and cargo test --workspace --quiet: passed.
* cargo check --workspace --all-targets --all-features --quiet: passed.
* cargo clippy --workspace --all-targets --all-features --quiet --
  -D warnings: passed.
* Linux Bubblewrap runner: 30 passed; schema history: 9 passed.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 7570a662-a429-46d2-aa24-47fae6655cc4
Generated-with: gpt-6-sol
@MGudgin
Gudge (MGudgin) force-pushed the user/gudge/retire-network-foundation branch from 610730a to d01cac2 Compare October 6, 2026 22:56
Copilot AI balanced review requested due to automatic review settings October 6, 2026 22:56

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.

Copilot review overview

🔵 Needs a closer look

The previously reported unused mutable binding still blocks macOS all-target Clippy validation with warnings denied.

Review effort: Balanced
Findings: None

Resolved since last review (1)

@MGudgin

Copy link
Copy Markdown
Member Author

Superseded by merged #1397, which includes the foundation cleanup in this stacked PR. Closing this alternative PR.

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.

2 participants