Skip to content

Phase 3a: decouple ProcessContainer backend selection from schema version - #580

Merged
Gudge (MGudgin) merged 1 commit into
mainfrom
user/gudge/versioning_phase3a_decouple_backend
Jul 10, 2026
Merged

Gudge (MGudgin) merged 1 commit into
mainfrom
user/gudge/versioning_phase3a_decouple_backend

Conversation

@MGudgin

@MGudgin Gudge (MGudgin) commented Jun 26, 2026 •

Copy link
Copy Markdown
Member

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:

  • 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 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

Microsoft Reviewers: Open in CodeFlow

@MGudgin
Gudge (MGudgin) requested a review from a team as a code owner June 26, 2026 19:46
Base automatically changed from user/gudge/versioning_phase2_5_state_aware_conformance to main June 30, 2026 18:28
Comment thread src/core/mxc-sdk/tests/sandbox.rs Resolved
Comment thread src/core/mxc-sdk/tests/sandbox.rs Resolved
Comment thread src/core/wxc/src/main.rs Resolved
Comment thread sdk/tests/unit/conformance-helpers.ts Resolved

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.

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::ProcessContainer unconditionally through the capability-driven dispatcher in wxc-exec (removing schema/experimental gating and the plain-AppContainer arm).
  • Update mxc-sdk streaming 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

Comment thread src/core/mxc-sdk/src/dispatch.rs Resolved
@MGudgin
Gudge (MGudgin) force-pushed the user/gudge/versioning_phase3a_decouple_backend branch from b1085ad to 5b052ba Compare July 7, 2026 14:29
@bbonaby

Copy link
Copy Markdown
Collaborator

just need to fix the merge conflict and we should be good

@MGudgin
Gudge (MGudgin) force-pushed the user/gudge/versioning_phase3a_decouple_backend branch from 5b052ba to 1f56d9e Compare July 9, 2026 16:33
@MGudgin

Copy link
Copy Markdown
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
@MGudgin
Gudge (MGudgin) force-pushed the user/gudge/versioning_phase3a_decouple_backend branch from 1f56d9e to 6548b10 Compare July 10, 2026 23:07
@MGudgin
Gudge (MGudgin) merged commit 0e7c3dd into main Jul 10, 2026
22 checks passed
@MGudgin
Gudge (MGudgin) deleted the user/gudge/versioning_phase3a_decouple_backend branch July 10, 2026 23:21
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.

3 participants