Skip to content

Remove Tier2 and Tier3 ProcessContainer fallbacks - #1558

Merged
Gudge (MGudgin) merged 3 commits into
mainfrom
user/gudge/remove_tier_3_support
Oct 23, 2026
Merged

Gudge (MGudgin) merged 3 commits into
mainfrom
user/gudge/remove_tier_3_support

Conversation

@MGudgin

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

Copy link
Copy Markdown
Member

This PR makes ProcessContainer execution native-PSEC-only and fails closed when the host cannot enforce the requested policy. It removes the BFS and host-DACL execution paths, guarded WPR fallback capture and their support tooling, and aligns discovery, probing, capture, diagnostics, SDK guidance and native CI validation with native-only execution.

Details

  • Route ProcessContainer execution and denial capture through native PSEC APIs; reject requests the host cannot enforce, including LPAC, before launch.
  • Remove the fallback runners, wxc_host_prep, and the WinHTTP proxy shim along with their build, signing and packaging inputs.
  • Accept and ignore fallback.allowDaclMutation in every 1.x contract so published requests still parse. The probe fields guardedCaptureAvailable, bfscfgPresent and bfsCompiledIn are always false and stay in the output for compatibility.
  • Keep the published Node V1 isolation tier values readable and keep the .NET API parity gate working without the deleted fallback detector.
  • Replace the fallback-era test scripts with native Windows PowerShell suites for network, filesystem, process, environment, privilege and UI policy, each paired with an uncontained host control, and run them from run_backend_validation_tests.ps1.
  • Update the ProcessContainer, schema, telemetry, probe and OS-support docs to describe native-only behaviour; the filesystem overlap rules move from docs/backends/process-container/filesystem.md into docs/schema.md.

References

Fixes #1582.

Tests

  • cargo fmt --all -- --check and cargo clippy --workspace --all-targets --features mxc-sdk/schema-gen -- -D warnings (from src): passed.
  • cargo test -p mxc-sdk --lib --features schema-gen: 2709 passed, 4 ignored.
  • Contract suites mxc_contract_v0_9_0_alpha, mxc_contract_v1_0_0, mxc_contract_v1_1_0_alpha and mxc_contract_version_boundaries: 278, 279, 373 and 21 passed. cargo test -p wxc: 70 passed.
  • node scripts\versioning\check-contract-codegen.js --base-ref origin/main: passed; regenerating the 1.1.0-alpha dev schema and wire.ts produced no changes. validate-configs.js and check-dotnet-api-parity.js: passed.
  • Node SDK test:unit files: 475 tests, 454 passed, 21 skipped, 0 failed.
  • Native ProcessContainer gate (run_backend_validation_tests.ps1 -Backend process -Architecture x64): passed. On this host the privileged-token removal check and the clipboard checks skip.
  • The validation scripts, Node tests and native gate ran before test: scope host loopback coverage to direct connections test: fix ARM64 #1553 landed; test: scope host loopback coverage to direct connections test: fix ARM64 #1553 changes only one Rust test file.
Microsoft Reviewers: Open in CodeFlow

@MGudgin
Gudge (MGudgin) requested review from a team and a balanced review from Copilot October 21, 2026 22:29
@MGudgin
Gudge (MGudgin) requested a review from a team as a code owner October 21, 2026 22:29
@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.

🟡 Changes recommended

The published V1 execution compatibility break and IsolationSession command-quoting regression remain unresolved.

2 open issues
What changed in this PR

Makes Windows ProcessContainer execution native-PSEC-only, removing Tier2/Tier3 fallbacks and rejecting requests the host cannot enforce. Updates discovery, capture, SDK guidance, testing, and build infrastructure accordingly.

Changes:

  • Replace fallback execution and guarded capture with native PSEC paths.
  • Remove BFS/DACL tooling, host preparation, proxy shim, and associated packaging inputs.
  • Retain legacy contract fields and historical result readers while updating validation and documentation.

Unresolved issues:

  • P0 — Published V1 execution compatibility (src/mxc-sdk/src/core/mxc_engine/dispatch.rs:277): Existing Rust, Node, and .NET V1 callers lose execution on hosts without PSEC, including guarded-capture paths. Preserve published V1 behavior and introduce native-only requirements through a new versioned SDK surface.
  • P2 — IsolationSession command quoting (tests/scripts/lib/LoopbackAnchor.ps1:88): The quoted curl command becomes malformed through the existing cmd.exe /c wrapper, breaking both loopback-positive tests before connection. Use quoting compatible with direct execution and the shell wrapper.
File Description
tests/​scripts/​run_processcontainer_network_model3_test.ps1 Remove legacy network-equivalence tests.
tests/​scripts/​run_processcontainer_network_capability_test.ps1 Remove fallback capability tests.
tests/​scripts/​run_processcontainer_dacl_disabled_test.ps1 Remove DACL-fallback refusal tests.
tests/​scripts/​run_processcontainer_crash_recovery_test.ps1 Remove DACL recovery tests.
tests/​scripts/​run_on_repeat.ps1 Drop retired test runners.
tests/​scripts/​run_lpacac_test.ps1 Remove LPAC execution runner.
tests/​scripts/​run_isolation_session_tests.ps1 Update probe diagnostic comments.
tests/​scripts/​run_filesystem_bfsreadonly_test.ps1 Remove BFS read-only runner.
tests/​scripts/​run_filesystem_bfs_test.ps1 Remove BFS filesystem runner.
tests/​scripts/​run_filesystem_bfs_spaces_test.ps1 Remove BFS path-quoting runner.
tests/​scripts/​run_dacl_tests.ps1 Remove DACL test runner.
tests/​scripts/​lib/​WinProcessContainer.Native.ps1 Remove old native test helpers.
tests/​scripts/​lib/​NativeProcessContainer.ps1 Add shared native executor helper.
tests/​scripts/​lib/​LoopbackAnchor.ps1 Extend listeners and curl options; quoting requires correction.
tests/​regression_tests/​TestCases.psd1 Retarget regression catalog to native PSEC.
tests/​regression_tests/​test_cases/​Invoke-Issue902-RelativeWorkingDirectory.ps1 Remove fallback consent setting.
tests/​regression_tests/​test_cases/​Invoke-Issue825-PowerShellProviderLocation.ps1 Remove fallback consent setting.
tests/​regression_tests/​test_cases/​Invoke-Issue785-ProbeCaptureDenials.ps1 Move capture testing off LPAC and fallback settings.
tests/​regression_tests/​test_cases/​Invoke-Issue694-GetFinalPathNameByHandle.ps1 Remove DACL-specific regression runner.
tests/​regression_tests/​test_cases/​Invoke-Issue648-DESTRUCTIVE-HostPrepDescendantAcl.ps1 Remove host-preparation regression runner.
tests/​regression_tests/​test_cases/​Invoke-Issue636-EdgeStartup.ps1 Remove fallback consent setting.
tests/​regression_tests/​test_cases/​Invoke-Issue483-BunAndSparsePath.ps1 Remove fallback consent setting.
tests/​regression_tests/​test_cases/​Invoke-Issue473-PackagedApp.ps1 Remove fallback consent setting.
tests/​regression_tests/​test_cases/​Invoke-Issue1246-Tier1ClipboardRestrictions.ps1 Remove fallback consent setting.
tests/​regression_tests/​test_cases/​Invoke-Issue1162-ProcessContainerFsEnumerate.ps1 Remove fallback consent setting.
tests/​regression_tests/​test_cases/​Invoke-Issue1130-PsecSparseEnvironment.ps1 Update renamed test’s purpose comment.
tests/​regression_tests/​test_cases/​Invoke-Issue1102-DefaultPath.ps1 Remove fallback consent setting.
tests/​regression_tests/​test_cases/​Invoke-Issue1061-MsysBaseNamedObjects.ps1 Remove fallback consent setting.
tests/​regression_tests/​test_cases/​data/​Issue694-GetFinalPathNameByHandle.go Remove retired regression probe.
tests/​regression_tests/​Run-RegressionTests.ps1 Remove destructive-test arguments.
tests/​regression_tests/​README.md Document native-only regression prerequisites.
tests/​regression_tests/​inc/​Run-RegressionTests.Lib.ps1 Retire destructive harness support and unsupported modes.
tests/​configs/​processcontainer_filesystem_test.json Add native filesystem configuration.
tests/​configs/​processcontainer_filesystem_spaces_test.json Update test container identifier.
tests/​configs/​processcontainer_filesystem_readonly_test.json Add native read-only configuration.
tests/​configs/​processcontainer_basic_lpac.json Remove unsupported LPAC configuration.
tests/​configs/​filesystem_bfs_test.json Remove BFS filesystem configuration.
tests/​configs/​filesystem_bfs_readonly_test.json Remove BFS read-only configuration.
src/​tools/​wxc/​Cargo.toml Remove fallback feature forwarding.
src/​mxc-sdk/​tests/​wxc_e2e_tests_e2e_processcontainer_characterization.rs Adopt PSEC-capable-host opt-in.
src/​mxc-sdk/​tests/​support/​wxc_e2e_tests.rs Rename ProcessContainer host opt-in.
src/​mxc-sdk/​tests/​streaming_processcontainer.rs Update native-host prerequisites.
src/​mxc-sdk/​tests/​sdk_helpers.rs Test capability-dependent Windows discovery.
src/​mxc-sdk/​tests/​sandbox.rs Update native-host test guidance.
src/​mxc-sdk/​tests/​mxc_contract/​v1_1_0_alpha/​fixtures/​one_shot/​invalid/​later_capability_with_comma.json Add malformed-capability fixture.
src/​mxc-sdk/​tests/​mxc_contract/​v1_1_0_alpha/​fixtures/​one_shot/​invalid/​later_capability_reserved.json Add reserved-capability fixture.
src/​mxc-sdk/​tests/​mxc_contract/​v1_1_0_alpha/​fixtures.rs Add request and fallback compatibility assertions.
src/​mxc-sdk/​tests/​mxc_contract/​v1_0_0/​fixtures/​one_shot/​invalid/​later_capability_with_comma.json Add malformed-capability fixture.
src/​mxc-sdk/​tests/​mxc_contract/​v1_0_0/​fixtures/​one_shot/​invalid/​later_capability_reserved.json Add reserved-capability fixture.
src/​mxc-sdk/​tests/​mxc_contract/​v0_9_0_alpha/​fixtures/​one_shot/​invalid/​later_capability_with_comma.json Add malformed-capability fixture.
src/​mxc-sdk/​tests/​mxc_contract/​v0_9_0_alpha/​fixtures/​one_shot/​invalid/​later_capability_reserved.json Add reserved-capability fixture.
src/​mxc-sdk/​tests/​mxc_common_proxy_address_spec.rs Update implementation references in comments.
src/​mxc-sdk/​src/​policy.rs Update containment documentation.
src/​mxc-sdk/​src/​lib.rs Update backend overview.
src/​mxc-sdk/​src/​core/​plm/​elevated.rs Update cancellation documentation.
src/​mxc-sdk/​src/​core/​mxc_engine/​request_probe.rs Remove guarded-capture probe input.
src/​mxc-sdk/​src/​core/​mxc_engine/​platform.rs Make Windows support capability-dependent.
src/​mxc-sdk/​src/​core/​mxc_engine/​mod.rs Remove guarded-capture exports.
src/​mxc-sdk/​src/​core/​mxc_engine/​dispatch.rs Use native dispatch; published V1 behavior requires preservation.
src/​mxc-sdk/​src/​core/​mxc_contract/​dev/​stable.rs Document ignored fallback settings.
src/​mxc-sdk/​src/​core/​mxc_contract/​dev/​one_shot.rs Document legacy fallback acceptance.
src/​mxc-sdk/​src/​core/​mxc_common/​wire.rs Remove internal fallback representation.
src/​mxc-sdk/​src/​core/​mxc_common/​ui_policy.rs Extend independent UI-policy mapping tests.
src/​mxc-sdk/​src/​core/​mxc_common/​test_env.rs Remove DACL-state test helper.
src/​mxc-sdk/​src/​core/​mxc_common/​telemetry/​consent.rs Remove obsolete documentation link.
src/​mxc-sdk/​src/​core/​mxc_common/​state_aware_input.rs Remove internal fallback check.
src/​mxc-sdk/​src/​core/​mxc_common/​sdk_input.rs Remove fallback initialization.
src/​mxc-sdk/​src/​core/​mxc_common/​process_util.rs Remove BFS-specific documentation references.
src/​mxc-sdk/​src/​core/​mxc_common/​models.rs Remove runtime fallback policy.
src/​mxc-sdk/​src/​core/​mxc_common/​mod.rs Switch to filesystem-security helpers.
src/​mxc-sdk/​src/​core/​mxc_common/​error.rs Remove fallback errors and update remedies.
src/​mxc-sdk/​src/​core/​mxc_common/​config_parser.rs Remove fallback normalization and extend validation tests.
src/​mxc-sdk/​src/​core/​mxc_common/​config_contract_adapters/​v1_0/​state_aware.rs Remove fallback initialization.
src/​mxc-sdk/​src/​core/​mxc_common/​config_contract_adapters/​v1_0/​state_aware_tests/​common.rs Update internal-field assertions.
src/​mxc-sdk/​src/​core/​mxc_common/​config_contract_adapters/​v1_0/​one_shot.rs Accept but discard fallback settings.
src/​mxc-sdk/​src/​core/​mxc_common/​config_contract_adapters/​v1_0/​one_shot_tests/​stable_candidate.rs Remove fallback-mapping assertions.
src/​mxc-sdk/​src/​core/​mxc_common/​config_contract_adapters/​v0_9/​state_aware.rs Remove fallback initialization.
src/​mxc-sdk/​src/​core/​mxc_common/​config_contract_adapters/​v0_9/​state_aware_tests/​common.rs Update internal-field assertions.
src/​mxc-sdk/​src/​core/​mxc_common/​config_contract_adapters/​v0_9/​one_shot.rs Accept but discard fallback settings.
src/​mxc-sdk/​src/​core/​mxc_common/​config_contract_adapters/​v0_9/​one_shot_tests/​stable_candidate.rs Remove fallback-mapping assertions.
src/​mxc-sdk/​src/​core/​mxc_common/​config_contract_adapters/​dev/​state_aware.rs Remove fallback initialization.
src/​mxc-sdk/​src/​core/​mxc_common/​config_contract_adapters/​dev/​state_aware_tests/​common.rs Update internal-field assertions.
src/​mxc-sdk/​src/​core/​mxc_common/​config_contract_adapters/​dev/​one_shot.rs Accept but discard fallback settings.
src/​mxc-sdk/​src/​core/​mxc_common/​config_contract_adapters/​dev/​one_shot_tests/​stable_candidate.rs Update fallback compatibility expectations.
src/​mxc-sdk/​src/​core/​mxc_common/​common_request_ir.rs Remove internal fallback field.
src/​mxc-sdk/​src/​backends/​wslc/​common/​daemon_record.rs Update filesystem-security references.
src/​mxc-sdk/​src/​backends/​windows_sandbox/​lifecycle/​control_plane/​os.rs Update filesystem-security references.
src/​mxc-sdk/​src/​backends/​windows_sandbox/​common/​auth.rs Update security-helper test references.
src/​mxc-sdk/​src/​backends/​process_container/​common/​working_directory.rs Update native-runner documentation.
src/​mxc-sdk/​src/​backends/​process_container/​common/​sandbox_tracking.rs Remove BFS cleanup dependency.
src/​mxc-sdk/​src/​backends/​process_container/​common/​mod.rs Remove fallback module declarations.
src/​mxc-sdk/​src/​backends/​process_container/​common/​launch_diagnostics.rs Replace fallback guidance with PSEC requirements.
src/​mxc-sdk/​src/​backends/​process_container/​common/​job_object.rs Update capture-cleanup documentation.
src/​mxc-sdk/​README.md Document native discovery and probing.
src/​mxc-sdk/​Cargo.toml Remove fallback feature flags.
src/​host/​wxc_winhttp_proxy_shim/​src/​main.rs Remove elevated proxy shim.
src/​host/​wxc_winhttp_proxy_shim/​src/​bindings.rs Remove shim API bindings.
src/​host/​wxc_winhttp_proxy_shim/​README.md Remove retired shim documentation.
src/​host/​wxc_winhttp_proxy_shim/​Cargo.toml Remove shim package definition.
src/​host/​wxc_winhttp_proxy_shim/​build.rs Remove shim build script.
src/​host/​wxc_host_prep/​src/​null_device/​tests.rs Remove null-device preparation tests.
src/​host/​wxc_host_prep/​src/​null_device/​sddl.rs Remove preparation security descriptor.
src/​host/​wxc_host_prep/​src/​null_device/​privileges.rs Remove preparation privilege helper.
src/​host/​wxc_host_prep/​src/​null_device/​device.rs Remove null-device preparation access.
src/​host/​wxc_host_prep/​src/​main.rs Remove host-preparation executable.
src/​host/​wxc_host_prep/​src/​log.rs Remove preparation logging.
src/​host/​wxc_host_prep/​src/​elevation_check.rs Remove preparation elevation check.
src/​host/​wxc_host_prep/​src/​cli.rs Remove host-preparation commands.
src/​host/​wxc_host_prep/​Cargo.toml Remove host-preparation package.
src/​host/​wxc_host_prep/​build.rs Remove host-preparation build script.
src/​ffi/​mxc_ffi/​tests/​ffi.rs Update native-host test guidance.
src/​ffi/​mxc_ffi/​src/​streaming.rs Update streaming-test prerequisites.
src/​Cargo.toml Remove retired workspace members.
src/​Cargo.lock Remove retired package dependencies.
sdk/​node/​tests/​unit/​sandbox.test.ts Add controlled discovery and executor tests.
sdk/​node/​tests/​unit/​probe.test.ts Test native and historical probe results.
sdk/​node/​tests/​integration/​test-helpers.ts Remove retired binary expectations.
sdk/​node/​src/​v1/​types.ts Clarify native and compatibility results.
sdk/​node/​src/​v1/​probe.ts Clarify request-probe limitations.
sdk/​node/​src/​helper.ts Probe explicitly selected Windows executors.
sdk/​node/​src/​generated/​v1_1_0_alpha/​wire.ts Update generated fallback documentation.
sdk/​node/​README.md Document native discovery and compatibility.
sdk/​dotnet/​README.md Document native discovery and probing.
sdk/​dotnet/​Microsoft.Mxc.Sdk.Tests/​MxcProcessTests.cs Rename execution-test opt-in switch.
scripts/​versioning/​tests/​check-dotnet-api-parity.test.js Add API-parity gate regression tests.
scripts/​ci/​prepare-windows-host.ps1 Remove legacy host preparation.
scripts/​check-dotnet-api-parity.js Replace deleted tier-detector dependency.
schemas/​dev/​mxc-config.schema.1.1.0-alpha.json Update generated compatibility descriptions.
docs/​development/​guides/​process-container-adding-os-features.md Document native-only feature integration.
docs/​development/​guides/​diagnostics.md Separate native capture from standalone WPR recovery.
docs/​development/​architecture/​versioning.md Document native negotiation and compatibility.
docs/​development/​architecture/​repository-architecture.md Remove host-preparation architecture references.
docs/​development/​architecture/​backends/​isolation-session/​state-aware-rust.md Remove obsolete fallback-policy discussion.
docs/​development/​architecture/​backends/​isolation-session/​oneshot.md Remove obsolete fallback-policy row.
docs/​containment-policy/​dev/​policy.md Document ignored fallback settings.
docs/​containment-policy/​1.0.0/​policy.md Document native-only fallback behavior.
docs/​containment-policy/​0.9.0/​policy.md Document native-only fallback behavior.
docs/​backends/​process-container/​os-version-support.md Document native capture rejection behavior.
docs/​api-reference/​rust/​v1/​types.md Clarify incompatible-request probe results.
docs/​api-reference/​rust/​v1/​api.md Document native discovery requirements.
docs/​api-reference/​node/​v1/​types.md Document compatibility tiers and probe results.
docs/​api-reference/​node/​v1/​api.md Clarify discovery and probe limitations.
docs/​api-reference/​dotnet/​v1/​types.md Clarify incompatible-request probe results.
docs/​api-reference/​dotnet/​v1/​api.md Document native discovery requirements.
build.bat Stop staging retired helpers.
.github/​workflows/​SDK.Dotnet.Test.Job.yml Update execution-test opt-in comments.
.github/​workflows/​Build.Windows.Job.yml Remove retired helper artifacts.
.azure-pipelines/​templates/​Rust.Build.Steps.Official.yml Update production-feature comment.
.azure-pipelines/​templates/​Rust.Build.Job.yml Remove retired helper signing inputs.

Review effort: Balanced

Comment thread tests/scripts/lib/LoopbackAnchor.ps1 Resolved
Copilot AI balanced review requested due to automatic review settings October 22, 2026 00:24
@MGudgin
Gudge (MGudgin) force-pushed the user/gudge/remove_tier_3_support branch from 468e200 to 9a09040 Compare October 22, 2026 00:24

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.

🔵 Needs a closer look

Published V1 execution compatibility is broken, and command quoting prevents existing IsolationSession loopback tests from connecting.

2 open issues

Review effort: Balanced

Copilot AI balanced review requested due to automatic review settings October 22, 2026 00:48
@MGudgin
Gudge (MGudgin) force-pushed the user/gudge/remove_tier_3_support branch from 9a09040 to 20cb6c9 Compare October 22, 2026 00:48

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

V1 execution compatibility, SDK streaming CI coverage, IsolationSession command quoting, and bounded output draining remain unresolved.

3 open issues

Review effort: Balanced

Copilot AI balanced review requested due to automatic review settings October 22, 2026 17:39
@MGudgin
Gudge (MGudgin) force-pushed the user/gudge/remove_tier_3_support branch from 20cb6c9 to 8af843f Compare October 22, 2026 17:39

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.

🔵 Needs a closer look

The security-sensitive execution and capture changes require final human review; Windows/PSEC validation was not independently rerun.

No open issues 🎉

3 resolved since last review

Review effort: Balanced

Gudge and others added 2 commits October 22, 2026 11:06
This PR makes ProcessContainer execution native-PSEC-only and fails closed
when the host cannot enforce the requested policy. It removes the BFS and
host-DACL execution paths, guarded WPR fallback capture and their support
tooling, and aligns discovery, probing, capture, diagnostics, SDK guidance
and native CI validation with native-only execution.

Details

* Route ProcessContainer execution and denial capture through native PSEC
  APIs; reject requests the host cannot enforce before launch.
* Remove the fallback runners, wxc_host_prep, and the retired WinHTTP proxy
  shim along with their build, signing and packaging inputs.
* Accept and ignore fallback.allowDaclMutation in every 1.x contract so
  published requests still parse.
* Keep historical Node V1 isolation tier values readable and keep the .NET
  API parity gate working without the deleted fallback detector.
* Replace the fallback-era test scripts with native Windows PowerShell
  suites for network, filesystem, process, environment, privilege and UI
  policy, each paired with an uncontained host control, and run them from
  run_backend_validation_tests.ps1.
* Match .NET backend discovery tests to native PSEC availability and check
  ACL test pointers before dereferencing them.

Tests

* From src: cargo fmt --all -- --check and cargo clippy --workspace
  --all-targets --features schema-gen -- -D warnings passed.
* cargo test --workspace --features schema-gen, skipping the known
  runtime_proxy_preserves_allowed_host_to_container_loopback timeout: main
  library 2658 passed, 4 ignored; contract suites 278 (0.9), 279 (1.0),
  371 (1.1) and 21 (version boundaries) passed.
* node scripts\versioning\check-contract-codegen.js --base-ref 706c1b9
  passed.
* Node SDK unit tests: 475 tests, 453 passed, 22 skipped, 0 failed.
* Native ProcessContainer gate (run_backend_validation_tests.ps1 -Backend
  process): 23 network and 42 policy checks passed in three consecutive
  runs with Python and Node absent from PATH.
* dotnet build Microsoft.Mxc.Sdk.slnx --no-restore -m:1 and
  dotnet test --solution Microsoft.Mxc.Sdk.slnx --no-build passed:
  323 passed, 31 host-gated skips, 0 failed.
* cargo test -p mxc-sdk --lib filesystem_security passed all 3 tests;
  cargo clippy -p mxc-sdk --lib --tests -- -D warnings passed.

Co-authored-by: Copilot <[email protected]>
Copilot-Session: a42d1f37-66c4-4467-bd63-99dc6997218a
Generated-with: gpt-6-sol
Copilot-Session: 5fa7239a-f402-4254-84f3-3f51d813e8bf
Generated-with: gpt-6.1-sol
Copilot-Session: ce647283-a4dd-44d4-995a-3e0ac8f5d574
Generated-with: claude-opus-5.5
Copilot-Session: 7a356c9c-8a05-4876-bdfc-db4df054c68b
Generated-with: gpt-6.1-sol
This PR fixes shared Windows validation commands and output capture,
restores focused native loopback and enumeration tests, and wires public
SDK streaming into prepared-host scheduled validation. It also describes
SDK probe results without coupling them to the executor CLI.

Details

* Preserve curl quoting across direct and shell-wrapped launches, including
  extra arguments, and bound output draining and process cleanup.
* Reuse focused native runners from the aggregate suites; check enumeration
  request-probe agreement, enforcement, and unchanged fixture security.
* Package prebuilt Rust, .NET, and Node streaming tests in the shared Windows
  SDK bundle and reject missing, empty, or skipped required-test selections.
* Preserve main's helper staging and align its regression with the renamed
  builder; update canonical validation and SDK documentation.

Tests

* Eight quoting, two output-capture, fourteen suite-result, and eleven bundle
  helper assertions passed.
* The retained-output regression fails promptly while normal capture keeps
  stdout, stderr, logs, and nonzero exit codes intact.
* PowerShell parsing, aggregate wiring, owned-fixture security control, and
  git diff --check passed.
* Earlier follow-up checks built and discovered the release Rust payload,
  compiled the Node SDK and packed integration tests, checked workflow
  artifact wiring, and rejected real skipped .NET and Node reports.
* Live focused PSEC runs, full scheduled-bundle execution, and ARM64 runtime
  validation were not run locally.

Co-authored-by: Copilot <[email protected]>
Copilot-Session: 7a356c9c-8a05-4876-bdfc-db4df054c68b
Generated-with: gpt-6.1-sol
Copilot AI balanced review requested due to automatic review settings October 22, 2026 18:12
@MGudgin
Gudge (MGudgin) force-pushed the user/gudge/remove_tier_3_support branch from 8af843f to 010ffe8 Compare October 22, 2026 18:12

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.

🔵 Needs a closer look

The broad, security-sensitive execution and fallback-removal changes require final human review and approval.

No open issues 🎉

Review effort: Balanced

This PR restores native ProcessContainer coverage for final-path APIs, UI
policy, and CLI request boundaries. It also restores manual application
workloads with isolated Git fixtures and preserves the invoking PowerShell
session's environment.

Details

* Restore issue #694's DOS/NT final-path regression and stage its prebuilt
  fixture in the Windows SDK validation bundle.
* Expand the native UI matrix with permissive contained controls, safe
  display validation, and explicit inconclusive results.
* Exercise capabilities, capture paths, lifecycle and telemetry options,
  and supported/unsupported contracts through the native CLI.
* Restore 19 manual-only pwsh, Git, Node, and Python workloads with owned
  configuration files and child-only Git environment overrides.
* Add result-oracle and caller-environment regressions, and document the
  restored coverage and its execution paths.

Tests

* User-run native validation: 54 policy cases and 45 CLI contract cases
  passed; enumeration and issue #694 passed. Some UI operations remained
  inconclusive or skipped, including permissive clipboard/settings/desktop
  controls; privileged-token removal also skipped on this host.
* User-run native workloads: 19 passed, 0 skipped. Subsequent child-only Git
  setup passed host regressions for absent, empty, existing, and failure
  environment states, plus all three Git command/isolation checks.
* From src/: cargo build -p wxc_ui_probe -p wxc,
  cargo fmt --all -- --check, and
  cargo clippy -p wxc_ui_probe --all-targets -- -D warnings passed.
* Eight real CLI pre-execution refusal checks, final-path host controls,
  PowerShell/YAML parsing, existing native harness checks, and all 11
  bundle-helper staging assertions passed.
* Full SDK bundle construction and ARM64 runtime were not run locally.

Co-authored-by: Copilot <[email protected]>
Copilot-Session: 7a356c9c-8a05-4876-bdfc-db4df054c68b
Generated-with: gpt-6.1-sol
Copilot AI balanced review requested due to automatic review settings October 22, 2026 21:42

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.

🔵 Needs a closer look

Security-sensitive execution, capture, and compatibility changes require final human review; Windows/PSEC validation was not rerun during review.

No open issues 🎉

Review effort: Balanced

@MGudgin
Gudge (MGudgin) merged commit 51a4f10 into main Oct 23, 2026
31 checks passed
@MGudgin
Gudge (MGudgin) deleted the user/gudge/remove_tier_3_support branch October 23, 2026 04:02
adpa-ms pushed a commit that referenced this pull request Oct 23, 2026
The Windows jobs uploaded the whole runner.temp folder, minus bulk
binaries, as their logs artifact. The runner and the job's actions use
that folder too, so the artifact also carried the runner's command
files, the event payload, the step scripts, and the credentials file
actions/checkout writes for the job's token.

The dispatcher now points TEMP and TMP at runner.temp/mxc-test-temp,
and the upload takes that folder and mxc-ci.log. Test logs are still
collected without naming each file; they now sit under mxc-test-temp/
in the artifact.

The dispatcher's comment drops its scratch-root guards sentence: the
suites with those guards were removed in #1217 and #1558.

Co-authored-by: Copilot <[email protected]>
Copilot-Session: d9b7b96e-a872-4113-9cac-4afa39b56956
adpa-ms pushed a commit that referenced this pull request Oct 23, 2026
The Windows jobs uploaded the whole runner.temp folder, minus bulk
binaries, as their logs artifact. The runner and the job's actions use
that folder too, so the artifact also carried the runner's command
files, the event payload, the step scripts, and the credentials file
actions/checkout writes for the job's token.

The run step now passes runner.temp/mxc-test-temp to the dispatcher as
-TempDirectory, the way the Windows SDK bundle job passes its output
directory, and the dispatcher points TEMP and TMP at that folder's full
path. The upload takes that folder and mxc-ci.log. Test logs are still
collected without naming each file; they now sit under mxc-test-temp/
in the artifact.

The dispatcher's comment drops its scratch-root guards sentence: the
suites with those guards were removed in #1217 and #1558.

Co-authored-by: Copilot <[email protected]>
Copilot-Session: d9b7b96e-a872-4113-9cac-4afa39b56956
Daniel Han (danielhanchen) added a commit to unslothai/unsloth that referenced this pull request Nov 25, 2026
…y once per stage (#19409)

On Windows a sandboxed tool call took about 210 ms on Server 2025 (DACL
tier) and about 370 ms on Windows 11 ARM64 (native tier). On the same
runners `wxc-exec` alone ran Studio's own policy in 45 ms and 102 to 124
ms. The profile shows the 9.5 MB `wxc-exec.exe` was SHA-256 hashed five
times per call. On ARM64 two of those hashes alone took 34 ms. The
policy was also serialized four times per call.

## What changes

- **One digest per launch, taken under the guard**
(`mxc_runtime._acquire`).
- The runtime used to be validated before and after the deny-write
handle was opened. The handle denies write, rename and delete for the
whole lease, so a single digest taken after it opens covers the bytes
`wxc-exec` will run.
- The host and architecture gates run before any artifact is opened, as
the selectors did, and a reparse-point executable is refused before the
open.
- The verified path must equal the path resolved before the guard
opened, so a path redirected while the guard opens is refused.
- **Installation identity cached by file identity, for the per-call
fingerprints only** (`mxc_runtime.installation_identity`).
- Capability fingerprints read this three times per call. The cache key
is the path, architecture and approved size and digest. A hit also needs
the same device, inode, size, mtime, creation time (birth time, or
`st_ctime` on older Windows Pythons) and link count. Any change, or a
new pin, forces a full rehash, and a failed rehash drops the old
verdict.
- This identity never authorizes a launch: `acquire_runtime` still
verifies the bytes.
- Status, setup planning, repair and host preparation call the new
`verified_installation_identity`, which always rehashes. A failed full
verification also drops the cached identity.
- `install_mxc_prebuilt` drops the cache after a swap, and so does the
backend refresh that runs after setup and on Settings refresh.
- **Policy serialized once per stage**
(`mxc_policy.policy_hash_of_bytes`, `mxc_adapter.spawn`). Building the
request serialized the config for its bytes and again for its hash, and
dispatch did both again. Each stage now hashes the bytes it just
produced. Dispatch still compares both the bytes and the digest, and
sends exactly the verified bytes.
- **No read-grant lease when the DACL fallback is off**
(`mxc_read_grants.hold_before_build`, `hold_for_request`). Each launch
and probe took the record lock, created and deleted a lease file, and
ran a deferred-revoke check, even on the native tier.
- With the fallback off the request carries `allowDaclMutation: false`,
so `wxc-exec` cannot pick the AppContainer + DACL tier.
- That tier is the only one that skips its own grant where a recorded
ACE already covers a path. It was the reason #12215 leased every launch.
- A request built with DACL allowed is still leased before spawn, with
fresh switches, even if the switch turned on after the first check.
- The lease is tried once: a best-effort lease that already failed is
not retried, so a contended record lock is never waited on twice.
- The rules for when a failed lease refuses the launch are unchanged
from `main`.
  - **Please look at this one closely.** It narrows a rule from #12215.
- **Each exact runtime read root checked once**
(`mxc_policy._runtime_read_roots`). On Windows
`site.getsitepackages()[0]` equals `sys.prefix`, so that root was
canonicalized twice. Only an exact repeat is skipped; any other
spelling, including a case variant, still gets its own checks.

Unchanged:
- The workload, workdir and alias identity checks.
- Both workdir scans.
- The fresh DACL consent check.
- The rule against an uncertain host replay.

## Measurements

| What | Base | Head |
|---|---|---|
| `acquire_runtime` on a GitHub x64 runner | 17 ms (two digests) | one
digest |
| Build plus spawn per launch, real path with Windows faked on Linux |
11.4 ms | about 5.5 ms |
| Digests per warm launch | 5 | 1 |

End to end on staging CI, `tool_loop_bench.py` times the real
`execute_tool` in `required` mode. Base is `main`. Head is this branch
together with #19408 (settings, scan memo, shim bytecode) and #19410
(macOS only). Warm medians are in ms, with no chat session.

| Runner | Tier | Python | Terminal | `grep` over 2,000 files |
|---|---|---|---|---|
| windows-11-arm (Win11 ARM64) | native BaseContainer | 369 -> 244 | 376
-> 190 | 393 -> 211 |
| windows-11-vs2026-arm (Win11 ARM64) | native BaseContainer | 350 ->
231 | 346 -> 177 | 357 -> 192 |
| windows-2025 (Server 2025) | AppContainer + DACL | 237 -> 148 | 252 ->
121 | 264 -> 130 |
| windows-2025-vs2026 (Server 2025) | AppContainer + DACL | 270 -> 184 |
278 -> 148 | 286 -> 157 |
| windows-latest (Server 2025) | AppContainer + DACL | 257 -> 174 | 293
-> 138 | 300 -> 149 |

- Every row ran on `mxc-processcontainer`.
- The DACL-tier runners hit the job time limit after two or three
rounds, so those rows are the median over the finished rounds.
- The bare `wxc-exec` floor is about 102 to 136 ms on the native tier
and 38 to 56 ms on the DACL tier (see below), so Studio's own share of a
native-tier Python call went from about 240 ms to about 120 ms.
- A chat session still adds a lot on Windows: about 100 to 120 ms on the
native tier and about 430 to 700 ms on the DACL tier. That cost is
outside these changes and is the next thing to profile.
- The mid-turn settings checks (scan folder added, output limit lowered,
full-access upgrade, Sandbox High, Low, High) gave identical rows on
base and head on both ARM64 runners.

## Tests

- **`test_mxc_launch_repeats.py`:** serialization counts, the lease when
DACL is off and on, a switch turned on mid-launch, a failed lease tried
once, exact-repeat root dedupe, and a wrong hash still refused.
- **`test_mxc_runtime_integrity.py` additions:**
  - one digest, taken after the guard opens;
- the identity cache rehashes on file change and on a new pin, and drops
a verdict that fails to verify;
  - status and repair verify the bytes even with a cached identity;
  - an unsupported host is refused before any artifact is opened;
  - a path redirected while the guard opens is refused;
  - a corrupt runtime still fails the lease after a cached identity.
- **Removed case:**
`test_a_launch_holds_the_read_grants_until_its_last_cleanup` asserted
the old always-lease behaviour with DACL off. That one case is dropped.
- **Suite comparison:** the MXC, sandbox settings, setup and install
suites show the same failing test IDs on base and head.


## MXC versions

All numbers are bare `wxc-exec` (no Studio) running the same
ProcessContainer profile Studio builds, as warm medians in ms on GitHub
runners.
- `cmd` runs `cmd /d /c echo 1`.
- `python` runs `python -S -c "print(1)"` with the Python install
granted read-only.
- 0.8.0 and 0.9.0 ran today's `0.8.0-alpha` config. 1.0.1 and 1.1.0
refuse that config and ran the schema `1.0.0` form. That form only
changes the network fields: `network.egress.default = "allow"` and
`network.ingress = {"default": "allow", "hostLoopback": "deny"}`. With
those values it still blocks host loopback and allows internet egress,
like 0.8.0 does today.

| Runner | Tier | Workload | 0.8.0 (pinned) | 0.9.0 | 1.0.1 | 1.1.0 |
|---|---|---|---|---|---|---|
| windows-11-arm (Win11 26200, ARM64) | native BaseContainer | cmd | 127
| 103 | 102 | 103 |
| windows-11-arm | native BaseContainer | python | 135 | 111 | 110 | 110
|
| windows-11-vs2026-arm (Win11 26200, ARM64) | native BaseContainer |
cmd | 136 | 111 | 110 | 108 |
| windows-11-vs2026-arm | native BaseContainer | python | 143 | 121 |
118 | 118 |
| windows-2025-vs2026 (Server 2025, x64) | AppContainer + DACL | cmd |
44 | 40 | 38 | refused |
| windows-2025 (Server 2025, x64) | AppContainer + DACL | cmd | 56 | 52
| 50 | refused |
| windows-2022 (Server 2022, x64) | AppContainer + DACL | cmd | 39 | 43
| 38 | refused |
| Server 2025 / 2022 | AppContainer + DACL | python | 14 to 27 s | 14 to
27 s | 14 to 27 s | refused |

| `wxc-exec --probe` | 0.8.0 | 0.9.0 | 1.0.1 | 1.1.0 |
|---|---|---|---|---|
| Win11 ARM64 | 65 to 69 ms, base-container | 42 to 45 ms,
base-container | 40 to 43 ms, base-container | 43 ms, base-container |
| Server 2025 | 18 to 19 ms, appcontainer-dacl | 18 to 20 ms,
appcontainer-dacl | 18 to 20 ms, appcontainer-dacl | 18 to 20 ms, no
tier |

What this means:
- On the native tier, 0.9.0 and later are about 20 ms faster per call
than the pinned 0.8.0. 1.0.1 and 1.1.0 match 0.9.0.
- 1.1.0 removed the AppContainer + DACL tier (microsoft/mxc#1558). It
refuses every config on Server 2025 and Server 2022 with exit -1,
`backend_unavailable`. Its probe still exits 0 but reports no tier.
- 1.0.1 is the newest release that still runs the DACL tier, and it does
so with the schema `1.0.0` config.
- The multi-second DACL `python` rows show why #12121's persistent read
grants exist. Without them the DACL tier re-ACLs the whole granted
Python tree on every launch. Studio's own DACL calls below grant once
and stay around 200 ms.
- Upgrading the pin is a separate change from this PR.

## Bare sandbox vs MXC vs Studio

Warm medians in ms.
- **Host** runs the shell and Python with no sandbox.
- **Bare sandbox** runs the same two commands under:
  - Linux: `bwrap --ro-bind / / --dev /dev --proc /proc --unshare-all`
  - macOS: `sandbox-exec -p '(version 1)(allow default)'`
  - Windows: `wxc-exec` 0.8.0 with Studio's profile
- **Studio** is a full `execute_tool` call in `required` mode on `main`,
with no chat session on Linux and macOS.

| Runner | Sandbox | Host shell / Python | Bare sandbox shell / Python |
Studio Terminal / Python (`main`) |
|---|---|---|---|---|
| ubuntu-24.04 | bubblewrap | 0.4 / 17 | 2.7 / 20 | 55 / 92 |
| ubuntu-24.04-arm | bubblewrap | 0.6 / 21 | 3.7 / 25 | 78 / 120 |
| macos-latest | Seatbelt | 3.1 / 34 | 15 / 42 | 69 / 108 |
| macos-15 | Seatbelt | 4.1 / 34 | 13 / 42 | 85 / 123 |
| windows-2025-vs2026 (Server 2025) | MXC 0.8.0, DACL tier | 7.4 / 31 |
44 / see above | 213 / 194 |
| windows-2025 (Server 2025) | MXC 0.8.0, DACL tier | 10 / 42 | 56 / see
above | 252 / 255 |
| windows-11-arm (Win11 ARM64) | MXC 0.8.0, native | 16 / 26 | 127 / 135
| 365 / 375 |
| windows-11-vs2026-arm (Win11 ARM64) | MXC 0.8.0, native | 18 / 29 |
136 / 143 | 401 / 374 |

What this means:
- The bare sandbox costs 2 to 6 ms with bubblewrap and about 10 ms with
Seatbelt.
- MXC costs 30 to 50 ms on the DACL tier and about 110 ms on the native
tier. That cost is container creation inside Windows, so Studio cannot
remove it.
- On top of the bare sandbox, Studio adds about 150 to 260 ms on
Windows, against 50 to 85 ms on Linux and macOS.
- This PR targets the Windows-only part of that gap: the five digests of
the 9.5 MB `wxc-exec.exe` (about 34 ms on ARM64 for two of them) and the
repeated policy work.
- #19408 removes the shared part: settings connections, grant-root
lookups and the shim bytecode.
- The head numbers for both Windows tiers are in the Measurements
section above.
Daniel Han (danielhanchen) added a commit to unslothai/unsloth that referenced this pull request Nov 25, 2026
…back to 1.0.1 elsewhere (#19443)

Studio pins Microsoft MXC 0.8.0. npm's latest is 1.1.0, and on the
built-in Windows container 0.9.0 and newer run about 20 ms faster per
call: 103 vs 127 ms for a shell command and 110 vs 135 ms for Python on
Windows 11 ARM64, measured with bare `wxc-exec` and Studio's own policy.

1.1.0 cannot simply replace 0.8.0. It removed the AppContainer + DACL
tier and `wxc-host-prep` (microsoft/mxc#1558), so it runs only where
Windows has the built-in container (BaseContainer): Windows 11 at build
26100.9278, 26200.9278, 26300.9550, 28000.2804 or newer. On Windows
Server 2025 and 2022 it refuses every launch, while `--probe` still
exits 0 and names no tier.

This PR pins both:
- **1.1.0** where Windows has the built-in container.
- **1.0.1** everywhere else. It is the newest release that still has the
AppContainer + DACL tier and `wxc-host-prep`, so those PCs keep today's
opt-in fallback sandbox.

## How the pin is chosen

`mxc_runtime.selected_pin()`:
1. `UNSLOTH_MXC_PIN=1.1.0` or `1.0.1` forces a pin.
2. Windows Server (product type other than workstation), or a Windows 11
build below the floor for its release, gets 1.0.1. The floors are the
ones Studio already used for its "update Windows" hint, now kept in
`mxc_runtime.BUILTIN_CONTAINER_MIN_UBR`.
3. Everything else gets 1.1.0. That includes builds newer than the
table, Insider builds between its rows, and a Windows version that
cannot be read.
4. When 1.1.0 was chosen automatically, the installer verifies it in its
staging folder and runs that copy's `wxc-exec --probe` before it
replaces anything. If the probe reports any tier other than
`base-container`, or none, the installer installs 1.0.1 instead and only
then records that for this exact Windows release
(`mxc-runtime/pin-demoted.json`). A Windows update changes the release,
so 1.1.0 is tried again after it. A probe that fails or prints no report
is no verdict: it never demotes, and it never replaces a working 1.0.1
with an unproven 1.1.0. A failed 1.0.1 install records nothing, so the
next run asks again. The marker and journal live beside `--install-dir`,
so a custom `UNSLOTH_HOME` keeps them together.

Both pins install into the same `mxc-runtime/windows-<arch>` folder.
`setup.ps1` and Desktop are unchanged and still call
`install_mxc_prebuilt.py --install-dir ...` on every setup and update. A
PC that crosses the floor after a Windows update keeps running its
installed 1.0.1, which also uses the built-in container, until the next
update or the Settings install button installs 1.1.0. `target_pin()` is
what the installer installs; `selected_pin()` is what Studio runs, which
is the same except for that case.

## What changes

- **Pins** (`mxc_runtime.MxcPin`, `PRIMARY_PIN`, `LEGACY_PIN`): version,
release commit, archive size and SHA-256, and per-architecture
`wxc-exec.exe` (plus `wxc-host-prep.exe` for 1.0.1) member, size and
SHA-256. I downloaded each archive from npm, checked it against npm's
`dist.integrity`, and hashed every member. All of them carry a valid
Microsoft Corporation Authenticode signature.
- **Policy schema 1.0.0** (`mxc_policy.build_launch_request`). 1.0 and
newer reject `0.8.0-alpha`. The only change the parser demands is the
network section: `{"egress": {"default": "allow"}, "ingress":
{"default": "allow", "hostLoopback": "deny"}}`.
- This keeps 0.8.0's behaviour: internet allowed, host loopback blocked.
  - `deny` is also the only `hostLoopback` value the DACL tier accepts.
- `PROFILE_ID` moves to `-v3`, so cached capability verdicts from the
0.8.0 profile are not reused.
- **Runtime identity** includes the pin's version and commit, so a probe
verdict for one pin never answers for the other.
- **The fallback sandbox exists only on the 1.0.1 pin:**
  - `probe_host_prep_steps()` returns nothing to prepare on 1.1.0.
- `mxc_policy.dacl_fallback_enabled()` is always off on 1.1.0, so a
choice saved under 0.8.0 or 1.0.1 never adds grants or leases, or asks
for `allowDaclMutation`, there.
- The setup plan for a 1.1.0 PC only offers the runtime install (the
same `windows-setup` action Chat and Settings already show), never the
consent or the administrator step, and its remediation text no longer
points at the fallback sandbox.
- **Installer** (`install_mxc_prebuilt.py`):
  - It downloads and verifies the selected pin.
- Before replacing a runtime that has the DACL tier (0.8.0 or 1.0.1), it
lets that runtime replay its DACL restore journal, since 1.1.0 has no
DACL tier to restore those ACEs. Only a runtime whose hash matches a
known pin is run, only under the deny-write guard, and never from an
elevated installer. If the replay cannot finish cleanly, cannot read the
journal or the old runtime, or leaves entries behind (a sandboxed run
still alive), and the incoming pin is 1.1.0, the install stops and keeps
the current runtime so the next run can try again.
- **Daily npm check** (`.github/workflows/mxc-pin-network-check.yml`):
schedule and manual only, never on pull requests, modeled on the model
catalog check. It runs `test_mxc_pin.py` with
`UNSLOTH_MXC_PIN_NETWORK=1` in a bare Python with pytest only (about 0.5
s) and fails when npm's `latest` is not the primary pin.

## Tests

- **New `test_mxc_pin.py`** (about 0.5 s, offline by default):
  - both pins are well formed, and only 1.0.1 ships `wxc-host-prep`;
- pin selection across 18 Windows releases (Server 2025 and 2022, 23H2,
24H2 and 25H2 below and at their floors, 26300, 28000, newer and Insider
builds, unreadable, and an unreadable update revision on Windows 11,
Server and 23H2);
- the forced pin, and the demotion marker keyed on the Windows release
and written atomically;
- `probe_tier` parsing, and a failed or report-less probe raising
instead of naming no tier;
- no host-prep probe, and the DACL tier off even with saved consent, on
1.1.0.
- **`test_install_mxc_prebuilt.py`:**
  - a pin without host prep installs only `wxc-exec.exe`;
- 1.1.0 falls back to 1.0.1 when the probe names `appcontainer-dacl` or
no tier, and stays when it names `base-container`;
- a candidate that fails the probe is checked in its staging folder and
never replaces the working runtime, and a matching install is still
checked;
- a probe that cannot run never demotes, a failed 1.0.1 install records
no demotion, a forced pin is never second-guessed, and an unknown
`UNSLOTH_MXC_PIN` value still lets the probe decide;
- the journal of a known DACL runtime is replayed before the swap, an
unknown or empty one is not, and an unfinished replay keeps the retiring
runtime when 1.1.0 would replace it.
- **`test_sandbox_setup_plan.py`:** a 1.1.0 PC is offered only the
runtime install, installed or not.
- The existing MXC, sandbox, install and settings suites were ported
from the module constants to pins; the suites that exercise the DACL
tier run under the 1.0.1 pin.
- Base vs head on the MXC, sandbox, settings and tools suites (Linux):
the same 59 failures on both (pre-existing), none only on head, 66 more
passing on head.

## Staging (real Windows runners)

`mxc_pin_e2e` runs the branch's own installer into a fresh Studio home,
checks the Authenticode signatures, makes real sandboxed tool calls
through `tools.execute_tool` in required mode, times `selected_pin()`
per call, and runs the MXC test files on the runner. Head `98ee5d10a`:

| Runner | Windows (type, build.UBR) | Pin | `--probe` tier | Python
warm median | Terminal warm median | `selected_pin()` per call | MXC
tests |
| --- | --- | --- | --- | --- | --- | --- | --- |
| windows-11-arm | Windows 11, 26200.9974 | 1.1.0 | base-container | 241
ms | 185 ms | 136 us | pass |
| windows-11-vs2026-arm | Windows 11, 26200.9974 | 1.1.0 |
base-container | 232 ms | 188 ms | 135 us | pass |
| windows-2025 | Server, 26100.33828 | 1.0.1 | appcontainer-dacl | 175
ms | 158 ms | 1.6 us | pass |
| windows-latest | Server, 26100.33828 | 1.0.1 | appcontainer-dacl | 189
ms | 152 ms | 1.6 us | pass |
| windows-2022 | Server, 20348.5870 | 1.0.1 | appcontainer-dacl | not
run: Studio needs build 26100 | | 1.4 us | pass |

- On both Windows 11 ARM64 runners the job first installs 1.0.1, checks
that Studio keeps running it (real Python and Terminal calls succeed on
1.0.1), then runs the normal installer, which qualifies 1.1.0 and
replaces it.
- Every installed binary carried a valid Microsoft Corporation
signature, and each tool call ran in `mxc-processcontainer` with
effective mode `os_isolated`. The 1.0.1 legs ran the fallback sandbox
after `--prepare-host`.
- Warm medians are from 4 calls per tool on shared runners, so they vary
between runs; the bare `wxc-exec` comparison above is the
version-to-version number.
- GitHub has no standard Windows 11 x64 runner, so 1.1.0 on x64 Windows
11 is covered by the unit tests only.
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.

Remove old Tier 2 and 3 fallback for process container

4 participants