Repository navigation
Phase 3a: decouple ProcessContainer backend selection from schema version - #580
Merged
Gudge (MGudgin) merged 1 commit intoJul 10, 2026
Merged
Conversation
Base automatically changed from
user/gudge/versioning_phase2_5_state_aware_conformance
to
main
June 30, 2026 18:28
This was referenced Jul 7, 2026
Contributor
There was a problem hiding this comment.
Pull request overview
Phase 3a of the versioning remediation: removes schema-version (and --experimental) influence over Windows ProcessContainer backend selection so AppContainer vs BaseContainer is chosen purely by host capability, aligning executor and SDK behavior and unblocking a future schema-floor raise (Phase 3b).
Changes:
- Route
ContainmentBackend::ProcessContainerunconditionally through the capability-driven dispatcher inwxc-exec(removing schema/experimental gating and the plain-AppContainer arm). - Update
mxc-sdkstreaming dispatch to select BaseContainer vs AppContainer based on a direct host-capability probe (instead of schema version), and refresh tests/docs/comments accordingly. - Refactor SDK wire conformance tests: extract shared type-assertion helpers and add a new state-aware wire conformance oracle + wire it into
npm run test:unit.
Show a summary per file
| File | Description |
|---|---|
| src/core/wxc/src/main.rs | Always dispatch ProcessContainer through capability-driven fallback selection; remove version/experimental gate. |
| src/core/wxc_common/src/models.rs | Update ProcessContainer docstring to reflect capability-driven selection. |
| src/core/wxc_common/src/config_parser.rs | Remove is_base_container_version/threshold constant and associated unit tests. |
| src/core/mxc-sdk/tests/sandbox.rs | Reframe Windows integration tests as backend-agnostic ProcessContainer regression guards. |
| src/core/mxc-sdk/src/policy.rs | Update policy backend comment to describe ProcessContainer’s runtime resolution. |
| src/core/mxc-sdk/src/dispatch.rs | Change streaming ProcessContainer selection to use is_base_container_usable() probe. |
| src/backends/appcontainer/common/src/launch_diagnostics.rs | Refresh BaseContainer-not-enabled diagnostics messaging + adjust test assertion accordingly. |
| src/backends/appcontainer/common/src/base_container_runner.rs | Update BaseContainer “API unavailable” hint to remove schema/experimental-based guidance. |
| src/backends/appcontainer/common/src/appcontainer_runner.rs | Reword BFS-not-available error message to remove schema-version-based guidance. |
| sdk/tests/unit/wire-conformance.test.ts | Move shared type-level helpers to a dedicated module. |
| sdk/tests/unit/wire-conformance-state-aware.test.ts | Add state-aware public-types ↔ generated-wire conformance oracle. |
| sdk/tests/unit/conformance-helpers.ts | New shared type-level assertion helper module for conformance tests. |
| sdk/package.json | Include the new state-aware conformance test in test:unit. |
| docs/schema-codegen.md | Document the two conformance oracles and shared helper module. |
Review details
- Files reviewed: 14/14 changed files
- Comments generated: 1
- Review effort level: Low
Gudge (MGudgin)
force-pushed
the
user/gudge/versioning_phase3a_decouple_backend
branch
from
July 7, 2026 14:29
b1085ad to
5b052ba
Compare
Collaborator
|
just need to fix the merge conflict and we should be good |
Gudge (MGudgin)
force-pushed
the
user/gudge/versioning_phase3a_decouple_backend
branch
from
July 9, 2026 16:33
5b052ba to
1f56d9e
Compare
Branden Bonaby (bbonaby)
approved these changes
Jul 10, 2026
Member
Author
|
Closing to try to 'jog' license/cla gate. |
This change makes the Windows ProcessContainer AppContainer-vs-BaseContainer choice entirely host-capability driven: BaseContainer is preferred when usable, and AppContainer+BFS is the downlevel fallback. Schema version and --experimental no longer affect this selection. It also incorporates updates that clarify diagnostics and make the streaming fallback explicit. Details: - Route the executor through the capability-driven dispatcher unconditionally and remove the schema-version/experimental gate and obsolete parser helper. - Select the SDK streaming backend using the same BaseContainer usability probe; on downlevel hosts it explicitly creates an AppContainer+BFS runner. - Reword BaseContainer E_NOTIMPL diagnostics to describe an OS-disabled feature without internal terminology, and remove stale schema-version guidance. - Update backend-agnostic regression coverage and tidy related comments. Tests: - cargo test -p wxc_common -p appcontainer_common -p mxc-sdk - cargo clippy --workspace --all-targets -- -D warnings - cargo fmt --all -- --check - check-schema-codegen.js and check-sdk-types-codegen.js Co-authored-by: Copilot <[email protected]> Copilot-Session: 6c58a97a-f189-43eb-b159-78965a028dc9 Generated-with: gpt-5.6-terra
Gudge (MGudgin)
force-pushed
the
user/gudge/versioning_phase3a_decouple_backend
branch
from
July 10, 2026 23:07
1f56d9e to
6548b10
Compare
Branden Bonaby (bbonaby)
approved these changes
Jul 10, 2026
Gudge (MGudgin)
deleted the
user/gudge/versioning_phase3a_decouple_backend
branch
July 10, 2026 23:21
3 of 8 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This change makes the Windows ProcessContainer AppContainer-vs-BaseContainer
choice entirely host-capability driven: BaseContainer is preferred when usable,
and AppContainer is the downlevel fallback. Schema version and
--experimental no longer affect this selection. It also incorporates updates
that clarify diagnostics and make the streaming fallback explicit.
Details:
and remove the schema-version/experimental gate and obsolete parser helper.
on downlevel hosts it explicitly creates an AppContainer runner.
without internal terminology, and remove stale schema-version guidance.
Tests:
Co-authored-by: Copilot [email protected]
Copilot-Session: 6c58a97a-f189-43eb-b159-78965a028dc9
Generated-with: gpt-5.6-terra
Microsoft Reviewers: Open in CodeFlow