Repository navigation
Emit captureDenials JSON output (replacement for #701) - #710
Merged
Richie Gomez (richiemsft) merged 9 commits intoAug 3, 2026
Merged
Conversation
|
Azure Pipelines: There may be pipelines that require an authorized user to comment /azp run to run. |
4 of 8 tasks
Contributor
Author
|
/azp run |
|
Azure Pipelines: Successfully started running 1 pipeline(s). |
Richie Gomez (richiemsft)
force-pushed
the
user/saulg/learning-mode-output-replacement
branch
from
July 30, 2026 18:41
abde3da to
359d785
Compare
Gudge (MGudgin)
left a comment
Member
There was a problem hiding this comment.
Adversarial review findings for the captureDenials JSON output layer.
Richie Gomez (richiemsft)
force-pushed
the
user/saulg/learning-mode-output-replacement
branch
from
July 31, 2026 19:47
359d785 to
956db58
Compare
Richie Gomez (richiemsft)
force-pushed
the
user/saulg/learning-mode-analyze-replacement
branch
from
July 31, 2026 20:04
f5c0f96 to
e8cb988
Compare
Richie Gomez (richiemsft)
force-pushed
the
user/saulg/learning-mode-output-replacement
branch
from
July 31, 2026 20:04
13d211b to
53682ad
Compare
Contributor
Author
|
/azp run |
|
Azure Pipelines: Successfully started running 1 pipeline(s). |
Richie Gomez (richiemsft)
force-pushed
the
user/saulg/learning-mode-analyze-replacement
branch
3 times, most recently
from
August 1, 2026 02:05
e8cb988 to
4491606
Compare
Richie Gomez (richiemsft)
force-pushed
the
user/saulg/learning-mode-output-replacement
branch
from
August 1, 2026 02:05
53682ad to
f9b365e
Compare
Richie Gomez (richiemsft)
changed the base branch from
user/saulg/learning-mode-analyze-replacement
to
main
August 1, 2026 02:06
Contributor
Author
|
/azp run |
|
Azure Pipelines: Successfully started running 1 pipeline(s). |
Gudge (MGudgin)
approved these changes
Aug 3, 2026
…pability resolution (PR5)
Finalize the captureDenials deliverable as a single JSON document
({ "denials": [...], "summary": {...} }) that the launching app reads,
replacing the NDJSON frame stream. wxc-exec seals the internal ETL,
decodes it, writes the JSON file, and prints only the file-path pointer
on stderr.
Improvements:
- PID-stamped output filename: the wxc-exec pid is inserted into the
caller's outputPath stem (denials.json -> denials.<pid>.json) so
concurrent app instances don't collide; the real path is echoed in the
stderr pointer (insert_pid_into_stem).
- Rename DeniedResource.path -> resource, inclusive of file paths AND
AppContainer capabilities.
- Resolve capability identity: event-28 PackageSid/UserSid now decode via
a new capability_names resolver (well-known S-1-15-3-1..12 SID -> policy
name, else the SID string). Fix TDH_INTYPE_SID to 19 (was 22) so SID
fields decode instead of rendering <unsupported>.
Remove learning_mode_core::frame (NDJSON) in favor of the JSON document
emitter. Regenerate dev schema + SDK wire types (description-only). Update
schema.md, capabilities.md, and copilot-instructions.md. All changes
VM-validated on a learning-mode-enabled Windows build.
Co-authored-by: Copilot <[email protected]>
Stream denial JSON directly, remove incomplete output files after write failures, prevent output collisions, and correct the capture mode and generated filename documentation. Co-authored-by: Copilot <[email protected]> Copilot-Session: dfea4d42-e8a5-42ef-978a-6434e8bf89ec
Preserve polling exit codes, propagate internal ETL cleanup failures, and make pointer plus secondary teardown diagnostics safe when stderr is unavailable. Co-authored-by: Copilot <[email protected]> Copilot-Session: dfea4d42-e8a5-42ef-978a-6434e8bf89ec
Delete the randomized JSON deliverable when stderr pointer publication fails, preserving both publication and cleanup errors so callers are not left with undiscoverable files. Co-authored-by: Copilot <[email protected]> Copilot-Session: dfea4d42-e8a5-42ef-978a-6434e8bf89ec
Update the PR5 resource-field assertion retained while restacking onto the canonical path decoder change. Co-authored-by: Copilot <[email protected]> Copilot-Session: dfea4d42-e8a5-42ef-978a-6434e8bf89ec
Route capture output through structured metadata, bound ETL processing, inject the analyzer seam, and expose metadata through the Rust and C# SDK surfaces. Co-authored-by: Copilot <[email protected]> Copilot-Session: 3a8860a9-bb20-48ef-91a1-3da8e34b92fb
Update repository architecture guidance for bounded denial analysis and CLI-versus-SDK metadata publication. Co-authored-by: Copilot <[email protected]> Copilot-Session: 3a8860a9-bb20-48ef-91a1-3da8e34b92fb
Apply rustfmt after reconciling the stacked Learning Mode branches. Co-authored-by: Copilot <[email protected]> Copilot-Session: 3a8860a9-bb20-48ef-91a1-3da8e34b92fb
Co-authored-by: Copilot <[email protected]> Copilot-Session: 3a8860a9-bb20-48ef-91a1-3da8e34b92fb
Richie Gomez (richiemsft)
force-pushed
the
user/saulg/learning-mode-output-replacement
branch
from
August 3, 2026 17:25
4e58688 to
89f229e
Compare
Contributor
Author
|
/azp run |
|
Azure Pipelines: Successfully started running 1 pipeline(s). |
Branden Bonaby (bbonaby)
approved these changes
Aug 3, 2026
Branden Bonaby (bbonaby)
left a comment
Collaborator
There was a problem hiding this comment.
merge conflict resolution fixes
Gudge (MGudgin)
approved these changes
Aug 3, 2026
Richie Gomez (richiemsft)
deleted the
user/saulg/learning-mode-output-replacement
branch
August 3, 2026 18:17
5 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.
📖 Description
Replacement for #701, restoring the intended output-layer review boundary
following replacement analysis PR #709.
Adds the caller-facing
captureDenialsoutput layer:denialsandsummary.of writing from the backend to process-global stderr.
wxc-execCLI boundary, while theRust SDK, C ABI, and C# SDK expose the metadata programmatically.
stopping
ProcessTraceand reporting truncation when either limit is reached.DenialAnalyzerabstraction at the output integration seam, withdeterministic success, empty-result, decode-failure, and ETL-cleanup tests.
serialization errors instead of emitting an empty-path fallback.
SID strings.
PR #709 has merged. This PR targets
maindirectly and now contains only theoutput layer.
🔗 References
🔍 Validation
cargo fmt --all -- --checkcargo test -p learning_mode_core -p learning_mode_windows -p appcontainer_common -p mxc-sdk -p mxc_ffi --all-targetscargo test -p wxc --no-runcargo test -p wxc_e2e_tests --no-runcargo clippy -p learning_mode_windows -p appcontainer_common -p mxc-sdk -p mxc_ffi --all-targets -- -D warningsdotnet build sdk/dotnet/Microsoft.Mxc.Sdk/Microsoft.Mxc.Sdk.csproj --no-restore172.17.7.153):wxc-execproduced a valid JSON document and printed one matching pointerline at the CLI boundary.
mxc_enginerun returned the same structured metadata whileleaving host stderr empty.
✅ Checklist
Cargo.lock, thedependency-feed-checkcheck passes (see docs/pull-requests.md)📋 Issue Type
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 withthe GitHub Actions build; it runs on merge to
main, and Microsoft reviewerswith write access can trigger it on a PR with
/azp run. Seedocs/pull-requests.md.
If the
dependency-feed-checkcheck fails on a new dependency, the crate mustbe added to the feed before the PR can pass. See
docs/pull-requests.md
for the steps.