You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This PR adds a direct typed Rust transport for state-aware lifecycle calls.
High-level Rust requests now adapt directly into MXC's common request model
without serializing or parsing JSON. Raw exact-contract JSON APIs remain as a
separate compatibility lane.
Details
Add typed lifecycle requests, options, results, and backend metadata.
Normalize typed requests directly into CommonRequestIR and StateAwareOperation while sharing binding, validation, telemetry, and
backend execution with raw exact requests.
Return typed backend outcomes without constructing JSON response envelopes.
Preserve existing raw JSON entry points and add explicit raw aliases.
Add typed-versus-exact equivalence, facade, telemetry, and correlation tests.
This is PR 1 of 3 in the state-aware operation API stack.
This PR adds a direct typed Rust SDK path for state-aware lifecycle
requests so high-level callers reach CommonRequestIR without serializing
or parsing JSON. The existing exact JSON APIs remain available as a
separate compatibility lane.
Details
* Add typed lifecycle requests, results, SDK normalization DTOs, and engine
entry points for provision, start, stop, deprovision, and exec.
* Share normalization, binding, telemetry, correlation, authorization, and
backend dispatch between typed and exact JSON callers.
* Keep JSON response envelopes confined to raw APIs and preserve exact-contract
diagnostics and source attribution.
* Document the two ingress lanes and add typed-versus-exact equivalence tests.
Tests
* `cargo fmt --all -- --check`
* `cargo check` for `wxc_common`, `mxc_engine`, and `mxc-sdk`, including all
features.
* `cargo test` for `wxc_common`, `mxc_engine`, and `mxc-sdk`, including
all-feature engine and SDK suites.
* `cargo clippy` for changed crates with all targets/features, no dependencies,
and warnings denied.
* Rustdoc examples and `git diff --check`.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 1d91874d-feea-4a33-b183-67d506ae61b5
Generated-with: gpt-5.6-sol
Preserve absent WSLc configuration when options are unset
src/core/mxc_engine/src/state_aware_sdk.rs:52
When both WSLc options are None, this still produces StateAwareProvision::Wslc(Some(default_config)) instead of the absent configuration represented by exact JSON. Configuration presence is intentionally significant in StateAwareProvision and binding preserves it, so this can change backend defaulting/validation and breaks typed-versus-exact equivalence for an omitted wslc section. Map the all-None case to RuntimeProvision::Wslc(None).
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
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.
📖 Description
This PR adds a direct typed Rust transport for state-aware lifecycle calls.
High-level Rust requests now adapt directly into MXC's common request model
without serializing or parsing JSON. Raw exact-contract JSON APIs remain as a
separate compatibility lane.
Details
CommonRequestIRandStateAwareOperationwhile sharing binding, validation, telemetry, andbackend execution with raw exact requests.
This is PR 1 of 3 in the state-aware operation API stack.
🔗 References
🔍 Validation
cargo fmt --all -- --checkwxc_common,mxc_engine, andmxc-sdktests passed.mxc-sdkRustdoc tests passed.--no-deps -D warnings.git diff --check✅ Checklist
Cargo.lock, thedependency-feed-checkcheck passes (see docs/pull-requests.md)📋 Issue Type
Microsoft Reviewers: Open in CodeFlow