Repository navigation
Description
Description of the new feature / enhancement
Provide a supported, privacy-reviewed way to identify the application calling MXC and correlate its invocation with the resulting MXC execution.
Problem
MXC exposes execution and containment signals, but the public SDK and telemetry contracts do not appear to provide a consistent way to answer:
- Which application requested this execution?
- Which application invocation corresponds to this MXC run?
Applications embedding MXC could use this capability to:
- Measure execution reliability, latency, and timeouts by integration.
- Understand which integrations encounter particular policy or capability blockers.
- Connect retries and failures to the originating invocation.
- Evaluate whether runtime or policy changes improve outcomes.
- Associate execution outcomes with the effective containment protections.
Existing mechanisms
The repository contains related mechanisms, but they do not appear to fully address this need:
- Container names and IDs identify containers rather than calling applications. Caller-selected identities are also subject to privacy redaction.
- Lifecycle correlation vectors group MXC lifecycle phases but do not, by themselves, associate those phases with an originating application invocation.
- One-shot executions do not appear to expose an equivalent caller-visible correlation mechanism.
- Parent-process information in Windows local diagnostics is not reliable application attribution, particularly when callers use shared runtimes, helper processes, or in-process SDK execution.
If a supported mechanism already covers this use case, documentation and examples would also address the request.
Applications would remain responsible for measuring their own workflow outcomes. This request is limited to connecting application invocations with MXC execution and containment evidence.
Proposed technical implementation details
Consider two separate concepts, with the final design subject to MXC team and privacy review.
1. Calling application attribution
A bounded, validated identifier for the application integrating with MXC.
Use a registered identifier, approved enum, or equivalent mechanism rather than arbitrary free-form text. This should identify the application—not an individual user, device, tenant, or operating-system account.
2. Invocation correlation
A supported mechanism for associating an application invocation with the corresponding MXC operation and outcome.
Prefer reusing or extending existing correlation mechanisms rather than introducing a competing identifier. If callers can supply an identifier, require it to be opaque, randomly generated, and validated; format validation alone does not establish that an identifier is privacy-safe.
The mechanism should:
- Be supported consistently by the Rust, .NET, and Node SDKs.
- Cover create-and-run execution and container lifecycle operations.
- Distinguish concurrent executions and retry attempts.
- Define how container-level correlation relates to individual executions.
- Allow relevant execution, error, configuration-rejection, and cleanup records to be associated.
- Preserve existing telemetry consent and administrative-policy gates.
- Document behavior when routed telemetry is disabled or unavailable.
Privacy constraints
Neither field should contain or be derived from user or tenant identity, email addresses, prompts, commands, paths, environment variables, credentials, or workload output.
Do not repurpose container names, weaken existing identity redaction, or infer the calling application from parent-process names.
Any host-side collection or cross-source joins should remain subject to the application's own privacy review and collection rules. A correlation mechanism must not bypass MXC telemetry opt-out or administrative restrictions.
Acceptance criteria
- An application can associate an invocation with its MXC execution outcome.
- Concurrent executions and retry attempts remain distinguishable.
- Create-and-run execution and persistent-container execution are covered.
- Calling application attribution is bounded, and correlation identifiers have documented validation and lifetime requirements.
- No arbitrary identifying text or workload content enters telemetry.
- Documentation explains SDK usage, platform coverage, and telemetry-disabled behavior.
- Tests cover omitted, valid, malformed, and oversized identifiers.
Questions for the MXC team
- Does an existing supported mechanism already satisfy either requirement?
- Can the lifecycle correlation mechanism be reused or extended for this purpose?
- Which relevant event surfaces can support correlation consistently across backends?
- What is the recommended approach when MXC routed telemetry is unavailable?
Activity
bbonaby commentedon Oct 23, 2026
RamonArjona4 are you able to answer this question?
Also CC: Richie Gomez (@richiemsft), as I think you may have had an answer to the "Which application requested this execution?" question in your telemetry doc, which I believe was that we wouldn't know the exact app name.
RamonArjona4 commentedon Oct 23, 2026
The short answer is that on my side, I didn't add a mechanism to track down which application requested this execution.
richiemsft commentedon Oct 27, 2026
#1575